Exception when loading diagram: Error in element Shapes in \VisioDocument\Pages\Page[0]. loadShapes

Hi

The attached vsdx (saved from Office 2016) throws the following exception when opening:

Exception in thread “main” com.aspose.diagram.DiagramException: Error in element Shapes in \VisioDocument\Pages\Page[0]. loadShapes
at com.aspose.diagram.gg.a(Unknown Source)
at com.aspose.diagram.zz.c(Unknown Source)
at com.aspose.diagram.zz.load(Unknown Source)
at com.aspose.diagram.ew.a(Unknown Source)
at com.aspose.diagram.ew.load(Unknown Source)
at com.aspose.diagram.jz.a(Unknown Source)
at com.aspose.diagram.jz.a(Unknown Source)
at com.aspose.diagram.Diagram.(Unknown Source)
at com.cognidox.cognidox.vsdx2svg.VSDX2SVG.main(VSDX2SVG.java:49)

The diagram is being opened with:

Diagram vsd = new Diagram(file);

The code used can open other VSDX files correctly.

Aspose Diagram version: 6.5.0/Java

Regards
Vittal

Hi Vittal,


Thank you for contacting support. We managed to replicate the said error message at our end. We have logged this error under ticket id DIAGRAMJAVA-50326 in our bug tracking system. Your post has also been linked this ticket. We’ll let you know once a significant progress has been made in this regard. We’re sorry for the inconvenience caused.

Hi Vittal,


Thank you for being patient. We have a good news for you that the ticket id DIAGRAMJAVA-50326 has now been resolved. If there is no issue in the QA phase, then this fix will be incorporated in the next version 6.6.0 of Aspose.Diagram for Java API. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as DIAGRAMJAVA-50326) have been fixed in Aspose.Diagram for Java 6.6.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

HI! I am having an issue as well loading a file into a Diagram…

An unhandled exception of type ‘Aspose.Diagram.DiagramException’ occurred in Aspose.Diagram.dll

Additional information: Error in element VisioDocument in \VisioDocument. Error in element Page in \VisioDocument\Pages\Page[0]. Error in element PageSheet in \VisioDocument\Pages\Page[0]\PageSheet[00000000-0000-0000-0000-000000000000]. Exception has been thrown by the target of an invocation.

Aspose.Diagram.DiagramException was unhandled
HResult=-2146233088
Message=Error in element VisioDocument in \VisioDocument. Error in element Page in \VisioDocument\Pages\Page[0]. Error in element PageSheet in \VisioDocument\Pages\Page[0]\PageSheet[00000000-0000-0000-0000-000000000000]. Exception has been thrown by the target of an invocation.
Source=Aspose.Diagram
StackTrace:
at .Load()
at . (Object )
at . (MethodBase , Boolean )
at . ( )
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . (Object[] , Type[] , Type[] , Object[] )
at . (Int32 , Type[] , Type[] , Boolean )
at . ( )
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . ()
at . ()
at . (Object )
at . ()
at . (Object , UInt32 )
at . ()
at . (Object[] , Type[] , Type[] , Object[] )
at . (String )
at Aspose.Diagram.Diagram…ctor(String filename)
at AsposeDiagramDemo.Program.Main(String[] args) in C:\Users\STuvell155891\Source\Repos\asposediagraml1_test\AsposeDiagramDemo\Program.cs:line 42
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Any ideas what’s going on here?

@susanktuvell

Could you please share your sample Diagram file with us. We will test the scenario in our environment and address it accordingly.

Hello!

The drawing I am working with is proprietary. Please send an email address I can use to contact you as I need you to sign an nda before sharing over a more secure method of communication.

Also, I converted it to a .VDX and that seems to work. However i do need it to work for .VSD files.

@susanktuvell

We do not sign any NDA separately as relative clauses are already included in the EULA you accept while API subscription. Furthermore, the files are only used for testing purposes and are removed from the system once testing is complete. We do not disclose your files with anyone.

You may please send your file in a private message. You can send a private message by clicking over username and press Blue ‘Message’ button.