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...
Answered

Job Queue Entries

(0) ShareShare
ReportReport
Posted on by 69
////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,380 Super User 2025 Season 2 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

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

#2
Jainam M. Kothari Profile Picture

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

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans