Environment Details
An "Unhandled Exception" thrown when starting Designer, appears when the user clicks on the splash screen. Looking at C:\ProgramData\Alteryx\ErrorLogs reveals the following error type: System.IO.DirectoryNotFoundException Message: Could not find a part of the path 'F:\.....'
An Unhandled Exception occurred.
A previous action may not have completed successfully.
Click OK to send the development team the error log so that we can fix this error in a subsequent release.
The most recent error log in C:\ProgramData\Alteryx\ErrorLogs shows the following text [version numbers, processor, memory info, and specific path will be different from that shown below]:
Alteryx Designer x64 - 2020.1.2.24185
Type: System.IO.DirectoryNotFoundException
Message: Could not find a part of the path 'F:\Alteryx Staging Folder\Engine_5644_5c69c53e7d9846c89c178c8235ef0e5f_'.
Source: mscorlib
OS Version: Microsoft Windows NT 6.2.9200.0
OS Is x64 Capable: True
Processor: Intel(R) Core(TM) i7-6700 CPU @ 3.40GHz
Private Memory: 239452160
--------------------------------------------
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.Directory.InternalCreateDirectory(String fullPath, String path, Object dirSecurityObj, Boolean checkHost)
at System.IO.Directory.InternalCreateDirectoryHelper(String path, Boolean checkHost)
at SrcUtils_DotNet.JupyterTempFolder..ctor(String tempPath)
at AlteryxGuiToolkit.MainWindow..ctor(String[] args)
at AlteryxGuiToolkit.Main.StartApp(String[] args).
Cause
At some point in the past, the Default Temporary Directory was changed from the default location to a detachable drive. When the drive is no longer available, Alteryx Designer can no longer start up.
Resolution
Solution A (if there is an Alteryx System Settings icon on your desktop)
- If the software is an Admin version of Designer or Server, you can change the System Settings to make the sure all the paths point to an accessible location.
- Double-click on the Alteryx System Settings icon on the desktop.
- Click Next to get to Setup Type page. Make sure that the correct radio button is selected. If only Designer is licensed, that must be Designer Only. If Desktop Automation or Server are licensed on the machine, then the corresponding radio buttons are probably already set, so you don't have to make any changes to this screen.
- Click Next to view the Global Workspace page.
Make sure that the path specified is accessible (not pointing to a detached drive). Click Next. - Verify the paths on the System Settings configuration pages that correspond to Server functions as applicable.
- Click Next until you get to the Controller General Configuration page if there is one. (There won't be a page with that name if only Designer is licensed.)
Make sure that the path specified is accessible (not pointing to a detached drive). Click Next. - Click Next until you get to the Worker General Configuration page if there is one. (There won't be a page with that name if only Designer is licensed.)
Make sure that the paths specified are accessible (and are not pointing to a detached drive). Click Next. - Click Next until you get to the Gallery General Configuration page if there is one. (There won't be a page with that name if only Designer or Designer with Desktop Automation is licensed.)
Make sure that the path specified is accessible (and are not pointing to a detached drive). Click Next.
- Click Next until you get to the Engine General Configuration page. Make sure that the paths specified are accessible (and are not pointing to a detached drive). Uncheck the box beside Allow users to override these settings.
Click Next until you get to the page to Finalize Your Configuration. Then click Finish, and then click Done.
- Start Designer.
- If you found no paths that point to a detached drive in the preceding steps, verify the User Settings (Options > User Settings > Edit User Settings, then Details tab, and Default Temporary Directory) point to an accessible location such as the more typical folder, C:\ProgramData\Alteryx\Engine, then click on Save.
The Override System settings checkbox will not be accessible at this time because you disallowed that in a prior step. After you've been able to start Designer, you can go back into the system settings to Allow users to override the settings.
Solution B (if there is no System Settings Icon on your desktop)
- If the software is a Non-admin version of Designer or you don't have a way to access the System Settings from outside Designer, you can change the paths in the User Settings by editing the UserSettings.xml file.
- Open File Explorer and navigate to the Engine folder in your user directory by typing or pasting %AppData%\Alteryx\Engine into the location box.
- From there, open the folder corresponding to the currently-installed version of Designer.
- Edit the file UserSettings.xml using a text editor such as Notepad++ or Notepad.
- Scroll down about halfway and find the settings that specify paths. (You can use CTRL-f and search for a colon.) Edit the path(s) to point to accessible location(s).
- Save the edited file.
- Start Designer.