Announcements
I am trying to send an email with a report as an attachment through AL when the report is run (Report 329 - Vendor trial balance). I am having trouble when I try to save the same report that was ran. This is the error I get when running the report (it prevents BC from sending the email too): It was not possible to find a Starting Date in Accounting Period.
I believe the error stems from when I try to get a record with the same Vendor No. and Date filter as specified from the report request page:
Here is my code (a codeunit to send the email and a report extension)
Hi, as Josh mentioned, please check the Accounting Period settings.
Hope this helps.
Thanks.
ZHU
In the app. Follow this: docs.microsoft.com/.../finance-accounting-periods-and-fiscal-years
JAngle How do I setup accounting periods? Do I do this through code?
Have you reviewed the code of the report? Do you actually have accounting periods setup? I’d check those things first as the code has no immediate concerns
André Arnaud de Cal...
294,017
Super User 2025 Season 1
Martin Dráb
232,852
Most Valuable Professional
nmaenpaa
101,158
Moderator