--- title: "Run Lambda Function With Data" slug: "run-lamba-function-with-data" updated: 2025-08-19T19:57:12Z published: 2025-08-19T19:57:12Z canonical: "documentation.decisions.com/run-lamba-function-with-data" --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.decisions.com/llms.txt > Use this file to discover all available pages before exploring further. # Run Lambda Function With Data | Step Details | | --- | | **Introduced in Version** | 8.0.0 | | **Last Modified in Version** | 9.0.0 | | **Location** | Integration > Amazon AWS > Lambda | The **Run Lambda Function With Data** step is used to execute a Lambda Function while providing it with specific payload data in JSON format. This enables you to pass information or parameters to the Lambda Function, which can be used by the Function during its execution. ### Prerequisites - This step requires the [Amazon AWS Module](https://documentation.decisions.com/docs/aws) to be [installed](https://documentation.decisions.com/docs/installing-modules-decisions) before it will be available in the toolbox, and an active [AWS account](https://signin.aws.amazon.com/signin?redirect_uri=https%3A%2F%2Fconsole.aws.amazon.com%2Fconsole%2Fhome%3FhashArgs%3D%2523%26isauthcode%3Dtrue%26nc2%3Dh_ct%26src%3Dheader-signin%26state%3DhashArgsFromTB_eu-north-1_c1412528899e4833&client_id=arn%3Aaws%3Asignin%3A%3A%3Aconsole%2Fcanvas&forceMobileApp=0&code_challenge=HQku5BPrRUboP5p1wGr4Ai_nBIQNSqsR2eHJNCBfxhQ&code_challenge_method=SHA-256). The [Amazon WebServices Settings](https://documentation.decisions.com/docs/setting-up-amazon-webservices-integration) must also be configured. - A dependency must be created after installing the module in order for the the steps to be properly used. --- ## Properties #### Inputs | Property | Description | Data Type | | --- | --- | --- | | Allow Use Default AWSCreds | Toggle permitting the use of default AWS account credentials. | Bolean | | Function Name | Name of the Lambda function to name. | String | | Payload Data JSON | Inputted payload data as provided in JSON format. | String | | Region | AWS Region associated with the designated Lambda function. | AmazonAWSRegion | | Timeout | Time frame it takes for function to stop working. | TimeSpan | #### Outputs | Property | Description | Data Type | | --- | --- | --- | | Done | Outputs step completed information. | String | ![](https://cdn.document360.io/6ef8bcc1-6489-4486-9ad1-83acff7e5df0/Images/Documentation/2025-08-13_15h13_04.png) --- ## Common Errors ### Could Not Parse Payload into JSON If the Payload Data JSON input is invalid, the step will cause an error. To correct this, change the input to be valid and properly arranged JSON. #### Exception Message: ```csharp DecisionsFramework.Design.Flow.ErrorRunningFlowStep: Error running step Run Lamba Function With Data 1[RunLambaFunctionWithData] in flow [Step Library Flow]: Exception invoking method RunLambaFunctionWithData on class LambdaSteps ---> DecisionsFramework.LoggedException: Exception invoking method RunLambaFunctionWithData on class LambdaSteps ---> Amazon.Lambda.Model.InvalidRequestContentException: Could not parse request body into json: Could not parse payload into json: Unrecognized token 'apple': was expecting (JSON String, Number, Array, Object or token 'null', 'true' or 'false') at [Source: REDACTED (`StreamReadFeature.INCLUDE_SOURCE_IN_LOCATION` disabled); line: 1, column: 7] ---> Amazon.Runtime.Internal.HttpErrorResponseException: Exception of type 'Amazon.Runtime.Internal.HttpErrorResponseException' was thrown. at Amazon.Runtime.HttpWebRequestMessage.ProcessHttpResponseMessage(HttpResponseMessage responseMessage) at Amazon.Runtime.HttpWebRequestMessage.GetResponseAsync(CancellationToken cancellationToken) at Amazon.Runtime.Internal.HttpHandler`1.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Unmarshaller.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) --- End of inner exception stack trace --- at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionStream(IRequestContext requestContext, IWebResponseData httpErrorResponse, HttpErrorResponseException exception, Stream responseStream) at Amazon.Runtime.Internal.HttpErrorResponseExceptionHandler.HandleExceptionAsync(IExecutionContext executionContext, HttpErrorResponseException exception) at Amazon.Runtime.Internal.ExceptionHandler`1.HandleAsync(IExecutionContext executionContext, Exception exception) at Amazon.Runtime.Internal.ErrorHandler.ProcessExceptionAsync(IExecutionContext executionContext, Exception exception) at Amazon.Runtime.Internal.ErrorHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.Signer.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.EndpointDiscoveryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CredentialsRetriever.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.RetryHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.CallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.ErrorCallbackHandler.InvokeAsync[T](IExecutionContext executionContext) at Amazon.Runtime.Internal.MetricsHandler.InvokeAsync[T](IExecutionContext executionContext) at Decisions.AWS.Lambda.LambdaSteps.RunLambaFunctionWithData(String FunctionName, String PayloadDataJSON, AmazonAWSRegion Region, Boolean AllowUseDefaultAWSCreds, Nullable`1 timeout) at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) --- End of inner exception stack trace --- at DecisionsFramework.Design.Flow.StepImplementations.InvokeMethodStep.Run(StepStartData data) at DecisionsFramework.Design.Flow.FlowStep.RunStepInternal(String flowTrackingID, String stepTrackingID, KeyValuePairDataStructure[] stepRunDataValues, AbstractFlowTrackingData trackingData) at DecisionsFramework.Design.Flow.FlowStep.Start(String flowTrackingID, String stepTrackingID, FlowStateData data, AbstractFlowTrackingData trackingData, RunningStepData currentStepData) --- End of inner exception stack trace --- ``` --- ## Step Changes | | Version | Release Date | Developer Task | | --- | --- | --- | --- | | Timeout property added. | [9.6](https://documentation.decisions.com/v99/docs/version-96x-release-notes) | January 2025 | [DT-042821] | --- Related Information Related Articles: [Lambda](https://documentation.decisions.com/docs/lambda#overview)