Scenario 1 :
Error – Unfortunately, there was a problem. Please try again. If the problem continues, get in touch with your administrator with the error ID shown here and any other related details. Error ID: 1337175916-243799 (-1069768977).
![Unfortunately, there was a problem. Please try again. If the problem continues](https://codersbugs.com/wp-content/uploads/2022/12/Flow-error-Unfortunately-there-as-a-problem-1024x267.png)
I was getting this error In my salesforce Flow where I was using lighting web component which has some properties and we want to use data from that properties to next screen.
Solution –
The property we are trying to use was declared as array type []
@api valueToBeUseInFlow = [];
and on onClick event we have added String(event.value) to that [] variable like :
valueToBeUseInFlow = String(event.value) ;
By changing definition of valueToBeUseInFlow array to string resolved my issue.
@api valueToBeUseInFlow = ”;