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

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

(1) ShareShare
ReportReport
Posted on by 289
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.

 
I have the same question (0)
  • Suggested answer
    Gerardo Rentería García Profile Picture
    25,225 Most Valuable Professional on at
    Hi
    I would tell you that you should validate if it is a temporary table or not. Here is some more information.
    BR
    Gr
  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at
    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

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,010

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,085 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans