01-03-2013 04:54 AM - edited 03-01-2019 08:57 AM
Job Command is D:\PSTARDEV_BACKUP\backup.cmd ..
Output of the Job
Total Copied Skipped Mismatch FAILED Extras
Dirs : 10413 0 10413 0 0 0
Files : 78850 18001 60849 0 0 0
Bytes : 3.319 g 1.274 g 2.045 g 0 0 0
Times : 1:57:56 1:05:56 0:00:00 0:52:00
Speed : 345883 Bytes/sec.
Speed : 19.791 MegaBytes/min.
Ended : Thu Jan 03 00:55:51 2013
Completed at 1/3/2013 12:56 AM
Does any one know why is status of the job is completed abnormally when actual job is finishing with out any error's.. ?????
01-03-2013 06:36 AM
That looks like Robocopy to me so I think the Extra files has it exit with a non-zero exit code (If my memory serves me right)
Can you give us more information (what is command / params) In job actitivy thestatus page will tell you the exit code and the job definition run tab "tracking section" will tell you how it evalutates the exit code (or alternative)
01-03-2013 07:07 AM
Marc , Thanks for the Reply ..Job has a Exit Code of 1
Command of the job is D:\PSTARDEV_BACKUP\backup.cmd and there is no parameters. It's run on a windows agent.
Tracking Use : Exit Code (normall = 0 to 0 )
01-03-2013 05:31 PM
Robocopy has numerous exit codes. exit code zero indicates source and destination match and nothing needed copied. Exit codes 0-8 are non-error exit codes depending on what you're trying to do. REF:http://support.microsoft.com/kb/954404
So if you only want to fail on errors, set your successful exit code range 0-8.
But if the destination directory should never have a file that isn't in the source directory, set the exit code 0-1 since exit code 2 indicates files in destination that are not in source location but robocopy doesn't error and still copies files.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide