Appian Community
Site
Search
Sign In/Register
Site
Search
User
DISCUSS
LEARN
SUCCESS
SUPPORT
Documentation
AppMarket
More
Cancel
I'm looking for ...
State
Not Answered
Replies
8 replies
Subscribers
8 subscribers
Views
2703 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
User Interface
Using SAIL UI with a!writeToDataStoreEntity() , mapping it to user input task and getting error when publishing the process model
chetany
A Score Level 1
over 7 years ago
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
0
chetany
A Score Level 1
over 7 years ago
This was observed on Appian 16.3 and 16.2
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kondetiv
over 7 years ago
could please attach your code snippet for a!writeToDataStoreEntity(). I'm doubting, are you using a!save() for storing fv!storedValues ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 7 years ago
Here's the snippet:
You can see that I am just using the value from fv!storedValues and storing it in a rule input ..totally normal.
a!writeToDataStoreEntity(
dataStoreEntity: cons!DAL_ENTITY_TYPE_CDT_DISPLAY_CONFIG,
valueToStore:ri!cdtDisplayConfig,
onSucess: {
a!save(
ri!cdtDisplayConfig,
fv!storedValues
)
},
onError: {}
)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@chetany i don't think, if the associated UI have some issue, it make any issue while publishing process model. yes at run time we might be getting error, but while publishing process, i don't think so. Could you please explain what is fv!storedValues, does this holds the output returned by the Smart Service Function
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
Also as per the documentation of a!writeTodataStoreEntity() function, we don't have any parameter named as onSucess, instead of that it's onSuccess , may due to this spelling mistake in param key, might be causing issue, try rectifying that, that might solve your issue
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kondetiv
over 7 years ago
@chetany try to change onSucess to onSuccess as @alok figured out.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
kondetiv
over 7 years ago
@chetany in case the above mentioned Spelling Difference is not only the issue , it would be helpful if you can update this thread , once you have figured out what the issue was and also the solution which you have achieved to overcome it
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
chetany
A Score Level 1
over 7 years ago
Thanks everyone. It was indeed the typo that was causing the issue. Corrected it and the error is gone
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel