Class DataExecutionStatus
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
자세한 문서
getErrorMessage()
데이터 실행의 오류 메시지를 가져옵니다. 메시지는 비어 있을 수 있습니다.
리턴
String
: 오류 메시지입니다.
getLastExecutionTime()
실행 상태와 관계없이 마지막 데이터 실행이 완료된 시간을 가져옵니다.
리턴
Date
: 마지막 실행 시간 또는 데이터 실행이 한 번도 없었던 경우 null
입니다.
getLastRefreshedTime()
데이터가 마지막으로 성공적으로 새로고침된 시간을 가져옵니다.
리턴
Date
: 마지막으로 새로고침이 성공한 시간 또는 데이터 실행이 성공한 적이 없는 경우 null
입니다.
isTruncated()
마지막으로 성공적으로 실행된 데이터가 잘린 경우 true
를 반환하고, 그렇지 않으면 false
를 반환합니다.
리턴
Boolean
: 실행 데이터가 잘린 경우 True
, 그렇지 않은 경우 false
입니다.
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-26(UTC)
[null,null,["최종 업데이트: 2025-07-26(UTC)"],[[["\u003cp\u003e\u003ccode\u003eDataExecutionStatus\u003c/code\u003e provides methods to access the state and details of a data execution, including error information and timing.\u003c/p\u003e\n"],["\u003cp\u003eYou can retrieve the execution state, error code, and error message using dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eTimestamps for the last execution and successful refresh are accessible for tracking data updates.\u003c/p\u003e\n"],["\u003cp\u003eA method is available to determine if the data from the last successful execution was truncated.\u003c/p\u003e\n"]]],["The `DataExecutionStatus` provides information about data execution. It allows retrieving the error code and message, alongside the execution state. It also details the last execution time and the last successful refresh time. Additionally, it indicates whether the data from the last successful execution was truncated. The class provide methods for accessing those information like `getErrorCode()`, `getErrorMessage()`, `getExecutionState()`, `getLastExecutionTime()`, `getLastRefreshedTime()` and `isTruncated()`.\n"],null,["# Class DataExecutionStatus\n\nDataExecutionStatus\n\nThe data execution status. \n\n### Methods\n\n| Method | Return type | Brief description |\n|---------------------------------------------------|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------|\n| [getErrorCode()](#getErrorCode()) | [DataExecutionErrorCode](/apps-script/reference/spreadsheet/data-execution-error-code) | Gets the error code of the data execution. |\n| [getErrorMessage()](#getErrorMessage()) | `String` | Gets the error message of the data execution. |\n| [getExecutionState()](#getExecutionState()) | [DataExecutionState](/apps-script/reference/spreadsheet/data-execution-state) | Gets the state of the data execution. |\n| [getLastExecutionTime()](#getLastExecutionTime()) | `Date` | Gets the time the last data execution completed regardless of the execution state. |\n| [getLastRefreshedTime()](#getLastRefreshedTime()) | `Date` | Gets the time the data last successfully refreshed. |\n| [isTruncated()](#isTruncated()) | `Boolean` | Returns `true` if the data from last successful execution is truncated, or `false` otherwise. |\n\nDetailed documentation\n----------------------\n\n### `get``Error``Code()`\n\nGets the error code of the data execution.\n\n#### Return\n\n\n[DataExecutionErrorCode](/apps-script/reference/spreadsheet/data-execution-error-code) --- The error code.\n\n*** ** * ** ***\n\n### `get``Error``Message()`\n\nGets the error message of the data execution. The message may be empty.\n\n#### Return\n\n\n`String` --- The error message.\n\n*** ** * ** ***\n\n### `get``Execution``State()`\n\nGets the state of the data execution.\n\n#### Return\n\n\n[DataExecutionState](/apps-script/reference/spreadsheet/data-execution-state) --- The execution state.\n\n*** ** * ** ***\n\n### `get``Last``Execution``Time()`\n\nGets the time the last data execution completed regardless of the execution state.\n\n#### Return\n\n\n`Date` --- The last execution time, or `null` if there has never been a data execution.\n\n*** ** * ** ***\n\n### `get``Last``Refreshed``Time()`\n\nGets the time the data last successfully refreshed.\n\n#### Return\n\n\n`Date` --- The last successfully refreshed time, or `null` if there is never a successful\ndata execution.\n\n*** ** * ** ***\n\n### `is``Truncated()`\n\nReturns `true` if the data from last successful execution is truncated, or `false`\notherwise.\n\n#### Return\n\n\n`Boolean` --- `True` if the data from execution is truncated, or `false` otherwise."]]