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...
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
    95,548 Super User 2025 Season 2 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

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 3,151

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,443 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans