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...
Suggested Answer

Collectible Errors for only-processing report

(0) ShareShare
ReportReport
Posted on by 75

Hi. I need to run only-processing report in loop. During this loop run - I need collectible errors if specific operation failed. How to do this for reports? I found only Collectible errors for Codeunits run, what about reports?

Example:

repeat

SomeReport.SetTableView(SalesHeader);

Run of SomeReport;
until SalesHeader.Next() = 0;

If Report run correctly for 8 Sales Header, and incorrectly for 3 Sales Header - I need to perform operations for this 8 Headers (without stop after error in first incorrect Sales Header) and collect errors from 3 reports (with error). After loop I need to display info about error to user.

I have the same question (0)
  • Suggested answer
    YUN ZHU Profile Picture
    102,361 Super User 2026 Season 1 on at

    Hi, I'm not sure if the Try function will work for you, but I think it's worth giving it a try.

    How to use Try methods/functions (TryFunction Attribute)

    https://yzhums.com/19630/

    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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 647 Super User 2026 Season 1

#2
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 447 Most Valuable Professional

#3
YUN ZHU Profile Picture

YUN ZHU 366 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans