I have created a lightning flow where I am passing uploaded file name to apex action using flowaction, while running the flow I am getting following error:
"element in your flow has validation errors."
I have put debug statement in apex class but seems like its not getting called and throwing this error before even entering into method.
For testing purpose, I have also tried to not to pass any variable and not manually assigning variable but still no luck.
Following is signature of my apex method:
@InvocableMethod
public static List<List<String>> FIleNames(List<List<String>> UploadedFileNames) {
//logic based on uplaoded files
}
Can anyone help me to understand reason of this error I am getting?
8 个回答
Well, I found the issue and able to proceed further in my flow.
For anyone else if facing same issue, please check all variable for error.
In my case I have defined one variable which has some error, though I was not using this avriable anywhere in my flow but I have not deleted also (my bad), due to that it was throwing error when trying to use apex action.
Once I deleted errorneous variable its staretd working.