Windows Return Code 255

User5059 (1 post)
March 27, 2017 07:54 AM
Accepted Answer

Report Commander version 2

Sometimes Report Commander returns a 'Windows Return Code = 255', but everything seems to work normal and the .pdf file is created.


Our job schedule then reports this as an error.

Trying to determine why the error and not just tell the job scheduler to skip if 255.

simple bat file

set  CRREPORT=Opts-Report-01b-Inventory-by-class-all-locations
set  OUTPUTTYPE=DeliverNow
set  OUTPUTFILE=Opts01B-Inv-byclass_
set  skipifempty=-suppressempty
"C:\Program Files\Arcana Development\Report Commander 2\adcrutil.exe"^
  -report=\\example.com\netshares\SYS\cr\%CRREPORT%.rpt^
  -login!=:^
  %skipifempty%^
  -refresh^
  -exportformat=PDF^
  -exportfile=\\example.com\netshares\SYS\p21\p21\%OUTPUTTYPE%\%OUTPUTFILE%@now("yyMMdd-HHmmss").pdf

 

Bill Staff (599 posts)
March 27, 2017 08:46 AM
Accepted Answer

Report Commander should not be returning an exit code of 255--it would return 8 in the case of errors. Does your batch file do anything after the call to adcrutil?

It's possible that Report Commander is crashing at exit--that might produce a 255 from Windows. Check the Event Viewer and see if there's an application crash being reported. What database connection/driver are you using for the report?

Replies are disabled for this topic.