#1 Global Leader in Data Resilience

Guest OS File Restore Fails on Self-Referencing Junction Points

KB ID: 4672
Product: Veeam Backup & Replication | 12 | 12.1 | 12.2
Veeam Agent for Microsoft Windows | 6.0 | 6.1 | 6.2
Published: 2024-10-11
Last Modified: 2024-10-11
mailbox
Get weekly article updates
By subscribing, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.

Cheers for trusting us with the spot in your mailbox!

Now you’re less likely to miss what’s been brewing in our knowledge base with this weekly digest

error icon

Oops! Something went wrong.

Please, try again later.

Challenge

Using Guest OS File Restore to restore a folder containing a junction point that redirects back to the initial folder fails with the error:

Win32 error:The name of the file cannot be resolved by the system.  Code: 1921

For example, attempting to restore a user's AppData folder the restore will fail with:

Failed to restore "\\?\C:\Users\backupsvc_RESTORED_20241010_135355\AppData\Local\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data\Application Data": Failed to start folder iteration. Win32 error:The name of the file cannot be resolved by the system.  Code: 1921

 

Cause

This occurs because Guest OS File Restore does not restore junction points; it attempts to restore the actual content of the junction point.

As documented in the Veeam Backup & Replication User Guide:

Veeam Backup & Replication restores junction points as folders with the content they refer to. If a junction point refers to the folder in which it lies or to the parent folder, restore will fail.

 

The Windows OS (desktop and server) includes such a junction point that will cause the error shown in the example. Within the folder C:\Users\<user>\AppData\Local is a junction point named 'Application Data', which is a junction back to C:\Users\<user>\AppData\Local, creating a self-referential loop.

Loop Example

Solution

To workaround this issue, when performing Guest OS Files Restore, you must carefully select which folders to restore, avoiding selecting the junction point(s) that create a loop.

More Information

The following two self-referential junction points are known to exist in Windows desktop and server operating systems:

  • [C:\ProgramData\Application Data] -> [C:\ProgramData]
  • [C:\Users\<user>\AppData\Local\Application Data] -> [C:\Users\<user>\AppData\Local]
To submit feedback regarding this article, please click this link: Send Article Feedback
To report a typo on this page, highlight the typo with your mouse and press CTRL + Enter.

Spelling error in text

This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

Oops! Something went wrong.

Please, try again later.

You have selected too large block!

Please try select less.

KB Feedback/Suggestion

This form is only for KB Feedback/Suggestions, if you need help with the software open a support case

By submitting, you are agreeing to have your personal information managed in accordance with the terms of Veeam's Privacy Notice.
This site is protected by hCaptcha and its Privacy Policy and Terms of Service apply except as noted in our Privacy Policy.
Verify your email to continue your product download
We've sent a verification code to:
  • Incorrect verification code. Please try again.
An email with a verification code was just sent to
Didn't receive the code? Click to resend in sec
Didn't receive the code? Click to resend
Thank you!

Thank you!

Your feedback has been received and will be reviewed.

error icon

Oops! Something went wrong.

Please, try again later.