Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8627655
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T08:20:07+00:00 2026-06-12T08:20:07+00:00

Sitecore reference talk about some attributes you can use in Query, including @@templatename, @@id

  • 0

Sitecore reference talk about some attributes you can use in Query, including @@templatename, @@id and @@parentid etc.

parentid doesn’t seem to work – /sitecore/content//*[@@parentid!=''] never returns any result. While /sitecore/content//*[@@templatename!=''] works fine. Sitecore version is 6.5 and 6.6.

Has anyone been able to query with @@parentid? ( Perhaps it uses Ancestor/Descendant table and I’m missing data?? – just a guess )

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T08:20:09+00:00Added an answer on June 12, 2026 at 8:20 am

    It is attempting to parse the value as a GUID and failing. Instead, try an empty GUID like so:

    /sitecore/content//*[@@parentid!='{00000000-0000-0000-0000-000000000000}']
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have to use Sitecore 6.5 with MVC framework and as per the reference
Query 1: /sitecore/content/FR/Cabinet/New Category/Attributes//*[@@TemplateID = '{95793C69-3E37-4CEB-9AF4-FD88276D85AA}'] Query 2: /sitecore/content/FR/Cabinet/New Category/Child Category 1/Attributes//*[@@TemplateID = '{95793C69-3E37-4CEB-9AF4-FD88276D85AA}']
Does all sitecore fast query start at the Sitecore root, or can I get
I have a Sitecore/ASP.NET projects that I'm developing. Today at some point I inadvertently
Sitecore query is based on XPATH, but looks like it does not support count()
Does Sitecore have some sort of hardcoding regarding the website default site? i changed
The Sitecore Calendar Module doesn't have the features that we want: recurring events, multiple
I'm using sitecore 5.3 and need to be able to remove the extra query
I'm using Sitecore and have a multilist field I'd like to use Lucene to
I have a Sitecore content structure where any single item can have a number

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.