NAV 2018 RTM Job Queue - Enqueue - Scheduled task record created, but never executed

Sog
Member Posts: 1,023
During tests of creating a job queue entry via codeunit 453 Job Queue - Enqueue via a webservice running under a super account, I notice the following behaviour:
Job queue entry is created, status is set to ready and has a system task ID.
In the table Scheduled Task, I see a new entry being created under the account calling the web service.
A moment later the entry is removed (possibly because the task scheduler picked it up), but the job queue entry remains untouched.
Job Queue's scheduled is set to "No", the corresponding system task id has been removed.
When running the same code via a client session, everything behaves as normal, but when it's a web service session, the described behavior is showing.
Has anybody run into this issue?
Web service is of the SOAP kind, did not test this with ODATA
Job queue entry is created, status is set to ready and has a system task ID.
In the table Scheduled Task, I see a new entry being created under the account calling the web service.
A moment later the entry is removed (possibly because the task scheduler picked it up), but the job queue entry remains untouched.
Job Queue's scheduled is set to "No", the corresponding system task id has been removed.
When running the same code via a client session, everything behaves as normal, but when it's a web service session, the described behavior is showing.
Has anybody run into this issue?
Web service is of the SOAP kind, did not test this with ODATA
0
Best Answers
-
Are you using the same "super account" to test the job queue via the client session?Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035 -
And after plowing through a lot of scenarios, it appears it's an NAV 2018 RTM bug resolved in the CU1. See here: cumulative-update-01-for-microsoft-dynamics-nav-2018 item number 253071
So a CU 1 upgrade is required for a correctly functioning job queue in various scenarios. What I did notice is that even when the NETWORK SERVICE was directly logged into the rtc, the issue persisted.1
Answers
-
Are you using the same "super account" to test the job queue via the client session?Slawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-035 -
I did not expect that to be an issue, but you're correct Slawek. Changing the calling user account to my owndid make it work. Now I have to figure out why the other user account couldn't schedule the task. (which was NT AUTHORITY\NETWORK SERVICE) I know it shouldn't be a super user, but this of course isn't a production environment.0
-
And after plowing through a lot of scenarios, it appears it's an NAV 2018 RTM bug resolved in the CU1. See here: cumulative-update-01-for-microsoft-dynamics-nav-2018 item number 253071
So a CU 1 upgrade is required for a correctly functioning job queue in various scenarios. What I did notice is that even when the NETWORK SERVICE was directly logged into the rtc, the issue persisted.1 -
I used NAV 2018 CU 03 (AU version) still got this kind of error.
any clue?0 -
my case is similar like this case below
"Job queue entry is created, status is set to ready and has a system task ID.
In the table Scheduled Task, I see a new entry being created under the account calling the web service.
A moment later the entry is removed (possibly because the task scheduler picked it up), but the job queue entry remains untouched.
Job Queue's scheduled is set to "No", the corresponding system task id has been removed."0 -
The issue still appears on a test environment in CU1. After changing the calling user of the webservice to a domain user, the issue disappeared. We still need to execute more tests, but what we found out is that under network service, tasks cannot be scheduled under some scenarios0
-
I am using nav 2018 CU 03, if the service starts using network service, then it cant run job queue.
but if using domain account then it can run...
my 2017 edition no issue either using network service nor domain account0
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