Sign in or 

|
eugeCba |
Concurrency Error
Feb 5 2009, 8:36 AM EST
Hi all! I'm working with BOs and I'm getting a Concurrency Error when I try to make an update. This is my code: invoke BO 'BOName' using "case" for read; for ($eachItem in "BSName/results") move 'CHAR_TYPE' to "case/+Char/charTypeCd"; move "$eachItem/fkValue1" to "case/Char[last()]/fkValue1"; end-for; invoke BO 'BOName' using "case" for update; The problem shows when I'm adding this characteristic to a BO that already have at least one characteristic of this type, otherwise works fine. I check the Error Log and I see the new characteristics added in my BO, but then I get the Error. I'm new at ETM!! Regards!! Do you find this valuable?
Keyword tags:
characteristics
concurrency error
ETM
update
|
|
jineshmj |
1. RE: Concurrency Error
Mar 24 2009, 1:42 AM EDT
Hi,Use the following command and try. move "BSName/results/fkValue1" to "case/Char[last()]/fkValue1"; Regards, -Jinesh J Do you find this valuable? |
|
vinayak.vd |
2. RE: Concurrency Error
Jul 7 2009, 5:26 PM EDT
We have seen this in our project also. This is a for loop issue, where $eachItem actually is only last item from the result.So in each loop you are getting same value for fkValue1 which is causing Concurrency Error Can you please verify from your log, the new chars getting added in you BO is the last one from the result? Also, did Jinesh's code worked for you? Regards Vin Do you find this valuable? |