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 :
Microsoft Dynamics NAV (Archived)

Job Queue Error

(0) ShareShare
ReportReport
Posted on by 7

In NAV 2016, I can run a codeunit manually (which runs for about 6 hrs) without any error but when run using Job Queue, it errors out after approx 1 hr with error "Overflow under conversion of system.Int64 value <3112650000> to System.Int32.
Error comes only when codeunit is run using Job Queue. Any thoughts how can we fix this error so that job can be run as a NAV 2016 Job Queue entry.

CN

*This post is locked for comments

I have the same question (0)
  • ShanAbeywicrema Profile Picture
    948 on at

    Did you apply any filters in your code when you run manually ?

  • Job Queue Profile Picture
    7 on at

    No filters were applied. As said, codeunit runs manually with no issue but in job queue it fails with 'overflow' error.

  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    You could debug the session of the Job Queue.

    Any DotNet used?

  • Suggested answer
    ShanAbeywicrema Profile Picture
    948 on at

    You can debug and check from where it got executed. As Hannes  said, are you using any DotNet/Automation type variable ?

  • Job Queue Profile Picture
    7 on at

    Shan, I can easily debug manual codeunit's run but cannot do so when the job is run using job queue. My NAS instance has debug checked but still it won't stop at error or at point in code I marked with F9.

    Can you please list out steps for me on how to debug job queue entry in NAV 2016

  • Job Queue Profile Picture
    7 on at

    No DotNet Used. Pl. see my response to Shan's response on Job Queue debug.

  • Hannes Holst Profile Picture
    5,767 on at

    Hi,

    You must start the debugger with "Debug Next": juhl.blog/.../debugging-with-task-scheduler

    It's because the NAS/TaskScheduler creates new sessions in the background.

  • Job Queue Profile Picture
    7 on at

    Job moved to MS. Will confirm here when we have a resolution. Thanks.

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 March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans