Dear Experts,
Pardon my ignorance as I am not a NAV expert by any means.
I am trying to schedule a codeunit to run through NAS and the job is failing with the error message "Error on NAS Scheduling". However, if I run the codeunit manually via Object Designer it runs successfully without any errors. The instances where I have seen this error message before is if the codeunit is bringing up a dialog box / window whilst it is executing or on error or on successful completion.
In this instance when I am running it manually via object designer the codeunit is not bringing up any dialog box from start to end. So I am a bit baffled as to where / why the scheduled job is failing when executed via NAS. I have cross checked the scheduler settings with other similar jobs that are scheduled which are running successfully and they are exactly the same.
It will be great help if you could please point me in the right direction on where to start the investigation.
Btw, we are using NAV2009 SP1 Classic on native database.
Thanks in advance.
Cheers,
Kishore
0
Answers
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
If that doesn't work then you'll need to debug NAS and step through the code to see where it blows up.
RIS Plus, LLC
if Codeunit.run( ) and change the return message to be the actual error.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
The system checks to see if the record's current "Run Status" is processing and if the .NASID field on the scheduler job header record equals the a NAS id variable. This variables value should be the first parameter in the string the NAS was started with. If you are using the LSR Scheduler, the value should be LSRSCHEDULER.