Possible concurrency issue encountered


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I'm glad you got it figured out Smile
Andria Jensen
Andria Jensen
StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)
Group: Forum Members
Posts: 336, Visits: 497
Ok, I figured it out.  I was trying to delete before the records were finished saving out I think.  I am using a BO to populate a DevEx report, and only want it to actually save to the db under certain circumstances.  So I was deleting in the AfterPrint event, but it looks like it wasn't quite finished with the BO by that time since the report generation is on a different thread.  I put a pause in there before deleting and it works fine now.

Is there a better way to accomplish what I'm trying to do?  I basically need to temporarily store data for a report, and if certain conditions are met save it to the database.  Otherwise, the data should never be saved to the db.

StrataFrame Team
S
StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)StrataFrame Developer (4.4K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
It means that the business object is trying to save a record that has been saved by someone else recently.  It's used for detecting concurrency issues (when userA and userB both check out a record and modify it and they both try to save it at the same time). 

So, that's normal in a networked application scenario, but if it's happening all the time on one of your business objects, then the UpdateConcurrencyType might need to be changed to Off or OptimisticRowVersion if it's set on OptimisticAllFields.  The exception being throw contains properties that show the row causing the data collision.

Andria Jensen
Andria Jensen
StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)StrataFrame User (422 reputation)
Group: Forum Members
Posts: 336, Visits: 497
I get this error message on a BO.Save() call.  Can you give me some additional info as to what could be causing this or what it actually means?   


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search