Using SAIL UI with a!writeToDataStoreEntity() , mapping it to user input task and getting error when publishing the process model

I have a SAIL UI which uses a!writeToDataStoreEntity() function.
I am using this SAIL UI in user input task in the process model.
There is only one user input task in the process model.
I tried publishing the process model, and I am getting an error.
The error is:
Variable(s) not found fv!storedValues

I am indeed using fv!storedValues in SAIL UI and as standalone UI it works.
But after mapping to user input task and publishing the process model, it does not.
I understand that this variable is used for getting the output of a!writeToDataStoreEntity(), but as far as I understand, it should not be a reason for the error that I am getting.
Please help.

OriginalPostID-257238

  Discussion posts and replies are publicly visible