MS Dynamics NAV 2015 / LS 2015 - Replication issue - Job Queues always stop

glennyboy
Member Posts: 16
Good day!
MS Dynamics NAV 2015 / LS 2015 - Replication issue - Job Queues always stop
- every time we turn-on or restart the client computer Job Queues always stop, we need to start it again
OS: Windows 10 Pro 64bit and Windows 7 Pro 64bit
MS Dynamics NAV version:

Thank you.
MS Dynamics NAV 2015 / LS 2015 - Replication issue - Job Queues always stop
- every time we turn-on or restart the client computer Job Queues always stop, we need to start it again
OS: Windows 10 Pro 64bit and Windows 7 Pro 64bit
MS Dynamics NAV version:

Thank you.
0
Comments
-
The trick I used was kicking job queues out of the equation (started doing that with NAV2009...) and I am using SQL Server Agent that runs a PowerShell command that calls a NAV webservice that runs the codeunit I want to run.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
The trick I used was kicking job queues out of the equation (started doing that with NAV2009...) and I am using SQL Server Agent that runs a PowerShell command that calls a NAV webservice that runs the codeunit I want to run.
hi @kriki
thank you for your reply
can you please show me how to do it using SQL Server Agent that runs a PowerShell command that calls a NAV webservice that runs the codeunit I want to run
thank you very much!0 -
In SQL Server Agent task, you select PoSh to run instead of TSQL.
and in the command you put something like:
$webservice = New-WebServiceProxy -Uri "http://127.0.0.1:7047/YourNAVServiceName/WS/Some Company/Codeunit/YourWebServiceNameInNAV" -UseDefaultCredential true;
$webservice.Timeout = 360000000; # 100 hours
$webservice.YourMethodInTheCodeunit(SomeParameters);
You also need to use a domain account on SQL Server Agent as it will be run with that service account in NAV. So use an account with only the rights on your domain that it really needs.
For testing, you can run the PoSh on your PC. it will use your credentials to call the webservice.Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0
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