Query regarding GETLASTERRORTEXT

msuser_navmsuser_nav Member Posts: 2
Hi NAV experts,

I have a query regarding GETLASTERRORTEXT

The scenario is like..

1)There is a process only report which creates lines in General Journal and posts it line by line using CU(13)_Gen. Jnl.-Post Batch.

2)While automated posting if there is a error on a particular Line on Gen journal, the process stops due to error and user needs to resolve the error first and start the process again, the requirement is such that the lines containing error(s), should be skipped (should not stop the posting of rest of the lines).

Any ideas please..

Comments

  • mabl4367mabl4367 Member Posts: 143
    If you are posting line by line shouldn't you use cu12 Gen. Jnl. Post Line instead?

    I think that if you check the returnvalue of the codeunit the report will not terminate.

    If you don't want to handle any errors you can just do:
    IF cuGenJnlPostBatch.RUN() THEN ;
Sign In or Register to comment.