So my trials with this update object continue. I have a console application that simply prints to paperless/updates the SO Sales Journal for any and all SO Invoice batches available. Program works fine when running it manually - prints all necessary reports/journals to paperless, updates the sales journal, does the same for the resulting DTR. (Sage 100 2020.1 Premium)
I add it to the windows task scheduler as a basic task to run once a day at particular time and, whether it runs on schedule or is manually invoked, it prints the Sales Journal to paperless office (along with all other additional reports I enabled - GP journal, etc). HOWEVER -
Immediately upon calling the below method, it fails and returns 'The register must be printed prior to posting'. If I check paperless office, the resulting PDF is there, in its completion, but shows 'N' as updated.
oUpdObj.nUpdate()
This is ONLY limited to running it using task scheduler. Task scheduler is set to run as domain admin, with highest privileges, etc.
Just curious if anyone has come across this or may have any suggestions! At this point I'm ready to give up ;(