Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Check to see if a repo...
Finance forum
Under review by Community Managers

Under review

Thank you for your post! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Check to see if a report has no data

Posted on by
 
Hi, I want to check and see if my report has any data, and if not, throw an error message
 
I have a report where the report design and data is  based on a parameter that the user selects.
 
So I don't know what the dataset will be until the user selects a parameter.
 
I want to stop the report from running by throwing up a 'no data' error.
 
I tried doing this in the preRunModifyContract() (where the report design is selected) and it worked.  But I also get a major system error
saying that something went wrong running the report which is a little extreme.
 
What's the best place to do this.

Helpful resources

Quick Links

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans