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” />

Avatar for Pieter Veenstra

By Pieter Veenstra

Business Applications Microsoft MVP working as a Principal Architect at HybrIT Services Ltd. You can contact me using contact@sharepains.com

2 thoughts on “XSLTListViewWebPart returns: WebPartPageUserException”
    1. 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.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Discover more from SharePains by Microsoft MVP Pieter Veenstra

Subscribe now to keep reading and get access to the full archive.

Continue Reading

%d bloggers like this: