setExecutionResultErrorWithResult()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Creates an IUpsertExecutionResult command for an execution that finished with an error but still produced a result.
export declare function setExecutionResultErrorWithResult(options: {
id: ObjRef | string;
error: GoodDataSdkError;
executionResult: IExecutionResult;
correlationId?: string;
}): IUpsertExecutionResult;
Parameters
Parameter | Type | Description |
|---|---|---|
options | { id: ObjRef | string; error: GoodDataSdkError; executionResult: IExecutionResult; correlationId?: string; } |
Returns
Remarks
An empty-but-valid execution computes a result (with a resultId) yet surfaces as a no-data error. Recording the result alongside the error lets consumers reference it (e.g. by resultId) while the error keeps the widget in its terminal error state — including the non-exportable gating that the presence of the result alone would otherwise lift.