SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In my development I just recently noticed the attribute "doGUIDFixUp = TRUE|FALSE".

I tried to google more about this attribute but couldn't find anything useful. The MSDN site doesn't explain this either.

Can someone shed some light as to what this field would be used for?

share|improve this question
up vote 6 down vote accepted

Setting DoGuidFixUp="TRUE" for a <File> tag allows you to use tokens {$ListId: WebRelativeListUrl;} inside the deployed file. Those tokens will be replaced with the GUID of the list defined by the "WebRelativeListUrl" URL. Very useful when deploying webparts, pages with webparts, etc.


<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="" >
  <Module Name="Calendar" List="113" Url="_catalogs/wp">
    <File Path="Calendar\Calendar.webpart" Url="Calendar.webpart" Type="GhostableInLibrary" DoGUIDFixUp="TRUE" >
      <Property Name="Group" Value="Custom" />

This code will deploy "Calendar.webpart" file to the site webparts gallery.

Inside the Calendar.webpart, I have the following code:

  <webPart xmlns="">
      <type name="Microsoft.SharePoint.WebPartPages.XsltListViewWebPart, Microsoft.SharePoint, Version=, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
      <importErrorMessage>Cannot import this Web Part.</importErrorMessage>
        <property name="ListName" type="string">{$ListId: Lists/Calendar;}</property>

After it is provisioned, I can see the token is replaced with correct list GUID.

share|improve this answer
Very useful. Do you know the exhaustive list of working tokens? – Steve B Jul 1 '15 at 14:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.