A codeunit is made to create a PDF file (from navision report) & sending mails this pdf as an attachment to specified mail ids.
When we run this codeunit manually It works fine as per the expectation but when we use the Scheduler (NAS) for the same purpose it does not work properly(occasionally).
It creates blank pdf file & attached it into the mail.
Where is the problem ?
Now or Never