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
5 replies
Subscribers
7 subscribers
Views
3127 views
Users
0 members are here
Share
More
Cancel
Related Discussions
Home
»
Discussions
»
General
Editable Grid
pavanik
Certified Associate Developer
over 7 years ago
Hi...
I have created editable grid...with add , update and delete functionality...
I used a!writeToDataStoreEntity() to save the updated details in to DB..
Whenever i performed any of these(add,delete,update) operations... some times I am facing following issue...some times its working fine...
any suggestion on this.
Thanks in advance
OriginalPostID-262904
Discussion posts and replies are publicly visible
0
aloks0189
Certified Lead Developer
over 7 years ago
@Pavani can you check whether the XSD of this CDT (KP_IAL_Employee) contains @Version annotation. if so that means, You have optimistic locking configured on your entity, using an @Version annotated field.
The principle of optimistic locking is to only allow an update of a row if the version stored in the row has the same value as the one stored in the entity being merged. Otherwise, the exception will be thrown
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
Most probably you can find the following in your XSD
<xsd:annotation>
<xsd:appinfo source="appian.jpa">@Version</xsd:appinfo>
</xsd:annotation>
Hope this will help you
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
pavanik
Certified Associate Developer
over 7 years ago
@alok..thank you for your response...Of course my xsd has @version annotation....but still update operation also facing same issue...
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
aloks0189
Certified Lead Developer
over 7 years ago
Try checking your configuration, it's possible that the record might be getting update internally and after that it might be throwing an Exception
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel
0
Margaret Haymann
Appian Employee
over 7 years ago
Pavani, Here is a link to the same previous issue.
forum.appian.com/.../e-115265
This might help.
Cancel
Vote Up
0
Vote Down
Sign in to reply
Verify Answer
Cancel