DataExecutionStatus

The data execution status.

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#getErrorCode()` | `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-error-code` | Gets the error code of the data execution. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#getErrorMessage()` | `String` | Gets the error message of the data execution. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#getExecutionState()` | `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-state` | Gets the state of the data execution. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#getLastExecutionTime()` | `Date|null` | Gets the time the last data execution completed regardless of the execution state. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#getLastRefreshedTime()` | `Date|null` | Gets the time the data last successfully refreshed. |
| `https://developers.google.com/apps-script/reference/spreadsheet/data-execution-status#isTruncated()` | `Boolean` | Returns `true` if the data from last successful execution is truncated, or `false` otherwise. |

## Detailed documentation

### `getErrorCode()`

Gets the error code of the data execution.

#### Return


`https://developers.google.com/apps-script/reference/spreadsheet/data-execution-error-code` --- The error code.

*** ** * ** ***

### `getErrorMessage()`

Gets the error message of the data execution. The message may be empty.

#### Return


`String` --- The error message.

*** ** * ** ***

### `getExecutionState()`

Gets the state of the data execution.

#### Return


`https://developers.google.com/apps-script/reference/spreadsheet/data-execution-state` --- The execution state.

*** ** * ** ***

### `getLastExecutionTime()`

Gets the time the last data execution completed regardless of the execution state.

#### Return


`Date|null` --- The last execution time, or `null` if there has never been a data execution.

*** ** * ** ***

### `getLastRefreshedTime()`

Gets the time the data last successfully refreshed.

#### Return


`Date|null` --- The last successfully refreshed time, or `null` if there is never a successful
data execution.

*** ** * ** ***

### `isTruncated()`

Returns `true` if the data from last successful execution is truncated, or `false`
otherwise.

#### Return


`Boolean` --- `True` if the data from execution is truncated, or `false` otherwise.