Hi All,
My requirement is if any error comesup then it has to redirect to the same interface to modify the form and then resubmit the form again . IN the 2nd interface (which is same as 1st) I'm getting the below error .can someone please help.An error occurred while evaluating expression: Error.message:AC!error.body (Invalid index: Cannot index property 'body' of type Text into type IntegrationError) (Data Outputs)
Discussion posts and replies are publicly visible
The error is happening because you're trying to use ac!error.body in the Data Outputs tab of your User Input Task, but Activity Class parameters (ac!) aren't available in User Input Tasks - they only exist in Script Tasks and other system nodes. In User Input Tasks, you can only map rule inputs (ri!) from your interface to process variables (pv!). To fix this, remove the ac!error.body reference from your Data Outputs tab. Instead, capture the error in a Script Task or Integration node before the User Input Task, save it to a process variable there, then pass that process variable to your interface as a rule input. This way, you're only mapping ri! values to pv! values in the Data Outputs, which is the correct approach.
Issue is I don't see ac!error.body in data output tab itself .Attached above screenshots of the same
Could you share the same(Node I/O) for integration smart service and following script tasks for better understanding.
integrationScriptask 1 has only inout nodescriptask 2 has only output node...
Could you follow below step and share screenshot if possible of search result.Step 1) Open PM -> Go to Tools -> Click Generate DocumentationStep 2) Search "AC!error.body" or "ac!error.body" (Whatever field is erroring out search that)Share searched result.
Can you share expression code where it's being used in UIT?Why are you using this expression?ac!error does not have body.Instead try using ac!error.message
I don't have any expression in output of my 2nd UIT ...I'm not sure who is it coming from generate documentationI only have it as input
It's showing under output tab in documentation.Can you validate process?It might be a cache issue. Close the Process Model and open it again, Validate the process, then publish the process again?
I have removed the input itself then it is not throwing the error
Now, Do you have any issues with this process?
In 2nd UIT , after I remove the invalid Emails and then resubmit the form it is going to integration but again it is going to 2nd UIT with 1st entered details (which includes invalid emailaddress). Can you please suggest an approach to achieve this functionality
The issue is that your corrected form data from the 2nd UIT isn't being saved back to the process variables, so the integration keeps using the original invalid data. In your 2nd UIT's Data Outputs tab, you need to configure mappings for all form fields - map ri!GASR_Requests to pv!GASR_Requests, ri!emailOutput to pv!emailOutput, and any other relevant fields to their corresponding process variables. This ensures that when users fix the invalid emails and resubmit, the corrected values overwrite the original process variables before the integration executes again. Without these output mappings, the process retains the first submission's data, causing the loop you're experiencing.