Skip to Content
0
Former Member
Apr 17, 2014 at 06:55 AM

BOL transaction rollback not working properly

250 Views

Hi Experts,

I am programming a mass processing for business partners and encountered following problem:

Say I lock the first business partner in my list and encounter an error in the processing, I then call entity->get_transaction( )->rollback( ).

If I then process the next business partner, lock it and process successfully, ending with save and commit, changes that I made on the first entity are also committed.

It seems to me that the rollback only affects GenIL and not BOL.

How do I clear the modifications to entity 1 out of the BOL without losing the entity from my collection?

I would like to avoid using the BOL core reset or other methods that will lose the information from my collections.

Thanks for any input.