Skip to main content
About the Resource Center

Data action fails in interaction flows

Note: This article applies to the AWS Lambda, Function, Genesys Cloud, Google, Microsoft Dynamics 365, Salesforce, web services, and Zendesk data actions integrations.

A data action takes the failure path in the interaction flow in Architect. All responses in Scripts are null. A data action can fail for several reasons.

Tip: As a general practice, test custom actions for help identifying issues. For more information, see Test data actions.
  • Credential and account issues
    • The role associated with your AWS Lambda function changed, but you did not update it in the integration configuration in Genesys Cloud.
    • You deactivated or deleted the integration in Genesys Cloud, but you are still referencing it in your interaction flow.
      • Update the published interaction flow in Architect to reference an active integration and associated data actions.
    • You deleted a custom action, but you are still referencing it in your interaction flow.
      • Recreate the custom action and update your flow.
  • Search result issues
    • The data action finds no search results or more than one search result. If a data action finds that there are no search results or more than one search result, then the data action takes the failure path from the Call Data Action in Architect.
      • Confirm that your input variables in Architect are compatible with and expected by your AWS Lambda function. Architect passes the input variables, including any quotes, punctuation, and symbols, directly to your AWS Lambda.
      • Search your AWS Lambda function for the same data that the connector searched for. If your AWS Lambda function returns no results or more than one result, then the failure path was correctly followed in your interaction flow.
  • Connection issues
    • The integration is unable to connect to your AWS Lambda function. This issue is typically due to invalid credentials in the integration configuration in Genesys Cloud. 
  • Response issues
    • The response from your AWS Lambda function has changed and no longer conforms to the success schema.
      • Test the action, correct any issues, and republish the action. For more information, see Test data actions.
    • The response cannot be flattened.
      • Test the action, correct any issues, and republish the action. For more information, see Test data actions.
    • The connection times out. The integration does not receive a response from your AWS Lambda function before the expected time has passed.
      • Confirm that your AWS Lambda function does not take longer than 20 seconds to execute.

For more information about the integration, see About the AWS Lambda data actions integration.