In short
Ahrefs flags "Structured data has schema.org validation error" when markup uses types or properties that don't exist in schema.org, puts properties on the wrong type, or contains broken JSON. Search engines and AI systems may ignore invalid parts. Test the page in the Schema Markup Validator, fix each error in the template or plugin that outputs it, and retest.
This issue checks your markup against the schema.org vocabulary itself, not against Google's rich result rules.
Common errors
| Error | Example | Fix |
|---|---|---|
| Misspelled type or property | "@type": "Organisation" |
Organization |
| Property on the wrong type | price directly on Product |
Put it inside an Offer |
| Broken JSON | Trailing comma, unescaped quote | Validate the JSON; generate it with code |
| Wrong value type | author as a plain URL |
Use a Person object with name and url |
| Invented properties | "rating": 5 |
Use aggregateRating with ratingValue |
Schema.org errors versus Google errors
| Validator | Checks |
|---|---|
| Schema Markup Validator | Is this valid schema.org? |
| Google Rich Results Test | Does it qualify for a Google rich result? |
Markup can pass one and fail the other, so test with both.
Prevent it
Generate JSON-LD with code (for example JSON.stringify in JavaScript) instead of writing it by hand, and keep one shared template per page type. In WordPress, avoid running two schema plugins at once.
This guide isn't affiliated with or endorsed by Ahrefs.
Related issues
Sources and references
Schema.org, Schema Markup Validator
Schema.org, Full schema hierarchy
Google Search Central, Intro to how structured data markup works

About the author
Nazmul Nikhil
Head of SEO & Assistant Manager, Digital Marketing at Notionhive
SEO and AI search consultant in Dhaka, Bangladesh, helping small and mid-size businesses in the USA, UK, Australia and Canada.



