Options

Getting Below error while opening report at first time.Second time its working fine.

The following C/AL functions can be used only to a limited degree during write transactions because one or more tables will be locked. Form. RunModal is not allowed in write transactions.

Answers

  • Options
    RockWithNAVRockWithNAV Member Posts: 1,139
    You need to write COMMIT before Form. RunModal keeping NAV protocol in mind but what exactly you want to achieve?
  • Options
    AkilAkil Member Posts: 2
    In purchase order page, I have shipment lines. If I open shipment card, I can generate reports. When I click the specific report, it shows an error as mentioned earlier. And If I close the error, and try to click the same report, its working fine. If I close the page, and open the shipment card again, and if I choose the report again it will show the error.

    I want to know how that write functions are working in second time. And this error occurs only when I have multiple shipment lines in purchase orders.

    I am using Report.Runmodal. If I put COMMIT statement, will it cause any other issue?
Sign In or Register to comment.