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
6 replies
Subscribers
7 subscribers
Views
2538 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Getting an error while using @Version annotation
pavanik
Certified Associate Developer
over 7 years ago
Hi all,
I am facing a contrast behavior while using @Version annotation in XSD, actual problem is CDT column data is automatically getting appended multiple times.
Same issue is not getting reproduced without @Version annotation in XSD.
For more info please find the attached screenshot.????
OriginalPostID-240604
Discussion posts and replies are publicly visible
0
rodgraham
Certified Lead Developer
over 7 years ago
On an update are you passing a value into the @version column. As I recall if you pass null in that column it inserts a new row rather than doing an update
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sowjanyav430
over 7 years ago
@rodgraham..
If we use @version there is no need to pass any value again...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
sowjanyav430
over 7 years ago
@Pavani..
Are you updating @version column's primary key Id again,
If you do so,please do not update Id again.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sowrabha Rajashekar
over 7 years ago
Does the issue still persist? I agree with rodgraham in that,"if you pass null in that @version column it inserts a new row rather than doing an update". As I see your problem, i believe you are using "is appended to" instead of "is stored as". May be you saved the ac!value at input and also used "is appended to " at the outputs. And that is why you see two rows even when there are no @Version. Just a guess though ! But as a first call i suggest you to check the way you save inputs/outputs in your process models first.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavanik
Certified Associate Developer
over 7 years ago
Thank you all. issue got resolved. Your comments really helped me.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Sowrabha Rajashekar
over 7 years ago
you're welcome :)
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel