cancel
Showing results for 
Search instead for 
Did you mean: 

Error code 255 when executing a .bat file

former_member202087
Active Participant
0 Kudos


We have a job that is triggered in a script and it runs fine most of the time.  There is a dataflow that runs that creates the file used by the job triggered in the script file.  About once a month we get an error (usually around the 6th or 7th) with retrun code 255.  Any idea what this error code means?

.bat file executed with error:     255:   E:\BOBJ\Data Services\bin>E:\BOBJ\DATASE~1/bin/AL_RWJ~1.EXE  "E:\BOBJ\Data Services\log/JobServer_1/" -w "inet:USHDC2933:3500"  -C "//ushdc2933/ds/TT/B_JOB_DTE_TT_DAILY_CASES.txt"  

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Its a windows error. Check this - error 255 running a .bat with a loop (for /f ...)

former_member202087
Active Participant
0 Kudos

I am not sure that the solution they showed there would work for this.  Here is the code we are dealing with.  As I mentioned above it is not consistent.  It seems to happen only about once a month.  Leads me to believe there is something running in the background that may be impacting it.   The bold statement is the exec statement and the yellow highlights are where it is throwing the error.

Former Member
0 Kudos

try exec('cmd','path',8); Also why you need to write like this exec('[$$JobServer_File_loc]TT\\....?