Status, reason, and error codes

The Profile Container and the Office Container set three values that represent the state of Profile Container or Office Container:

  • Status
  • Reason
  • Error

Profile Container stores error values here: HKLM\Software\FSLogix\Profiles\Sessions<UserSID>

FSLogix Office Container stores error values in two places: HKLM\Software\Policies\FSLogix\ODFC\Sessions<UserSID> and HKCU\Software\FSLogix\ODFC\Sessions

If Status is zero, the system is in a working state and Reason will reflect the state. For example, if Status and Reason are both zero, then the FSLogix Container is attached and working for this user.

Status Codes

Code Description Explanation
100 STATUS_WAITING_FOR_PROFILE_DIR_SET Waiting for the Windows Profile Service to determine the user's profile folder
200 STATUS_IN_PROGRESS Setup in progress
300 STATUS_ALREADY_ATTACHED The profile is already attached (concurrent / multiple sessions only)

Reason Codes

Code Description Explanation
0 REASON_PROFILE_ATTACHED The container is attached
1 REASON_NOT_IN_WHITE_LIST User is not a member of the include group
2 REASON_IN_BLACK_LIST User is a member of the exclude group
3 REASON_LOCAL_PROFILE_EXISTS A local profile for this user exists on this system
4 REASON_SHORT_SID Not an appropriate user type
5 REASON_UNSET Reason initialized to empty state
6 REASON_COMPONENT_NOT_ENABLED Component is not enabled in product key (legacy)
7 REASON_WINDOWS_TEMP_PROFILE Profile is a Windows temporary profile
8 REASON_NOT_WVD_SESSION Session is not an Azure Virtual Desktop Session

Error Codes

Usually when an FSLogix component is not working, Error will be set. When it is set, it corresponds to a standard Windows Error Code.

Code Description Explanation
1 ERROR Cannot load user's profile
2 ERROR_VIRT_DLL Virtual disk API is not available on this platform
3 ERROR_GET_USER Cannot retrieve user's security identifier
4 ERROR_HANDLE_ODFC There was an error setting up the Office 365 Container
5 ERROR_SECURITY Cannot retrieve security information
6 ERROR_VHD_PATH Cannot retrieve virtual disk location
7 ERROR_CREATE_DIR Cannot create destination folders
8 ERROR_IMPERSONATION Cannot impersonate user
9 ERROR_CREATE_VHD Cannot create virtual disk
10 ERROR_CLOSE_HANDLE Cannot release virtual disk
11 ERROR_OPEN_VHD Cannot open virtual disk
12 ERROR_ATTACH_VHD Cannot attach to virtual disk
13 ERROR_GET_PHYSICAL_PATH Cannot retrieve virtual disk's physical information
14 ERROR_OPEN_DEVICE Cannot open virtual disk's volume
15 ERROR_INIT_DISK Cannot initialize virtual disk
16 ERROR_GET_VOL_GUID Cannot retrieve virtual disk identifier
17 ERROR_FORMAT_VOL Error while formatting virtual disk
18 ERROR_GET_PROFILE_DIR Cannot retrieve profile directory
19 ERROR_SET_MOUNT_POINT Cannot setup directory mount point
20 ERROR_REG_IMPORT Cannot import registry information
21 ERROR_CHK_GRP_MEMBERSHIP Cannot retrieve user's group
22 ERROR_HANDLE_PROFILE Error handling profile
23 ERROR_PROFILE_SUBFOLDER_REDIRECTION Cannot setup folder redirections
24 ERROR_CREATE_EVENT Unable to create event
25 ERROR_PER_SESSION_VHD Maximum sessions reached
26 ERROR_DETACH_VHD Cannot detach virtual disk at the provided location
27 ERROR_FIND_VHD Cannot find virtual disk at the provided location
28 ERROR_NO_SESSION_CONFIG No user session config found