Планировщик заданий ошибка 0x3

I have several tasks using Robocopy.exe, On One of those tasks, I get a error result 0X3 but the log file doesn’t display any error.
Here is the command :

ROBOCOPY \\X\L$\FORMATION \\Y\O$\FORMATION /MIR /sec /W:2 /R:5 /log:c:\O_journal.log

I tried to launch it without the task scheduler, it worked fine without ant errors.

I know that the error 0X3 is : ERROR_PATH_NOT_FOUND.But the log file doesn’t display any error.

If someone have any clue or any methods…

Ram's user avatar

Ram

3,09210 gold badges40 silver badges56 bronze badges

asked Oct 29, 2014 at 14:57

Spoot's user avatar

1

This is a standard behavior and relates to exit codes from Robocopy:

 0×00   0       No errors occurred, and no copying was done.
                The source and destination directory trees are completely synchronized. 

 0×01   1       One or more files were copied successfully (that is, new files have arrived).

 0×02   2       Some Extra files or directories were detected. No files were copied
                Examine the output log for details. 

 0×04   4       Some Mismatched files or directories were detected.
                Examine the output log. Housekeeping might be required.

 0×08   8       Some files or directories could not be copied
                (copy errors occurred and the retry limit was exceeded).
                Check these errors further.

 0×10  16       Serious error. Robocopy did not copy any files.
                Either a usage error or an error due to insufficient access privileges
                on the source or destination directories.

And a combination of them, ie: 0x03 = 0x02 + 0x01

See https://blogs.technet.microsoft.com/deploymentguys/2008/06/16/robocopy-exit-codes/ for a complete explanation.

answered Sep 11, 2017 at 10:14

Donald Mac Kenzie's user avatar

1

This is an issue to the path configured on the robocopy script. I have fixed this issue by adding the root directory or the main drive to both source and destination.

Note: Please make sure that you are an administrator to both Servers (source and destination)

Example:

Source: «\\192.168.1.2\e$\my files»

Destination: «\\192.168.1.5\d$\backup»

The root directory or the main drive that I have referred is the «e$» and «d$» as shown above. If this will not included in your script, you will be encountering the «0X3» error in the Scheduler and the scheduler will not works.

Note: This script is to synchronize/replicate the file from the source to destination.

Parameters used. /MIR /E /Z /R:5 /W:5

This is how the script looks as a whole:

robocopy "\\\192.168.1.2\e$\my files" "\\\192.168.1.5\d$\backup" /MIR /E /Z /R:5 /W:5

Hope this might help.

Thanks.

Xian

kot-da-vinci's user avatar

answered Jun 29, 2016 at 5:48

Christian Gomez's user avatar

I have several tasks using Robocopy.exe, On One of those tasks, I get a error result 0X3 but the log file doesn’t display any error.
Here is the command :

ROBOCOPY \XL$FORMATION \YO$FORMATION /MIR /sec /W:2 /R:5 /log:c:O_journal.log

I tried to launch it without the task scheduler, it worked fine without ant errors.

I know that the error 0X3 is : ERROR_PATH_NOT_FOUND.But the log file doesn’t display any error.

If someone have any clue or any methods…

Ram's user avatar

Ram

3,08410 gold badges40 silver badges56 bronze badges

asked Oct 29, 2014 at 14:57

Spoot's user avatar

1

This is a standard behavior and relates to exit codes from Robocopy:

 0×00   0       No errors occurred, and no copying was done.
                The source and destination directory trees are completely synchronized. 

 0×01   1       One or more files were copied successfully (that is, new files have arrived).

 0×02   2       Some Extra files or directories were detected. No files were copied
                Examine the output log for details. 

 0×04   4       Some Mismatched files or directories were detected.
                Examine the output log. Housekeeping might be required.

 0×08   8       Some files or directories could not be copied
                (copy errors occurred and the retry limit was exceeded).
                Check these errors further.

 0×10  16       Serious error. Robocopy did not copy any files.
                Either a usage error or an error due to insufficient access privileges
                on the source or destination directories.

And a combination of them, ie: 0x03 = 0x02 + 0x01

See https://blogs.technet.microsoft.com/deploymentguys/2008/06/16/robocopy-exit-codes/ for a complete explanation.

answered Sep 11, 2017 at 10:14

Donald Mac Kenzie's user avatar

1

This is an issue to the path configured on the robocopy script. I have fixed this issue by adding the root directory or the main drive to both source and destination.

Note: Please make sure that you are an administrator to both Servers (source and destination)

Example:

Source: «\192.168.1.2e$my files»

Destination: «\192.168.1.5d$backup»

The root directory or the main drive that I have referred is the «e$» and «d$» as shown above. If this will not included in your script, you will be encountering the «0X3» error in the Scheduler and the scheduler will not works.

Note: This script is to synchronize/replicate the file from the source to destination.

Parameters used. /MIR /E /Z /R:5 /W:5

This is how the script looks as a whole:

robocopy "2.168.1.2e$my files" "2.168.1.5d$backup" /MIR /E /Z /R:5 /W:5

Hope this might help.

Thanks.

Xian

kot-da-vinci's user avatar

answered Jun 29, 2016 at 5:48

Christian Gomez's user avatar

Если у вас не выполняются назначенные задания в Планировщике и в столбце «прошлый результат»  код ошибки отличный от нуля, то расшифровку кодов можно посмотреть на следующих ресурсах:

tasks1

Устранение неполадок, связанных с назначенными заданиями в Windows XP и Windows Server 2003

Обычные коды для назначенных заданий следующие:
0x0: Операция выполнена успешно.
0x1: Вызов неверной или неизвестной функции.
0xa: Ошибка в среде.

В поиске проблемы может помочь журнал планировщика в папке Windows с именем Schedlgu.txt.

Расширенное описание кодов ошибок можно прочитать в MSDN:

Task Scheduler Error and Success Constants (для Windows 2008 server и Windows Vista)

System Error Codes

  • Remove From My Forums
  • Question

  • Have a very easy requirement (although I know that nothing is easy with Microsoft): Should create a scheduled task that runs one time on each client. Have created the task with computer GPO preferences with the following settings:

    — Triggers: One Time (the current time is specified in «Details»)

    — Settings: «Run the task as soon as possible after a scheduled start is missed»

    — Settings: «Allow the task to be run on demand»

    What happen on the client: The GPO works and the task is created with the configured settings. However, the task never starts. Status remains at 0x41303 («the task has not yet run» forever (waited for an hour, have rebooted the test client, nothing
    change). As soon as I start the task manually from the task scheduler on the client, the task starts immediately.

    Thank you in advance for any advice.

    Franz

    • Edited by

      Monday, March 12, 2018 4:12 PM

Answers

  • Been a few threads were Task Scheduler does not run as expected (search this forum for task to see examples). The task do not seem to run if first set to run in the past, even if they are set to run multiple times.

    So try as a test setting it in the near future doing a gpupdate and waiting see if that works. Might make rolling it out to many workstations interesting.

    • Marked as answer by
      FranzSchenk
      Monday, March 19, 2018 10:17 AM
  • Thank you for your explications.

    — I see that Microsoft obviously doesn’t anymore make any documentation about essential Windows components like the task scheduler. Who is ss64.com?

    — My question is what the task scheduler is doing when two one time triggers are configured like in the printscreen below:

    But since Microsoft doesn’t document their Windows task scheduler, probably only «try and error» will show if the «Run the task as soon as possible after a scheduled start is missed»
    will work or not in this configuration. And Microsoft can change this behavior with every monthly cumulative patch.

    It’s a major bug that the option «Run the task as soon as possible
    after a scheduled start is missed» is dependent of the configured triggers. This option has nothing to do with any triggers.

    • Edited by
      FranzSchenk
      Friday, March 16, 2018 10:38 AM
    • Marked as answer by
      FranzSchenk
      Monday, March 19, 2018 10:18 AM

You may get a Task Scheduler error prompt stating One or more of the specified arguments are not valid if you have created an automated scheduled task that should be triggered or you have set some other conditions but it fails to do so when you log onto your Windows 11 or Windows 10 computer. This post provides applicable solutions to the issue.

One or more of the specified arguments are not valid Task Scheduler error

An error has occurred for task [taskname]. Error message: One or more of the specified arguments are not valid.

When this error occurs on your system, it means that Task Scheduler is missing the required arguments that are needed to execute the task. This may be due to a certain group policy in effect, or that the task hasn’t been configured properly.

If you get the One or more of the specified arguments are not valid error when a scheduled task fails to run on your Windows 11/10 device, you can try our recommended solutions below in no particular and see if that helps you resolve the issue on your system.

  1. Check if the Task arguments are correct
  2. Check Task Scheduler service
  3. Assign proper permissions to the Task
  4. Create new User Account
  5. Perform System Restore

Let’s have a quick look at the description of the listed solutions.

1] Check if the Task arguments are correct

One or more of the specified arguments are not valid

  • Open Task Scheduler
  • Click on Action
  • Selecet Create a Basic Task
  • Under Action > Start a program, ensure that the arguments specified are valid.

Read: How to delay a Scheduled Task in Task Scheduler

2] Check Task Scheduler service

Check Task Scheduler service

The Task Scheduler service enables you to perform automated tasks on a computer. With this service, you can schedule any program to run at any time or when a specific event occurs. The Task Scheduler monitors the time or event criteria you choose and then executes the task when those criteria are met. So, basically if this service is not started and running, probably got disabled on your device for one reason or the other as the service is by default set to automatic startup – then you are likely be experiencing the issue in view.

To check and make sure Task Scheduler service is started and running, do the following:

  • Make sure you’re logged in as an administrator on your Windows 11/10 PC.
  • Press Windows key + R to invoke the Run dialog.
  • In the Run dialog box, type services.msc and hit Enter to open Services.
  • In the Services window, scroll and locate the Task Scheduler service.
  • Double-click on the entry to edit its properties.
  • In the properties window, click the drop-down on the Startup type and select Automatic.
  • Next, make sure the service is started by clicking the Start button if not greyed out.
  • Click Apply > OK to save changes.
  • Restart PC.

If the issue persists, try the next solution.

3] Assign proper permissions to the Task

As already pointed out, this error could as well be permissions-related. In Task Scheduler, there is a security option to use a specific group to run the task. So, if the Task doesn’t have the correct permission, you will get this error.

To assign proper permissions to the Task, you need to change the group to SYSTEM to elevate the permissions for the task. To do this, follow the instructions below:

  • Press Windows key + R keys to invoke the Run dialog.
  • In the Run dialog box, type taskschd.msc and hit Enter to open Task Scheduler.
  • In the left pane of Task Scheduler, expand the Task Scheduler Library.
  • Now, select the folder that contains the task triggering the error.
  • In the middle pane of the opened folder, right-click the task and select Properties.
  • On the task Properties window, click General tab.
  • Under Security options, click on Change User or Group.
  • In the Select User or Group dialog, click Advanced.
  • In the Advanced window, click Find now and from the usernames listed select SYSTEM.
  • Click OK.
  • Click OK again to successfully add the username to the specified task.
  • Now, check the Run whether user is logged on or not option.
  • Click OK to save changes.
  • Reboot your PC.

The task should now be able to run without issue. If that’s not the case, try the next solution.

Read: How to schedule a Batch File to run automatically

4] Create new User Account

Before you try this to rule out the possibility of a corrupted profile/account which will potentially prevent the logged-on user from performing certain tasks, you can delete the scheduled task and then recreate the task and see if the task can now run as scheduled. Otherwise, simply create a new local user or administrator account, log into the new account, create the task again. if the task successfully runs under this new account, you can transfer your files/data from the old account to the new account.

If this isn’t the case, but the issue at hand is still not resolved, you can try the next solution.

5] Perform System Restore

System Restore Windows

As a last resort, assuming the task was running earlier without issues, it’s likely some changes has been made on your system like system update. driver or software update which may have broken the Task Scheduler functionality, consequently preventing tasks from running as scheduled. In this case, an applicable solution is to perform System Restore to revert your system to the certain period you are sure the task was running normally.

