Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

Problem with PrintJobHeader table

(1) ShareShare
ReportReport
Posted on by 55
Hi All, 
I have problem with my report, this error displays during run it:
 
Cannot edit a record in Print job information (job-level) (PrintJobHeader).
The record has never been selected.
I would like to add breakpoint in update method of this table, but I can't find PrintJobHeader table. 
Please advice how to do it. 
 
 
 
  • Patryk Mi Profile Picture
    55 on at
    Problem with PrintJobHeader table
    Breakpoint in info.add() was exactly what I needed, I totally forgot about that. Thank you very much Martin!
  • Verified answer
    Martin Dráb Profile Picture
    232,160 Most Valuable Professional on at
    Problem with PrintJobHeader table
    You can use the debugger to find where the error comes from. Either look at StackTrace property of the exception, or put a breakpoint to Info.add() (which is called when a message gets added to infolog) and look at the stack trace from there.
     
    In general, this happens if a piece of code tries to find and update a record, but no record is found and the code tries to update the empty record anyway.

    PrintJobHeader is a system table, therefore you can't see its code (and put breakpoints there). In F&O, you can easily find PrintJobHeader by putting its name to the filter box on top of Application Explorer. I suspect the picture is from F&O, although you're asking in an AX forum.

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!

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February 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... 293,304 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,160 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans