web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Can't send email using AL due to filtering error

(0) ShareShare
ReportReport
Posted on by 481

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.

pastedimage1657035267776v6.png

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:

pastedimage1657035321748v7.png

Here is my code (a codeunit to send the email and a report extension)

pastedimage1657034911271v5.png

pastedimage1657034597358v3.png

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    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

  • jdrco Profile Picture
    481 on at

    JAngle How do I setup accounting periods? Do I do this through code?

  • Suggested answer
    JAngle Profile Picture
    133 on at

    In the app. Follow this: docs.microsoft.com/.../finance-accounting-periods-and-fiscal-years

  • Verified answer
    YUN ZHU Profile Picture
    95,729 Super User 2025 Season 2 on at

    Hi, as Josh mentioned, please check the Accounting Period settings.

    pastedimage1657073336951v1.png

    pastedimage1657073371722v2.png

    Hope this helps.

    Thanks.

    ZHU

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans