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

Announcements

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 485

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
    159 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
    485 on at

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

  • Suggested answer
    JAngle Profile Picture
    159 on at

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

  • Verified answer
    YUN ZHU Profile Picture
    101,995 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,222 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,603 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 1,186 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans