Navigation = General Ledger | Periodic | Journals | Ledger Journal. On dialog box, click Journal List at top. Don’t enter any parameters. Then, click OK.
I receive the following error:
Cannot edit a record in Ledger journal totals (LedgerJournalizeReport). The record has never been selected.
I have determined the line of code that generates this error: In the updatePageNum method of table LedgerJournalizeReport, there is a line of code: LedgerJournalizeReport.update.
I stop on this line of code and attempt to enter the update method in order to determine what is causing it. But I am unable to debug this (update) method of table LedgerJournalizeReport.
In my Development General options, I do have “Execute business operations in CIL” – as unchecked.
How can I determine what is causing this error?
Any help would be greatly appreciated – many thanks!
Does your AOS allow debugging? If not, change the configuration and restart the service. If you think the code runs in CIL and “Execute business operations in CIL" doesn’t have any effect, use a CIL debugger (= Visual Studio).
Try if you can debug other server-side and CIL code. That will show whether you have a wider problem than with this particular function.
You can also start debugging at some earlier point, step through code in debugger and identify where it stops working.
Yes, my AOS does allow debugging. Within method .updatePageNum() of table LedgerJournalizeReport, I set a breakpoint on the line of code that reads as this.update(), which is method .update() of LedgerJournalizeReport. This line of code is in the kernel. I just don’t know how I could debug this…
Aha, I see what’s wrong. You can’t debug the kernel method and you never shouldn’t try it, because it works all right. The problem is that update() is called on an invalid buffer. To be able to update a buffer, you have to read it from database first. The error says that the buffer wasn’t obtained from database and therefore it can’t be updated.