I've been having an issue when trying to run a codeunit from a NAS - part of it's job is to generate and email a PDF. In the test environment this was fine, but in live it failed. It's some sort of permission issue but there are no errors logged and it's been difficult to track the issue down.
To help try and establish where the problem is I thought I would run NAV from the Windows Scheduler.
Here's my test script which is almost right -
set wshshell = wscript.createobject("WScript.Shell")
WshShell.run "navision://client/run?database=C:\Dynamics%20NAV%20Clients\NAV%202009%20CTP4%20classic\database.fdb&company=Blank&target=Form%2050000&servertype=NAVISION&ntauthentication=1"
The one issue is that it keeps prompting for a database user rather than using window authentication.
Any suggestions why it doesn't work?
Thanks
Simon
0
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
So instead, I added an ID=, logged in once and now it seems ok?
Simon
Simon