AL icon indicating copy to clipboard operation
AL copied to clipboard

Clear report before run it.

Open hgnamvn opened this issue 9 years ago • 7 comments

Hi!

I create a new report. In my report, I will update data using the processingonly report. But I can't run the processingonly report 2 times. image

When the processingonly report run second times, the error is shown as below: image

I already clear report variable, but system still show error.

Please help me solve this issues. Version: November Update

hgnamvn avatar Nov 23 '17 02:11 hgnamvn

Is the procedure UpdateCFSEntries in the same report as the report no. 50000 you are calling? Or do you call it from a different report object?

epernst avatar Nov 24 '17 17:11 epernst

what about using runmodal? or as a test, create another variable for the same report

tatnorther avatar Nov 24 '17 19:11 tatnorther

Hi epernst, I run report ID 50001. From Report 50001, I create function UpdateCFSEntries to call report ID 50000 to update some data before I run report 50001.

hgnamvn avatar Nov 28 '17 02:11 hgnamvn

Hi tatnorther,

I also solve my case by create new variable for the same report. But I think this case should be solved, maybe we catch this case many in the future.

hgnamvn avatar Nov 28 '17 02:11 hgnamvn

Is this converted code or new code? It will help us to know if this is caused by a change in compiler behavior or because of a bug in the runtime.

esbenk avatar Dec 16 '17 08:12 esbenk

Hi esbenk,

Report 50000 and 50001 are converted from NAV 2017. However, the function UpdateCFSEntries (on Report 50001) is written directly on Visual Studio Code.

hgnamvn avatar Dec 18 '17 01:12 hgnamvn

I have a similar situation. I created an Action in a new page that runs a processing only report to populate data in the page. The first time the action works fine, any subsequent time the action is called I get the same error: The object has been run. Use the function CLEAR(Report).

As you can see from the screenshot, the CLEAR function is used just prior. image

ODT-DARENC avatar Dec 20 '17 18:12 ODT-DARENC