That’s it!

Related post: Task Scheduler not running or starting programs

What is 0x1 error in Task Scheduler?

Task scheduler last run result 0x1 error mostly occurs due to privilege issue. For example, the user do not have sufficient privilege to execute the task at the specified location or the process unable to locate the file for some reason.

How do I change my username in Task Scheduler?

Highlight the name of the scheduled task you want to change, click File menu > Properties, and select the Task tab. In the Run as box, type the account name to use. Click Set password and then type the user account password in the “Password” and “Confirm password” fields. Click OK.

What is Run with highest privileges in Task Scheduler?

In Task Scheduler, the Run with highest privileges option essentially gives the task administrator privileges the same way the User Account Control (UAC) prompt would do it. If you plan to use this for administrative purposes, you will probably want to enable this option.

Read: Create Elevated Shortcut to run Program: Bypass UAC Prompt

Is Schtasks.exe a virus?

No. The true schtasks.exe file is a safe Windows system process called Task Scheduler Configuration Tool. This tool enables you to schedule any program, task or a script to run at a specified time. You can also schedule a task to be executed daily, weekly, monthly, etc. This tool enables you to add and modify tasks from a central point.

У меня есть некоторые запланированные задачи на Windows Server 2016, которые должны выполняться еженедельно (с понедельника по пятницу) в определенное время.

Когда я отключаю эти задачи и снова включаю их, они не запускаются, если я не запускаю их вручную через планировщик задач.

Значения времени последнего выполнения и результата последнего запуска не изменяются, когда не удается запустить повторно включенную задачу, однако они меняются, когда я запускаю задачу вручную.

Может кто-нибудь посоветовать, почему запланированные задачи не запускаются должным образом после повторного включения?

Пожалуйста, не стесняйтесь задавать любые вопросы.

задан TheManBehindTheMan6

Запланированная задача, которая не была запущена после повторного включения, выполнялась через окно командной строки. Я обнаружил, что если я закрыл запущенную задачу, просто закрыв окно командной строки, значение «результата последнего запуска» для задачи в планировщике задач отобразит код ошибки: 0xC000013A. С этим кодом ошибки отключение и повторное включение задачи не позволит повторно включить задачу, оно будет повторно включено только после того, как задача была запущена вручную хотя бы один раз после повторного включения. Однако, если мы закроем запущенную задачу, сначала завершив сеанс с помощью планировщика задач, а затем закрыв окно, значение результата последнего запуска для этой задачи будет: 0x41306. В этом случае, если мы отключим / повторно включим задачу, пока значение результата последнего запуска: 0x41306, оно будет выполняться как положено.

ответ дан TheManBehindTheMan6

Всё ещё ищете ответ? Посмотрите другие вопросы с метками scheduled-tasks windows-server-2016.

I have a batch file that runs robocopy weekly.

robocopy «D:\Database BU Transit»     «E:\HCNBUWeekly» /e /v /r:1 /w:1 /log:C:\Backup\logs\Weekly.log /np /nfl /ndl
robocopy «D:\Database BU Transit»     «J:\HCN\BUWeekly» /e /v /r:1 /w:1 /log+:C:\Backup\logs\weekly.log /np /nfl /ndl

When the robocopy finished I got Last Run Result 0x3. According to MS,

In the log file. This seems that it worked fine. but I am not sure why I am getting 0x3 code from the last run result.

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Sat Jul 12 23:30:00 2014

   Source : D:\Database BU Transit\
     Dest : E:\HCNBUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         4
   Bytes :   2.486 g   2.486 g         0         0         0   9.155 g
   Times :   0:00:39   0:00:39                       0:00:00   0:00:00

   Speed :            67784952 Bytes/sec.
   Speed :            3878.686 MegaBytes/min.

   Ended : Sat Jul 12 23:30:39 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Sat Jul 12 23:30:39 2014

   Source : D:\Database BU Transit\
     Dest : J:\HCN\BUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         8
   Bytes :   2.486 g   2.486 g         0         0         0  17.573 g
   Times :   0:01:31   0:01:31                       0:00:00   0:00:00

   Speed :            29267549 Bytes/sec.
   Speed :            1674.702 MegaBytes/min.

   Ended : Sat Jul 12 23:32:11 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Mon Jul 14 07:46:01 2014

   Source : E:\HCNBUWeekly\
     Dest : J:\HCN\BUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:07:52   0:07:52                       0:00:00   0:00:00

   Speed :            26464739 Bytes/sec.
   Speed :            1514.324 MegaBytes/min.

   Ended : Mon Jul 14 07:53:53 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Tue Jul 15 07:00:50 2014

   Source : E:\HCNBUWeekly\
     Dest : J:\HCN\BUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:08:10   0:08:10                       0:00:00   0:00:00

   Speed :            25497194 Bytes/sec.
   Speed :            1458.961 MegaBytes/min.

   Ended : Tue Jul 15 07:09:00 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Wed Jul 16 07:38:37 2014

   Source : E:\HCNBUWeekly\
     Dest : J:\HCN\BUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:38   0:20:38                       0:00:00   0:00:00

   Speed :            10096282 Bytes/sec.
   Speed :             577.713 MegaBytes/min.

   Ended : Wed Jul 16 07:59:16 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            
 
——————————————————————————-

  Started : Thu Jul 17 07:35:43 2014

   Source : E:\HCNBUWeekly\
     Dest : J:\HCN\BUWeekly\

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:15   0:20:15                       0:00:00   0:00:00

   Speed :            10286800 Bytes/sec.
   Speed :             588.615 MegaBytes/min.

   Ended : Thu Jul 17 07:55:59 2014

Если у вас не выполняются назначенные задания в Планировщике и в столбце «прошлый результат»  код ошибки отличный от нуля, то расшифровку кодов можно посмотреть на следующих ресурсах:

tasks1

Устранение неполадок, связанных с назначенными заданиями в Windows XP и Windows Server 2003

Обычные коды для назначенных заданий следующие:
0x0: Операция выполнена успешно.
0x1: Вызов неверной или неизвестной функции.
0xa: Ошибка в среде.

В поиске проблемы может помочь журнал планировщика в папке Windows с именем Schedlgu.txt.

Расширенное описание кодов ошибок можно прочитать в MSDN:

Task Scheduler Error and Success Constants (для Windows 2008 server и Windows Vista)

System Error Codes

I have a batch file that runs robocopy weekly.

robocopy «D:Database BU Transit»     «E:HCNBUWeekly» /e /v /r:1 /w:1 /log:C:BackuplogsWeekly.log /np /nfl /ndl
robocopy «D:Database BU Transit»     «J:HCNBUWeekly» /e /v /r:1 /w:1 /log+:C:Backuplogsweekly.log /np /nfl /ndl

When the robocopy finished I got Last Run Result 0x3. According to MS,

In the log file. This seems that it worked fine. but I am not sure why I am getting 0x3 code from the last run result.

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Sat Jul 12 23:30:00 2014

   Source : D:Database BU Transit
     Dest : E:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         4
   Bytes :   2.486 g   2.486 g         0         0         0   9.155 g
   Times :   0:00:39   0:00:39                       0:00:00   0:00:00

   Speed :            67784952 Bytes/sec.
   Speed :            3878.686 MegaBytes/min.

   Ended : Sat Jul 12 23:30:39 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Sat Jul 12 23:30:39 2014

   Source : D:Database BU Transit
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         8
   Bytes :   2.486 g   2.486 g         0         0         0  17.573 g
   Times :   0:01:31   0:01:31                       0:00:00   0:00:00

   Speed :            29267549 Bytes/sec.
   Speed :            1674.702 MegaBytes/min.

   Ended : Sat Jul 12 23:32:11 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Mon Jul 14 07:46:01 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:07:52   0:07:52                       0:00:00   0:00:00

   Speed :            26464739 Bytes/sec.
   Speed :            1514.324 MegaBytes/min.

   Ended : Mon Jul 14 07:53:53 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Tue Jul 15 07:00:50 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:08:10   0:08:10                       0:00:00   0:00:00

   Speed :            25497194 Bytes/sec.
   Speed :            1458.961 MegaBytes/min.

   Ended : Tue Jul 15 07:09:00 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Wed Jul 16 07:38:37 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:38   0:20:38                       0:00:00   0:00:00

   Speed :            10096282 Bytes/sec.
   Speed :             577.713 MegaBytes/min.

   Ended : Wed Jul 16 07:59:16 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Thu Jul 17 07:35:43 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:15   0:20:15                       0:00:00   0:00:00

   Speed :            10286800 Bytes/sec.
   Speed :             588.615 MegaBytes/min.

   Ended : Thu Jul 17 07:55:59 2014

I have a batch file that runs robocopy weekly.

robocopy «D:Database BU Transit»     «E:HCNBUWeekly» /e /v /r:1 /w:1 /log:C:BackuplogsWeekly.log /np /nfl /ndl
robocopy «D:Database BU Transit»     «J:HCNBUWeekly» /e /v /r:1 /w:1 /log+:C:Backuplogsweekly.log /np /nfl /ndl

When the robocopy finished I got Last Run Result 0x3. According to MS,

In the log file. This seems that it worked fine. but I am not sure why I am getting 0x3 code from the last run result.

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Sat Jul 12 23:30:00 2014

   Source : D:Database BU Transit
     Dest : E:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         4
   Bytes :   2.486 g   2.486 g         0         0         0   9.155 g
   Times :   0:00:39   0:00:39                       0:00:00   0:00:00

   Speed :            67784952 Bytes/sec.
   Speed :            3878.686 MegaBytes/min.

   Ended : Sat Jul 12 23:30:39 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Sat Jul 12 23:30:39 2014

   Source : D:Database BU Transit
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         1         1         0         0        
0         8
   Bytes :   2.486 g   2.486 g         0         0         0  17.573 g
   Times :   0:01:31   0:01:31                       0:00:00   0:00:00

   Speed :            29267549 Bytes/sec.
   Speed :            1674.702 MegaBytes/min.

   Ended : Sat Jul 12 23:32:11 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Mon Jul 14 07:46:01 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:07:52   0:07:52                       0:00:00   0:00:00

   Speed :            26464739 Bytes/sec.
   Speed :            1514.324 MegaBytes/min.

   Ended : Mon Jul 14 07:53:53 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Tue Jul 15 07:00:50 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:08:10   0:08:10                       0:00:00   0:00:00

   Speed :            25497194 Bytes/sec.
   Speed :            1458.961 MegaBytes/min.

   Ended : Tue Jul 15 07:09:00 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Wed Jul 16 07:38:37 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:38   0:20:38                       0:00:00   0:00:00

   Speed :            10096282 Bytes/sec.
   Speed :             577.713 MegaBytes/min.

   Ended : Wed Jul 16 07:59:16 2014

——————————————————————————-
   ROBOCOPY     ::     Robust File Copy for Windows                            

 
——————————————————————————-

  Started : Thu Jul 17 07:35:43 2014

   Source : E:HCNBUWeekly
     Dest : J:HCNBUWeekly

    Files : *.*

        
  Options : *.* /V /NDL /NFL /S /E /COPY:DAT /NP /R:1 /W:1

——————————————————————————

——————————————————————————

               Total    Copied   Skipped  Mismatch    FAILED    Extras
    Dirs :         1         0         1         0        
0         0
   Files :         5         5         0         0        
0         0
   Bytes :  11.642 g  11.642 g         0         0         0         0
   Times :   0:20:15   0:20:15                       0:00:00   0:00:00

   Speed :            10286800 Bytes/sec.
   Speed :             588.615 MegaBytes/min.

   Ended : Thu Jul 17 07:55:59 2014

I have several tasks using Robocopy.exe, On One of those tasks, I get a error result 0X3 but the log file doesn’t display any error.
Here is the command :

ROBOCOPY \XL$FORMATION \YO$FORMATION /MIR /sec /W:2 /R:5 /log:c:O_journal.log

I tried to launch it without the task scheduler, it worked fine without ant errors.

I know that the error 0X3 is : ERROR_PATH_NOT_FOUND.But the log file doesn’t display any error.

If someone have any clue or any methods…

Ram's user avatar

Ram

3,08410 gold badges39 silver badges56 bronze badges

asked Oct 29, 2014 at 14:57

Spoot's user avatar

1

This is a standard behavior and relates to exit codes from Robocopy:

 0×00   0       No errors occurred, and no copying was done.
                The source and destination directory trees are completely synchronized. 

 0×01   1       One or more files were copied successfully (that is, new files have arrived).

 0×02   2       Some Extra files or directories were detected. No files were copied
                Examine the output log for details. 

 0×04   4       Some Mismatched files or directories were detected.
                Examine the output log. Housekeeping might be required.

 0×08   8       Some files or directories could not be copied
                (copy errors occurred and the retry limit was exceeded).
                Check these errors further.

 0×10  16       Serious error. Robocopy did not copy any files.
                Either a usage error or an error due to insufficient access privileges
                on the source or destination directories.

And a combination of them, ie: 0x03 = 0x02 + 0x01

See https://blogs.technet.microsoft.com/deploymentguys/2008/06/16/robocopy-exit-codes/ for a complete explanation.

answered Sep 11, 2017 at 10:14

Donald Mac Kenzie's user avatar

1

This is an issue to the path configured on the robocopy script. I have fixed this issue by adding the root directory or the main drive to both source and destination.

Note: Please make sure that you are an administrator to both Servers (source and destination)

Example:

Source: «\192.168.1.2e$my files»

Destination: «\192.168.1.5d$backup»

The root directory or the main drive that I have referred is the «e$» and «d$» as shown above. If this will not included in your script, you will be encountering the «0X3» error in the Scheduler and the scheduler will not works.

Note: This script is to synchronize/replicate the file from the source to destination.

Parameters used. /MIR /E /Z /R:5 /W:5

This is how the script looks as a whole:

robocopy "2.168.1.2e$my files" "2.168.1.5d$backup" /MIR /E /Z /R:5 /W:5

Hope this might help.

Thanks.

Xian

kot-da-vinci's user avatar

answered Jun 29, 2016 at 5:48

Christian Gomez's user avatar

  • #1

Доброго времени суток! Предыстория, был скачок электропитания и кондиционеры DAIKIN в серверной словили ошибку E0 и встали колом. Пока успели открыть серверную часть серверов отключилась из-за перегрева:

EVENT (10 Oct 16:11): Critical Temperature Threshold Exceeded
Integrated Management Log Severity: CRITICAL

Потом с охлаждением все наладили и стали обратно включать серверы. Вроде все поднялось, но есть один терминальный сервер на windows server 2019 который после включения перестал пускать как локально через vmware console так и через rdp.
Выдает ошибку

Код ошибки: 0x3
Расширенный код ошибки: 0x7

Если перезагрузить то все тоже самое. Подскажите решение

sddsdsdsds.png

Последнее редактирование: 13.10.2022

  • Remove From My Forums

 locked

Не выполняется задание по расписанию, а только вручную.

  • Вопрос

  • Добрый день.

    Имеется простое задание, которое запускает пакетный файл, который копирует файлы с одного жесткого диска на другой. При достижении времени запуска, задание не выполняется и в результате последнего запуска написано (0x1). Также задание не выполняется, если
    запускать его сейчас из планировщика. Сам пакетный файл лежит в папке Мои Документы админа. ОС — WS2008R2. Пробовал выполнять от имени админа и системы

    Если запускать этот bat-файл вручную, то задание выполняется.

    Что можете посоветовать, чтобы задание запускалось?

    • Изменено

      2 октября 2012 г. 20:43
      new details

