Error when we upload a Visio document to Team foundation server: ' ', hexadecimal value 0x11, is an invalid character. Line xxx, position xx.

In the recent days I came across a customer who had some old .VSD files (made of version 5 or older) when we try to upload this to document library in SharePoint using visual studio team explorer we have received the following error, and the documents folder under the project is red check marked, whereas the file opens good in SharePoint portal.

 

---------------------------

Microsoft Visual Studio

---------------------------

' ', hexadecimal value 0x11, is an invalid character. Line 238, position 30.

---------------------------

OK

---------------------------

 

CAUSE:

 

Unknown corruption in the old files

 

RESOLUTION:

I have suggested the following steps and it resolved the issue:

 

Round tripping (.VSD -> .VDX -> .VSD)

Saved the drawing as .vdx (XML equivalent) format in Visio 2010, close and re-open the .vdx and save the drawing as .vsd format. Now when we upload this it works.

 

If there are too many files impacted and need to be round-tripped then explore writing a macro to perform batch processing of round-tripping programmatically.

Content Developed by: VIMALANATHAN SIGAMANI THIAGARAJ

Reviewed by : lakhminder Singh