Hi,
I am new to Alteryx and encountering the unhandled exception errors every time trying to import a workflow.
The workflow appears for a few seconds then the error pops up. I am not able to see the workflow due to the error.
The version I used is Alteryx Designer 2024.1,
Any workaround or solutions would be appreciated. Thanks!
Hi All, thanks for your help. To supplement a bit on the error:
Below is a snapshot of the error
And the error log shown as below:
Alteryx Designer x64 - 2024.1.1.17
Type: System.NullReferenceException
Message: Object reference not set to an instance of an object.
Source: AlteryxGuiToolkit
OS Version: Microsoft Windows NT 10.0.17763.0
OS Is x64 Capable: True
Selected Plugin: None
Processor: Intel(R) Xeon(R) Platinum 8171M CPU @ 2.60GHz
Private Memory: 483598336
--------------------------------------------
at AlteryxGuiToolkit.Utility.ArrowHelper.GetAnchorCanvasPos(DiagramNode node, AnchorPoint ap)
at AlteryxGuiToolkit.Plugins.PluginHelper.DrawWirelessSignal(DiagramNode node, IGraphics graphics, LayoutType layoutType, Int32 wireless, Boolean bInput, Int32 connectionIndex, E_ConnectionType connectionType, Boolean swapHorzVert)
at AlteryxGuiToolkit.Plugins.PluginHelper.DrawWirelessAnchors(DiagramNode node, IGraphics graphics, LayoutType layoutType, DiagramLinkCollection incomingLinks, DiagramLinkCollection outgoingLinks, Connection[] connections, Boolean input)
at AlteryxGuiToolkit.Plugins.PluginHelper.DrawWirelessAnchors(DiagramNode node, IGraphics graphics, LayoutType layoutType, DiagramLinkCollection incomingLinks, DiagramLinkCollection outgoingLinks)
at AlteryxGuiToolkit.Document.AlteryxShapeNode.Draw(IGraphics graphics, RenderOptions options)
at MindFusion.Diagramming.Diagram.DrawItem(IGraphics graphics, DiagramItem item, Boolean relatedItems)
at MindFusion.Diagramming.ContainerNode.Draw(IGraphics graphics, RenderOptions options)
at AlteryxGuiToolkit.Document.AlteryxContainerNode.Draw(IGraphics graphics, RenderOptions options)
at MindFusion.Diagramming.Diagram.DrawItem(IGraphics graphics, DiagramItem item, Boolean relatedItems)
at MindFusion.Diagramming.ContainerNode.Draw(IGraphics graphics, RenderOptions options)
at AlteryxGuiToolkit.Document.AlteryxContainerNode.Draw(IGraphics graphics, RenderOptions options)
at MindFusion.Diagramming.Diagram.DrawItem(IGraphics graphics, DiagramItem item, Boolean relatedItems)
at MindFusion.Diagramming.Diagram.DrawItems(IGraphics graphics, RectangleF clipRect, Boolean modfBackBuf)
at MindFusion.Diagramming.Diagram.Draw(IGraphics graphics, RenderOptions options, RectangleF clipRect, Boolean noModifiedItems)
at MindFusion.Diagramming.WinForms.DiagramView.DrawDiagram(IGraphics graphics, RectangleF clip, Boolean noModifiedItems)
at MindFusion.Diagramming.WinForms.DiagramView.OnPaint(PaintEventArgs pe)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)
at System.Windows.Forms.Control.WmPaint(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
@Joanna33 without a screenshot, it is hard to know. However, I know turning off AMP engine can help with this error sometimes depending on what is happening within the workflow. Uncheck the box in the screenshot below and that may help.
Bacon
Hi Joanna33
To identify the issue you need to check the recent error log located at : %ProgramData%\Alteryx\ErrorLogs
Below is an example of the error
Alteryx Designer x64 - 2019.4.8.22007
Type: System.IO.PathTooLongException
Message: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Source: mscorlib
OS Version: Microsoft Windows NT 6.2.9200.0
OS Is x64 Capable: True
Selected Plugin: None
Processor: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
Private Memory: 318885888
--------------------------------------------
at System.IO.Path.LegacyNormalizePath(String path, Boolean fullCheck, Int32 maxPathLength, Boolean expandShortPaths)
at System.IO.Path.InternalGetDirectoryName(String path)
at AlteryxGuiToolkit.Staging.StagingFolderCleanup.IsStagedPackageFile(String fileName)
at AlteryxGuiToolkit.MainWindow.<>c__DisplayClass215_0.b__0()
at AlteryxGuiToolkit.MainWindow.OpenOrImportFile(String fileName, Boolean bAddToMRU, Boolean bShowError)
at AlteryxGuiToolkit.MainWindow.OpenInstance(String path)
at AlteryxGuiToolkit.MainWindow.WndProc(Message& m)
The error logs shows the following message: "The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters."
The message indicates that the path or filename or both are too long.
1. Renaming the file or changing/renaming the path solves the issue.
2. Another solution might be to move the workflow to a location with a shorter path.
Hi Joanna33
Try backing up and then removing everything inside the C:\Users{username}\AppData\Roaming\Alteryx\Engine folder except for the GalleryAlias.xml, UserAlias.xml, and UserConnections.xml files (so remove all the version folders). This will force Alteryx to generate a new user settings file.
*Note: this removes all user settings, favorite tools, window positions, default colors, proxy settings, etc.
If the above solution does not work, you can install a different version of Alteryx Designer, or upgrade your existing version to the latest one. This usually resolves the issue.
Visit this link if you need help with downloading and installing Desktop products.