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

  • 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
    Commented Mar 1, 2012 at 20:08

1 Answer 1


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>
  • Thanks Gavin where do i need to do that in ListOverride Property ?
    – Ronak
    Commented Mar 2, 2012 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
    Commented Mar 2, 2012 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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