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
4426 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Writing data to DB with Multiple CDT
shrutis1
over 7 years ago
When I'm trying to add entries to DB and my CDT is multiple its overwriting 1st entry because of which I'm unable to add multiple records to table. Can anyone help to resolve this issue?
OriginalPostID-270545
Discussion posts and replies are publicly visible
0
sparshs
over 7 years ago
can you provide the screenshot of your DB node configuration ?
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
muditm1
over 7 years ago
please make sure that value at each index of that array have different IDs.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@shrutis Are you trying to perform only insert operation or Insert/Update operation, because in case of update operation, if the Primary Key value matches for more than one row then previous will be be override by the new row
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
muditm1
over 7 years ago
@aloks176 thanks for a better explanation.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
paragk9981
over 7 years ago
it seems that you are trying to append single value in multiple CDT in Data tab > "output" of script task/ user input task
make sure you have selected operator "is appended to" rather then default "is stored as"
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Harsha
over 7 years ago
You can try configuring the write to db node as a MNI node, if as per my understanding, you want all the cdt entries with unique ids in the data store.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
shrutis1
over 7 years ago
thank you everyone for your suggestions, tried generating unique ids and saving records with IDs it helped.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
@shrutis happy to hear that, but it seems like you are trying to perform insert operation, if i am not wrong. So if you are using Autogeneration for ID then i don't think that you need to generate unique Id's by manual process such as script task etc.. in this case the DB or JPA will take care of generating Unique ID's
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel