Error in Google SDTT: "All values provided for url must point to the same page."

google markup
the review field is recommended. please provide a value if available.
google validator
structured data testing tool
a value for the itemreviewed field is required.
google test tool
a value for the name field is required.
google data tool

I am trying to create some JSON-LD structured data for a list of products on an ecom-site but I am getting an error when using Google's Structured Data Testing Tool.

So far, I have this:

 {
 "@context": "http://schema.org",
 "@type": "OfferCatalog",
 "name": "Fresh Fruit",
 "itemListElement": [
  {
   "@type": "ListItem",
   "position": 1,
   "item":
   {
        "@type": "Offer",
        "price": "1.20",
        "priceCurrency": "GBP",
        "availability": "http://schema.org/InStock",
        "url": "http://example.com/green-apples/",
        "itemOffered": {
            "@type": "Product",
            "name": "Green Apples",
            "url": "http://example.com/green-apples/"
            }
        }        
   }  
 ]
}

Mostly it validates, but the Google tool throws the following error:

All values provided for url must point to the same page.

The error highlights line 11 ("@type": "Offer",).

The URL fields seem to be clashing with the @context declaration, because if I change the context to either a non-url string or http://example.com, it validates (although, this obviously causes its own issues). (This has been shown to be a red-herring, in the comments below)

What am I missing here? It feels like something blindingly obvious.

It is surely an error in the validator. I checked with the examples google provided: https://developers.google.com/search/docs/guides/mark-up-listings . If you click on the 2nd example you will see that it has the same error.

The error is shown even if you use 1 item:

{
  "@context": "http://schema.org",
  "@type": "ItemList",
  "itemListElement": [
    {
      "@type": "ListItem",
      "position": 1,
      "item": {
        "@type": "Recipe",
        "url": "http://example.com/desserts/pies/#apple-pie",
        "name": "Apple Pie",
        "image": "https://example.com/300px-Apple_pie.jpg",
        "author": {
          "@type": "Person",
          "name": "Carol Smith"
        },
        "datePublished": "2009-11-05"
      }
    }
  ]
}

I am getting the schema error even after following , No, no news yet, I'd say the docs & @Saumya2395 experience show it is just a nag in the tool. i.e. an issue with the SDTT, not the docs or how it  After some days my structured data is shown on the Search Console without errors, while SDTT shows the errors in the title. – Adam Wallner Nov 1 '16 at 22:55 Though you are correct that the validated examples in Google are incorrect.

Structured Data Testing Tool Error Guide, The Google Structured Data Testing Tool (SDTT) is a free tool created by Google to help you validate and test the syntactical correctness and  The Google Structured Data Testing Tool (SDTT) is a free tool created by Google to help you validate and test the syntactical correctness and alignment to Google recommendations of your schema markup. It is a fairly easy web development tool to use, so don’t be scared.

Now it's 2018.

Answer by Yash Pal above is close, but not quite right.

This is not an error from Google validator tools.

The error is valid and you need to fix it.

You use the "Single Page" approach ( there are two approaches "Summary page" and "Single page" )

For "Single Page" approach, you need each URL to be exactly same, and each of them should have "an anchor".

The Google developer doc clearly mentioned it.

I wrote the explanation details there

If your page contains some links to another page, then you should use "Summary Page" approach and it had different data structure ( much simpler one, I think )

Error in Google SDTT: "A value for the valueName field is required , You can either provide a string value for query-input , in which case you have to specify the part of the target value that represents the  NEW TEST. settings. View Search Gallery; Help; Send Feedback; play_arrow

Google Structured Data Testing Tool giving error: "Missing '}' or , I write some code of JSON-LD, but Google's SDTT is showing an error. Following is the code. { "@context": "https://  Search the world's information, including webpages, images, videos and more. Google has many special features to help you find exactly what you're looking for.

No, it is NOT an error in Google's SDTT,

I have helped many people fix their structured data, including dynamic arrays. Read the instructions. Google clearly states "All values for the URL must point to the same page". Think about it, Google is trying to tell you something.

That something means this "Hey you are using a different item list from the example we provided, your item list has more than two item".

The solution:

Use anchors! Voila!

Please use this example snippet and you cannot go wrong. And another tip; use the Fetch Url option from SDTT:

<script type="application/ld+json">
/*structerd data markup compiled by http://www.iwanross.co.za */
{
"@context": "http://schema.org",  
"@type": "ItemList",
"itemListElement": [
{
    "@type": "ListItem",
    "position": 1,
    "item": {
    "@type": "Recipe",
    "url": "https://www.smokingchimney.com/#beetroot",
    "name": "Beetroot Side Salad for the braai",
    "image": "http://www.smokingchimney.com/recipe-pages/images/1x1/Beetroot-Salad- 
  for-the-Braai-800x451.jpg",
    "author": {
    "@type": "Person",
    "name": "Marna Ross"
   },
  "datePublished": "2018-10-05"
  }
},
{
  "@type": "ListItem",
  "position": 2,
  "item": {
    "@type": "Recipe",
    "url": "https://www.smokingchimney.com/#carrot",
    "name": "Carrot Cake",
    "image": "http://www.smokingchimney.com/recipe-pages/images/16x9/carrot-cake- 
 recipe-picture-1024x576.jpg",
    "author": {
    "@type": "Person",
    "name": "Marna Ross"
   },
  "datePublished": "2018-10-05"
 }
},
{
  "@type": "ListItem",
  "position": 3,
  "item": {
    "@type" : "Recipe",
    "url":"https://www.smokingchimney.com/#overnight",
    "name": "Overnight Steak Marinade",
    "image": "http://www.smokingchimney.com/recipe-pages/images/1x1/Overnight-steak- 
 marinade-700x465.png",
    "author": {
    "@type": "Person",
    "name": "Marna Ross"
   },
   "datePublished": "2009-10-05"
   }
   }
 ]
}
</script>

Structured Data Testing Tool, Google apps. Main menu. Structured Data Testing Tool. Structured Data More from Google. public. NEW TEST. settings. View Search Gallery; Help; Send  I'm new with Schema.org markup, so I've actually come up with the following codes for my real estate markup, and Google testing keep saying I shouldn't use offer for priceSpecification.

How to Fix Product Markup Errors to Avoid Google Manual Action, The Structured Data Testing Tool is a good indicator, but they can be just “SDTT errors” without any negative consequence. GSC's errors tend to  Google takes abuse of its services very seriously. We're committed to dealing with such abuse according to the laws in your country of residence. When you submit a report, we'll investigate it and take the appropriate action.

Structured Data Testing & Validation In The SEO Spider Tool , How to bulk test & validate structured data against Schema.org & Google's search It shows validation errors like the SDTT, although to add to the confusion the  The Google Structured Data Testing Tool (SDTT) tool was created as a support to structured data used for Google search features. It is not necessarily an official Schema.org validation tool. Use multiple tools when revising your structured data implementation rather than depending on one a 100%.

Build, Test, and Release Your Structured Data, Take a look at Common structured data errors below. The problem can be caused by either spammy content or spammy markup usage. However, the issue may  [This thread is closed.] Hi I originally had 4 errors on each of my blog posts on the following A value for image field is required (had 3 of these on…

Comments
  • That it gets "fixed" by changing the @context is not surprising: You are using a different vocabulary then (not Schema.org anymore). Google’s SDTT is only meant for Schema.org.
  • @unor can you explain what you mean? Offer / OfferCatalog / ListItem and Product are all entities recognized by schema.org
  • @MatthewEvans: It’s about what you wrote ("The URL fields seem to be clashing with the @context declaration […]") -- I just wanted to point out that the problem is not related to the context, or in other words: if you change the context, the SDTT stops reporting any vocabulary use errors (because it’s no longer Schema.org as soon as you change the context).
  • Ah, so the context-clash is a red-herring; that makes sense now you've spelled it out. Thanks. Any ideas about the URL error?
  • Even weirder, the tool generates the same error even when artificially making the URL properties identical, which suggests a validation issue
  • After some days my structured data is shown on the Search Console without errors, while SDTT shows the errors in the title.
  • Your answer is correct. Not necessarily anything to do with AMP, but there are TWO different types of lists as you mentioned. Need to make sure you're using the right one.
  • I meant, that 2 different lists are connected to the necessity of Google in structured data in AMP. Once new ones were added there - problem described here occurred ;)
  • perfect clarification