Enum DataExecutionErrorCode
Mantenha tudo organizado com as coleções
Salve e categorize o conteúdo com base nas suas preferências.
Códigodeerrodeexecução dedados
Uma enumeração de códigos de erro de execução de dados.
Para chamar um tipo enumerado, chame a classe mãe, o nome e a propriedade dele. Por exemplo,
SpreadsheetApp.DataExecutionErrorCode.TIME_OUT
.
Propriedades
Propriedade | Tipo | Descrição |
DATA_EXECUTION_ERROR_CODE_UNSUPPORTED | Enum | Um código de erro de execução de dados que não tem suporte no Apps Script. |
NONE | Enum | A execução de dados não tem erros. |
TIME_OUT | Enum | A execução dos dados expirou. Atualize a fonte de dados specification . |
TOO_MANY_ROWS | Enum | A execução dos dados retorna mais linhas do que o limite. Atualize a fonte de dados specification . |
TOO_MANY_COLUMNS | Enum | A execução dos dados retorna mais colunas do que o limite. Atualize a fonte de dados specification . |
TOO_MANY_CELLS | Enum | A execução dos dados retorna mais células do que o limite. Atualize a fonte de dados specification . |
ENGINE | Enum | Erro no mecanismo de execução de dados. Use DataExecutionStatus.getErrorMessage() para conferir detalhes. |
PARAMETER_INVALID | Enum | Parâmetro de execução de dados inválido. A célula de origem precisa existir e conter apenas um número ou texto.
Atualize a fonte de dados specification . |
UNSUPPORTED_DATA_TYPE | Enum | A execução dos dados retorna um tipo de dados não aceito. Atualize a fonte de dados specification .
No BigQuery, o tipo ARRAY ou STRUCT não é aceito.
|
DUPLICATE_COLUMN_NAMES | Enum | A execução dos dados retorna nomes de colunas duplicados. Atualize a fonte de dados specification . |
INTERRUPTED | Enum | A execução de dados é interrompida. Atualize mais tarde. |
OTHER | Enum | Outros erros. |
TOO_MANY_CHARS_PER_CELL | Enum | A execução dos dados retorna valores que excedem o número máximo de caracteres permitidos em uma única célula.
Atualize a fonte de dados specification . |
DATA_NOT_FOUND | Enum | O banco de dados referenciado pela fonte de dados não foi encontrado. Atualize a fonte de dados specification . |
PERMISSION_DENIED | Enum | O usuário não tem acesso ao banco de dados referenciado pela fonte de dados. Atualize a fonte de dados specification ou entre em contato com o proprietário do projeto de faturamento para pedir acesso. |
Exceto em caso de indicação contrária, o conteúdo desta página é licenciado de acordo com a Licença de atribuição 4.0 do Creative Commons, e as amostras de código são licenciadas de acordo com a Licença Apache 2.0. Para mais detalhes, consulte as políticas do site do Google Developers. Java é uma marca registrada da Oracle e/ou afiliadas.
Última atualização 2025-07-26 UTC.
[null,null,["Última atualização 2025-07-26 UTC."],[[["\u003cp\u003e\u003ccode\u003eDataExecutionErrorCode\u003c/code\u003e is an enumeration of error codes that can occur during data execution in Google Apps Script.\u003c/p\u003e\n"],["\u003cp\u003eThese error codes provide information about the nature of the error, such as timeouts, exceeding data limits, or invalid parameters.\u003c/p\u003e\n"],["\u003cp\u003eMost errors can be addressed by updating the data source specification using \u003ccode\u003eDataSourceSpec\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eTo access a specific error code, use the syntax: \u003ccode\u003eSpreadsheetApp.DataExecutionErrorCode.ERROR_CODE\u003c/code\u003e, replacing \u003ccode\u003eERROR_CODE\u003c/code\u003e with the desired code (e.g., \u003ccode\u003eTIME_OUT\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eFor engine-specific or detailed error messages, refer to \u003ccode\u003eDataExecutionStatus.getErrorMessage()\u003c/code\u003e.\u003c/p\u003e\n"]]],["`DataExecutionErrorCode` enumerates errors during data execution. Errors include `TIME_OUT`, `TOO_MANY_ROWS/COLUMNS/CELLS`, `ENGINE` failure, `PARAMETER_INVALID`, `UNSUPPORTED_DATA_TYPE`, `DUPLICATE_COLUMN_NAMES`, `INTERRUPTED`, `OTHER`, `TOO_MANY_CHARS_PER_CELL`, `DATA_NOT_FOUND`, `PERMISSION_DENIED`, `NONE`, and `DATA_EXECUTION_ERROR_CODE_UNSUPPORTED`. To use an error code, use `SpreadsheetApp.DataExecutionErrorCode.ERROR_NAME`. Several errors suggest updating the data source specification. The `ENGINE` error uses `DataExecutionStatus.getErrorMessage()` for details.\n"],null,["# Enum DataExecutionErrorCode\n\nDataExecutionErrorCode\n\nAn enumeration of data execution error codes.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nSpreadsheetApp.DataExecutionErrorCode.TIME_OUT`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------------------------------------|--------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `DATA_EXECUTION_ERROR_CODE_UNSUPPORTED` | `Enum` | A data execution error code that is not supported in Apps Script. |\n| `NONE` | `Enum` | The data execution has no error. |\n| `TIME_OUT` | `Enum` | The data execution timed out. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `TOO_MANY_ROWS` | `Enum` | The data execution returns more rows than the limit. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `TOO_MANY_COLUMNS` | `Enum` | The data execution returns more columns than the limit. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `TOO_MANY_CELLS` | `Enum` | The data execution returns more cells than the limit. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `ENGINE` | `Enum` | Data execution engine error. Use [DataExecutionStatus.getErrorMessage()](/apps-script/reference/spreadsheet/data-execution-status#getErrorMessage()) for details. |\n| `PARAMETER_INVALID` | `Enum` | Invalid data execution parameter. The source cell must exist and contain only a number or text. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `UNSUPPORTED_DATA_TYPE` | `Enum` | The data execution returns unsupported data type. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). For BigQuery, `ARRAY` or `STRUCT` type is not supported. |\n| `DUPLICATE_COLUMN_NAMES` | `Enum` | The data execution returns duplicate column names. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `INTERRUPTED` | `Enum` | The data execution is interrupted. Please refresh later. |\n| `OTHER` | `Enum` | Other errors. |\n| `TOO_MANY_CHARS_PER_CELL` | `Enum` | The data execution returns values that exceed the maximum characters allowed in a single cell. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `DATA_NOT_FOUND` | `Enum` | The database referenced by the data source is not found. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)). |\n| `PERMISSION_DENIED` | `Enum` | The user does not have access to the database referenced by the data source. Please update the data source [specification](/apps-script/reference/spreadsheet/data-source#updateSpec(DataSourceSpec)) or contact the owner of the billing project to request access. |"]]