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

  • Suggested answer
    YUN ZHU Profile Picture
    85,289 Super User 2025 Season 1 on at
    RE: Collectible Errors for only-processing report

    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

Ramesh Kumar – Community Spotlight

We are honored to recognize Ramesh Kumar as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 2,655

#2
Mansi Soni Profile Picture

Mansi Soni 1,574

#3
YUN ZHU Profile Picture

YUN ZHU 1,453 Super User 2025 Season 1

Featured topics

Product updates

Dynamics 365 release plans