EmbedErrorCodes

EmbedErrorCodes

Error codes for identifying specific issues in embedded ThoughtSpot components. Use EmbedErrorDetailsEvent and ErrorDetailsTypes codes for precise error handling and debugging.

Version : SDK: 1.44.2 | ThoughtSpot: 26.2.0.cl

Handle specific error codes in the error event handler

embed.on(EmbedEvent.Error, (error) => {
  switch (error.code) {
    case EmbedErrorCodes.WORKSHEET_ID_NOT_FOUND:
      console.error('Worksheet ID not found:', error.message);
      break;
    case EmbedErrorCodes.LIVEBOARD_ID_MISSING:
      console.error('Liveboard ID is missing:', error.message);
      break;
    case EmbedErrorCodes.CONFLICTING_ACTIONS_CONFIG:
      console.error('Conflicting actions configuration:', error.message);
      break;
    case EmbedErrorCodes.CONFLICTING_TABS_CONFIG:
      console.error('Conflicting tabs configuration:', error.message);
      break;
    default:
      console.error('Unknown error:', error);
  }
});

Enumeration members🔗

CONFLICTING_ACTIONS_CONFIG🔗

CONFLICTING_ACTIONS_CONFIG:= "CONFLICTING_ACTIONS_CONFIG"

Conflicting action configuration detected

Defined in : types.ts

CONFLICTING_TABS_CONFIG🔗

CONFLICTING_TABS_CONFIG:= "CONFLICTING_TABS_CONFIG"

Conflicting tab configuration detected

Defined in : types.ts

CUSTOM_ACTION_VALIDATION🔗

CUSTOM_ACTION_VALIDATION:= "CUSTOM_ACTION_VALIDATION"

Custom action validation failed

Defined in : types.ts

HOST_EVENT_TYPE_UNDEFINED🔗

HOST_EVENT_TYPE_UNDEFINED:= "HOST_EVENT_TYPE_UNDEFINED"

Host event type is undefined or invalid

Defined in : types.ts

INIT_ERROR🔗

INIT_ERROR:= "INIT_ERROR"

Error during component initialization

Defined in : types.ts

INVALID_URL🔗

INVALID_URL:= "INVALID_URL"

Invalid URL provided in configuration

Defined in : types.ts

LIVEBOARD_ID_MISSING🔗

LIVEBOARD_ID_MISSING:= "LIVEBOARD_ID_MISSING"

Required Liveboard ID is missing from configuration

Defined in : types.ts

LOGIN_FAILED🔗

LOGIN_FAILED:= "LOGIN_FAILED"

Authentication/login failed

Defined in : types.ts

NETWORK_ERROR🔗

NETWORK_ERROR:= "NETWORK_ERROR"

Network connectivity or request error

Defined in : types.ts

PARSING_API_INTERCEPT_BODY_ERROR🔗

PARSING_API_INTERCEPT_BODY_ERROR:= "PARSING_API_INTERCEPT_BODY_ERROR"

Error parsing api intercept body

Defined in : types.ts

RENDER_NOT_CALLED🔗

RENDER_NOT_CALLED:= "RENDER_NOT_CALLED"

Render method was not called before attempting to use the component

Defined in : types.ts

UPDATE_PARAMS_FAILED🔗

UPDATE_PARAMS_FAILED:= "UPDATE_PARAMS_FAILED"

Failed to update embed parameters during pre-render

Defined in : types.ts

WORKSHEET_ID_NOT_FOUND🔗

WORKSHEET_ID_NOT_FOUND:= "WORKSHEET_ID_NOT_FOUND"

Worksheet ID not found or does not exist

Defined in : types.ts

© 2026 ThoughtSpot Inc. All Rights Reserved.