Nav2017 JobQueue launch a report execute ok but didnt do nothing

rcseip
Member Posts: 4
Hi,
I have 2 environment of nav 2017, one for development (in our servers) and one for production(in Azure).
I develop a report that check records on a table, if they have Status = Awaiting it grab the record, block warehouse entry and insert the rec in it, go back to the table and change status Awaiting to Inserted.
the funny thing here is that i develop this in Dev environment, the report works and i set the job on queue and check that it works fine, all good since here.
(Dev environment is a copy of Pro with a difference of 2-4 months in data no development in job queue) (User that launch job have "SUPER")
But when i export the objects to pro environment, the report itself works fine but when I add it to the job queue the logs said it execute fine but when i check the status column of the table the record still "Awaiting" then i check warehouse entry and the report didnt do nothing here.
How can it be posible that it execute ok with dev environment, a copy of pro environment, but when i import to pro it fails.... and the logs said it work.
To fix this temporary i set a page with a PageAction to launch the report, but ill apreciate if i can fix the queue problem and make it to launch automatically.
I have other jobs in the queue that works fine.
Anyone can let me a hand, please?
I have 2 environment of nav 2017, one for development (in our servers) and one for production(in Azure).
I develop a report that check records on a table, if they have Status = Awaiting it grab the record, block warehouse entry and insert the rec in it, go back to the table and change status Awaiting to Inserted.
the funny thing here is that i develop this in Dev environment, the report works and i set the job on queue and check that it works fine, all good since here.
(Dev environment is a copy of Pro with a difference of 2-4 months in data no development in job queue) (User that launch job have "SUPER")
But when i export the objects to pro environment, the report itself works fine but when I add it to the job queue the logs said it execute fine but when i check the status column of the table the record still "Awaiting" then i check warehouse entry and the report didnt do nothing here.
How can it be posible that it execute ok with dev environment, a copy of pro environment, but when i import to pro it fails.... and the logs said it work.
To fix this temporary i set a page with a PageAction to launch the report, but ill apreciate if i can fix the queue problem and make it to launch automatically.
I have other jobs in the queue that works fine.
Anyone can let me a hand, please?
0
Answers
-
i think i choose the incorrect category for the post, maybe should be in "Nav Three Tier" any admin can move this to the right category?0
-
It sounds like your report works manually but fails silently in the Job Queue on Prod. This is often due to how NAV 2017 handles Job Queue sessions — even with "SUPER" permissions, background jobs can behave differently.
Possible Causes:
Missing explicit permissions in the report or codeunit
COMMITs or error handling not behaving the same in background
Data differences causing a specific record to fail silently
Job Queue session skips some triggers/UI logic
Fix:
Try running the report manually in Prod as the Job Queue user.
Add logging or error handling in the report to catch silent failures.
Consider moving logic to a Codeunit and calling that from the Job Queue.
Let me know if you want help0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions