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

Report is not running,gives an validation error in business central

(1) ShareShare
ReportReport
Posted on by 223
Hi Guys,
 
I have facing one query while running any report on Purchase Order.
Actually ,below code is written on codeunit.
When I am running the any report on purchase order ,it will give that error message ('Purchase Order/line canceled. Insert not allowed') & report is not running.
 
How to resolve this ,because This validation is only work for that particular page ,not a report.

 
  • Suggested answer
    YUN ZHU Profile Picture
    81,785 Super User 2025 Season 1 on at
    Report is not running,gives an validation error in business central
    Hi, if you only want this code to run on certain pages, please do not write it in the trigger of the table.
    for example,
     
    In addition, you can already get the type and number of the Purchase line. Using the Get method will be more efficient and the code will be shorter.
     
     
    Hope this helps.
    Thanks.
    ZHU
  • Suggested answer
    Gerardo Rentería García Profile Picture
    17,733 Most Valuable Professional on at
    Report is not running,gives an validation error in business central
    Hi
    I would tell you that you should validate if it is a temporary table or not. Here is some more information.
    BR
    Gr

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,011 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans