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
ZAINAB said:AC!error.body
Fist locate where in your process model you have this expression. Then replace that with property(ac!error,"body,{})
I only have error declare in process variable and in UIT data
In that case is there any expression configured in output tab of 2nd UIT? Also can you share what saveintos are there in this submit button of 2nd UIT
I don't have any outputs configured for 2nd UIT. The saveintos of both UITs are same
contents: { a!textField( label: "error", value: ri!InvalidEmail, ) }, align: "CENTER", showWhen: ri!HasError=true(), style: "INFO", marginAbove: "NONE", marginBelow: "LESS", accessibilityText: "Information message" ), }, style: "#134f5c", marginBelow: "STANDARD" ) } ) } ) } ) }, buttons: a!buttonLayout( primaryButtons: { a!buttonWidget_23r3( label: "Submit", style: "PRIMARY", submit: true, validate: true(), saveInto: { a!save(ri!FormattedEmails,local!formattedEmailString), a!save(ri!GASR_Requests.emailAddresses,local!rawEmails), a!save( ri!GASR_Requests.requestorName, rule!GBL_displayUserFirstLast(loggedInUser()) ), a!save( ri!GASR_Requests.requestorEmail, loggedInUser() ), a!save(ri!GASR_Requests.createdOn, now()), a!save( ri!GASR_Requests.requestStatus, cons!GASR_AUDIT_STATUS_TYPES[1] ), a!save( ri!GASR_Requests.requestType, cons!GASR_REQUEST_TYPE ), a!save(ri!GASR_Requests.isActive, true()), }, loadingIndicator: true() ) }, secondaryButtons: { a!buttonWidget_23r3( label: "Cancel", style: "NORMAL", submit: true, validate: false, value: true, saveInto: ri!cancel ) } ) )
Can you try the following to rule out error.body existence in process model as well. Go to Process Documentation and search (ctrl+f) error.body or just body and see if you find something. For Documentation go to Tools->Generate Documentation
I see this from generate documentation but in output i don't see any
First check the input node then expand the error variable. there check the saveinto config of message input.
Also check the output tab on UIT if any configuration is there.
Input & Output of 1st UIT Input&Ouput of 2nd UIT
In 2nd UIT you have ‘Error’ variable in saveInto. In the documentation it says pvError. Can you check if the configuration is correct here and datatype is IntegrationError for this variable
i Changed it to PVerror but still same error
Can you confirm the datatype for this ‘Error’ and ‘pvError’ variables?