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
24 replies
Subscribers
5 subscribers
Views
8815 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
Process
I am facing a problem in writing values to multiple data store. What I am trying
zianf
over 8 years ago
I am facing a problem in writing values to multiple data store. What I am trying to do is :
1)I have created an interface with 2 sections. Section 1 stores data in one CDT(emp1) and Section 2 stores data in another CDT(emp2).
2)I have created the process model and have included the ‘Write to multiple data store’ smart service.
The problem I am facing with this is the value under DATA->Output->Results->Storedvalues->targets, when I set the target variable and click on ‘OK’ and check the same node again, the value vanishes.
I need guidance to solve this issue.
processmodel.docx
OriginalPostID-219388
OriginalPostID-219388
Discussion posts and replies are publicly visible
0
zianf
over 8 years ago
I have attached the screenshots of every step to be done in the process model. I have also attached the ALERT message which I get after the process fails. Also when I fill in the details in the form, the values gets stored in the process variables. I have attached a screenshot of that as well. Let me know where am I going wrong . I am trying to do this for the first time. Need guidance.
processmodel.docx
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Rajasekhar Pamidipati
A Score Level 2
over 8 years ago
Hi zianf,
Based the document which you provided i found one mistake in your 'Write to Multiple Data Store Entities'
The issue is you are trying to store 'pv!StoredValues[1].data' and 'pv!StoredValues[2].data'. But at that point of time 'pv!StoredValues' will contain null values.
So just replace pv! with ac! in that outputs.
Hope it will solve your problem.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Jaggu
over 8 years ago
Hi, In 5th image which you have attached, the stored values should be taken from active class parameters not process variables. it should be "ac!StoredValues[1].data" not "pv!StoredValues[1].data"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
zianf
over 8 years ago
HI all, I tried everything url told me to. The process model dint show any alerts but when I checked the database, only the primary key is getting fed. So I just tried some other way and split the data in the form and used 2x 'Write to DataStore Entity'and with the help of 'Sub-process' node and 'Script Task' , combined the data and wrote it into the 3rd table in the database
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
<