I posted this same question a month back. We have ocx which is very old and the ocx works well in few 2016 servers, but it is not working when we run as the batch program. We uses the same code while running as an App and running as a Batch server.
The settings of the ocx are exactly same on the both the servers. I verified all the parameters and environmental variables as well. No changes.
I tried to run batch program built in Powerbuilder 11.5 and then I rebuilt the same code in Appeon PowerBuilder 2019 R2 version, both are same code.
Both the code fail at the same exact point while running in the batch server mode.
Please let me know if you need more information and help will be highly helpful.
running as Batch mode, the account is tied to administrator account
sure I will try to give it.
What I mean is, right click on the batch / app and choose "Run as Administrator".