An error has occurred. : CreateFromXaml

Posted: 21st September 2010 in SharePoint, Visio, XAML

Problem: When adding Visio diagrams, saved as HTML and published as XAML,  to SharePoint you may receive the error: An error has occurred. : CreateFromXaml shown in the screen dump below.

 An error has occurred. : CreateFromXaml

On investigation, it appears that this error occurs when the you mouse over any box containing an ampersand. This, in turn, throws an exception when it tries to load the alternative text/title. 

Solution: To resolve this issue, find the offending ampersand by searching for the Content of the culprit box (remember the “&” will be an “&”) in the data.xml file, which is created as part of the Visio HTML files.  After finding the rogue &

Once found replace the &amp with <![CDATA[&amp;]]>

Advertisements
Comments
  1. Naren says:

    wow, this saved me much time, thanks!

    • Andrey says:

      why do you save the diagram as HTML? As I know we should save it with VDW extension, SharePoint understand only such file format.
      I have the same problem with my Visio Diagram and it’s not clear – where should I search &amp and what should I export to SharePoint?

      Thanks!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s