Today I added a XSLTListViewWebPart to my Site Definition and I receivede the following error:
WebPartPageUserException: Guid should contain 32 digits with 4 dashes (xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx).
My ListId in the XML looked like this:
<property name=”ListId” type=”System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ />
Adding null=”true” resolved this issue:
<property name=”ListId” type=”System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089″ null=”true” />
Try using ListName instead:
http://sympmarc.com/2008/12/16/replacing-listids-with-listnames-in-data-view-web-parts/
thank you for your comment.
That solution does help if you’re looking at the same named list on a different site, however on my case I was running on the same site. I simple exported and imported my web part.