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

Announcements

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Job Queue Entries

(0) ShareShare
ReportReport
Posted on by 75
////I am a Business Central Functional Consultant. When I try to run the existing job queue entries  codeunit no. 81, which converts blanket purchase orders to purchase orders, getting some error like given bellow picture  I need assistance. Please help me identify the problem 
 
the error msg is 
Job finished executing.
Status: Error
Error: Record(472) is not compatible with Codeunit.Run(Record(36)).
I have the same question (0)
  • Verified answer
    Saurav.Dhyani Profile Picture
    14,414 User Group Leader on at
    Hi,
     
    You cannot just run any codeunit via job queue.
     
    For your request, you will have to create a custom report / codeunit, which runs based on Job Queue and then in-turn get the Sales Document and call Codeunit 81.
     
    Codeunit 81 runs on record for Data Item - Sales Header. Check the OnRun Trigger of object to understand why error. Codeunit 81 run based on Sales Header Record.
     
     
    Regards,
    Saurav Dhyani
  • Verified answer
    JM Profile Picture
    49 on at
    HI there!
     
    As Saurav explained, you can't just run like that. In your case, the JQ is expecting a certain record type to be passed to the codeunit, but the provided one is incorrect, it is expecting Sales Header (36) instead of Job Queue Entry (472).
     
    Creating a custom report / codeunit to invoke CU81 is the only way to go.
     
    Cheers!
    JM
  • Suggested answer
    Matteo Fiocco Profile Picture
    260 on at
    Hi,
     
    You cannot directly launch the specified codeunit from the job queue, because it expects table 36 as input. You need a developer to create a custom object.
     
    Bye
     
    Matteo Fiocco - Business Central Architect
    Blog : www.matteofiocco.com
    Linkedin :  https://www.linkedin.com/in/matfioc/

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!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,117 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,092 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 1,026 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans