Enum DataExecutionErrorCode
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Mãlỗithực thidữ liệu
Liệt kê các mã lỗi thực thi dữ liệu.
Để gọi một enum, bạn gọi lớp mẹ, tên và thuộc tính của enum đó. Ví dụ:
SpreadsheetApp.DataExecutionErrorCode.TIME_OUT
.
Thuộc tính
Thuộc tính | Loại | Mô tả |
DATA_EXECUTION_ERROR_CODE_UNSUPPORTED | Enum | Mã lỗi thực thi dữ liệu không được hỗ trợ trong Apps Script. |
NONE | Enum | Không có lỗi khi thực thi dữ liệu. |
TIME_OUT | Enum | Đã hết thời gian chờ thực thi dữ liệu. Vui lòng cập nhật nguồn dữ liệu specification . |
TOO_MANY_ROWS | Enum | Quá trình thực thi dữ liệu trả về nhiều hàng hơn giới hạn. Vui lòng cập nhật nguồn dữ liệu specification . |
TOO_MANY_COLUMNS | Enum | Quá trình thực thi dữ liệu trả về nhiều cột hơn giới hạn. Vui lòng cập nhật nguồn dữ liệu specification . |
TOO_MANY_CELLS | Enum | Quá trình thực thi dữ liệu trả về nhiều ô hơn giới hạn. Vui lòng cập nhật nguồn dữ liệu specification . |
ENGINE | Enum | Lỗi công cụ thực thi dữ liệu. Hãy sử dụng DataExecutionStatus.getErrorMessage() để biết thông tin chi tiết. |
PARAMETER_INVALID | Enum | Tham số thực thi dữ liệu không hợp lệ. Ô nguồn phải tồn tại và chỉ chứa số hoặc văn bản.
Vui lòng cập nhật nguồn dữ liệu specification . |
UNSUPPORTED_DATA_TYPE | Enum | Quá trình thực thi dữ liệu trả về loại dữ liệu không được hỗ trợ. Vui lòng cập nhật nguồn dữ liệu specification .
Đối với BigQuery, loại ARRAY hoặc STRUCT không được hỗ trợ.
|
DUPLICATE_COLUMN_NAMES | Enum | Quá trình thực thi dữ liệu trả về tên cột trùng lặp. Vui lòng cập nhật nguồn dữ liệu specification . |
INTERRUPTED | Enum | Quá trình thực thi dữ liệu bị gián đoạn. Vui lòng làm mới sau. |
OTHER | Enum | Các lỗi khác. |
TOO_MANY_CHARS_PER_CELL | Enum | Quá trình thực thi dữ liệu trả về các giá trị vượt quá số ký tự tối đa được phép trong một ô.
Vui lòng cập nhật nguồn dữ liệu specification . |
DATA_NOT_FOUND | Enum | Không tìm thấy cơ sở dữ liệu được tham chiếu theo nguồn dữ liệu. Vui lòng cập nhật nguồn dữ liệu specification . |
PERMISSION_DENIED | Enum | Người dùng không có quyền truy cập vào cơ sở dữ liệu mà nguồn dữ liệu tham chiếu đến. Vui lòng cập nhật nguồn dữ liệu specification hoặc liên hệ với chủ sở hữu dự án thanh toán để yêu cầu quyền truy cập. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]