Codeunit 90 - lack of transaction rollback

JTProJTPro Member Posts: 169
Hello All,

It's been a while since my last post.

I have a following issue with posting of the purchase invoice in the NAV 5.0 SP1.

I have added a code in the codeunit 90 that posts two additional lines for the vendor.
To post general journal line, I'm using standard code:
GenJnlPostLine.RunWithCheck(GenJnlLine,TempJnlLineDim);

The strange thing is that, when the error message occurs (connected with the dimension restriction - codeunit 11)
during this stage of posting, the rollback of transaction is not performed, and the posted purchase header and lines are created.

Can anyone tell me what I'm doing wrong?

Best regards,
JTPro
Navision Application Version: 4.0SP1
Navision Database Version: 4.0

Comments

Sign In or Register to comment.