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

Announcements

No record found.

News and Announcements icon
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
    150 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
    150 on at

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

  • Verified answer
    YUN ZHU Profile Picture
    98,569 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,822 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,136 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 956 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans