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

I would like to use CQWP to query from one Specific list and that is something we can achieve using following Property and like this

" replace with </Lists> ]]>"

This is good but if i export this from dev environment to other environment then this is not going to work as it list has different guid.

how to get around this please advise

Thanks Ronak

share|improve this question
Your xml seems to have gotten eaten by Html goblins. Can you post it and surround it with the code designator - back quotes – Dave Wise Mar 1 '12 at 20:08

Remove the GUID based reference from the exported .webpart file Use the ListUrl property and use a server relative Url to the list.

<property name="ListGuid" type="string" />
<property name="ListUrl" type="string">~sitecollection/Pages</property>
share|improve this answer
Thanks Gavin where do i need to do that in ListOverride Property ? – Ronak Mar 2 '12 at 14:00
I don't have a 2007 environment handy, but when you export the CQWP there is should be properties for ListId and ListUrl, just use those. – GavinB Mar 2 '12 at 23:42

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.