web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
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 323
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
    26,108 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
    100,212 Super User 2026 Season 1 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,059 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 994 Super User 2026 Season 1

#3
Teagen Boll Profile Picture

Teagen Boll 664 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans