How to RollBacl without ERROR terminating execution

EugeneEugene Member Posts: 309
while running from within NAS there is a need to rollback some operations and continue execution with next data portion.
REPEAT
  IF ProcessData THEN
    COMMIT
  ELSE
    RollBack
UNTIL NoMoreDataLeft;

Is there a way in Navision to roll back transaction (need RollBack function in C/AL) without terminating execution ?

I tried ERROR('') which does not pop up a message but it terminates execution anyway.

Comments

  • nunomaianunomaia Member Posts: 1,153
    You can't achive that.
    Navision doesn't support Save Points
    Nuno Maia

    Freelance Dynamics AX
    Blog : http://axnmaia.wordpress.com/
  • WaldoWaldo Member Posts: 3,412
    Use the timer.dll that comes with NAV.

    It has a OnError-event where you can start the timer again, which continues execution.

    Eric Wauters
    MVP - Microsoft Dynamics NAV
    My blog
Sign In or Register to comment.