Ответы

  • Место расположения не лучшее: надо создать отдельную папку для скрипта, что-то вроде c:scripts

    Пользователь запускающий скрипт должен иметь права на папку и право «log on as a batch job».


    Сазонов Илья http://isazonov.wordpress.com/

    • Изменено
      ILYA [ sie ] Sazonov
      3 октября 2012 г. 5:46
    • Предложено в качестве ответа
      ILYA [ sie ] Sazonov
      4 октября 2012 г. 5:57
    • Помечено в качестве ответа
      Rotar Maksim
      9 октября 2012 г. 19:43
  • Спасибо. Эти условия были выполнены, но вы наевли меня на мысль и я понял, что облажался в другом. У меня в командах пути были указаны относительные, и добавив рабочий каталог в задание оно запустилось успешно.

    • Помечено в качестве ответа
      Rotar Maksim
      9 октября 2012 г. 19:43

Планировщик заданий Windows в умелых руках может оказаться незаменимым инструментом автоматизации всевозможных задач, но, как и в случае со всеми программами, в его работе могут возникать ошибки. Три таких ошибки мы сегодня рассмотрим и попробуем исправить. Наблюдаются они, как правило, при запуске Планировщика. Первая ошибка дает о себе знать появлением окошка с сообщением «Выбранная задача (НАЗВАНИЕ) больше не существует».

Выбранная задача больше не существует

При второй ошибке мы получаем сообщение «Служба планировщика задач недоступна…».

Служба планировщика задач недоступна

Вы жмете «OK» и ошибка повторяется, жмете «OK» еще раз, Планировщик наконец запускается, но если его закрыть и попробовать запустить снова, программа встречает вас той же ошибкой. А еще не выполняются некоторые созданные задания.

Планировщик - ошибка

Третья ошибка выглядит более грозной. При запуске Планировщика появляется окошко «Внутренняя ошибка».

Внутренняя ошибка

А затем Планировщик запускается с сообщением «У вас нет прав на выполнение запрошенной операции».

У вас нет прав

При этом список задач в левой колонке недоступен, как недоступны и параметры создания новых задач в правой колонке. Наиболее вероятной причиной этих ошибок является повреждение одной или нескольких записей в подразделе системного реестра Tree. Устраняются они удалением поврежденных подкаталогов, но для этого нужно знать, какая именно задача вызывает сбой. С первой ошибкой все более или менее понятно — имя задания известно, значит известно, где искать корень проблемы.

Откройте командой regedit редактор реестра и разверните в нем следующую ветку:

HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindows NTCurrentVersionScheduleTaskCacheTree

В последнем каталоге найдите подраздел с именем вызывающего ошибку задания и удалите его, предварительно получив на него права, так как по умолчанию владельцем подразделов с именами заданий является Система (права затем нужно восстановить).

Regedit

Больше ошибка не станет вас тревожить, но и само задание из списка исчезнет. Скорее всего, вам придется создать его заново, но для начала попробуйте его импортировать.

В Windows все задания хранятся в папке %SystemRoot%system32Tasks в виде XML-файлов без расширений.

Задания в папке Tasks

Переместите файл с соответствующим названием на рабочий стол, а затем экспортируйте его через меню Планировщика, не забыв выбрать в окошке обзора «Все файлы». Если это не поможет, создайте задание заново или импортируйте его с другого компьютера с той же версией Windows.

Импорт

Выбор файла

Со второй ошибкой дела обстоят потруднее, так как имя вызывающего его задания неизвестно. Как вариант, можно поискать источник проблемы методом тыка, делая сначала резервную копию ключа, а затем удаляя из реестра одну запись за другой и восстанавливая предыдущую, для чего вам может понадобиться доступ к подразделу TaskCache. Аналогичным образом поступаем и с третьей ошибкой. А вообще, самым правильным делом был бы откат к предыдущей системной точке восстановления, ведь именно в теневых копиях Windows хранит все данные системного реестра.

Загрузка…

Понравилась статья? Поделить с друзьями:

Интересное по теме:

  • Планшет выдает ошибку при обновлении
  • Планета провайдер код ошибки 500
  • Планшет асус ошибка гугл плей
  • Планировщик заданий ошибка 0x1
  • Планировщик заданий выдает ошибку

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии