How can you detect markup errors in structured data on a webpage?

Publish date:Nov 25, 2026
Author:Easy Yingbao (Eyingbao)
Page views:
  • How can you detect markup errors in structured data on a webpage?
How do you test structured data? Start with product pages, article pages, and multilingual pages, and use Google’s Rich Results Test and the Schema Markup Validator to identify markup issues. This article explains common causes, including syntax errors, missing fields, and inconsistencies between prices and inventory, and introduces methods for checking crawl status and auditing pages in bulk. These methods help reduce repeated edits and improve your website’s potential to appear in search results.
Inquire now : 4006552477

A product or article page is live, but the expected information, such as price or ratings, does not appear in search results. The issue may lie in the structured data markup, or it may be related to the page content, crawl status, or the search engine’s display decisions. When troubleshooting, first use a testing tool to confirm that the markup can be detected, then check the fields and page content, and finally verify that the search engine can access the updated page.

Structured data testing should not focus only on whether there are errors: correct syntax does not necessarily meet the requirements for a particular rich result, and passing a tool’s test does not guarantee that special displays will appear in search results. Distinguishing between these outcomes can help you avoid repeatedly changing code that is not actually causing a problem.

First, identify the page and markup type to test

Start with the specific URL where the issue occurs. Record the page type, the information you expect to appear, and any recent changes. For example, check product markup on a product detail page and article-related markup on an article page. For multilingual sites, test the language version you want indexed, rather than testing only the homepage or default-language page.

Open the webpage source code and search for “application/ld+json”, “itemscope”, or “typeof” to look for JSON-LD, Microdata, or RDFa markup. Some markup is generated dynamically by scripts and may not appear in the raw source code; also check the rendered page in a browser and the results from testing tools. If the page has no relevant markup at all, first check the website template or data output process. There is no need to rush into fixing individual fields.

Use tools to pinpoint errors, rather than just checking whether the test passes

Google’s Rich Results Test is useful for checking whether a page is eligible for specific rich results supported by Google. Schema Markup Validator can be used to check the structure of markup that uses Schema.org vocabulary. The two tools focus on different things: if the former does not show a particular type, that does not necessarily mean the page has no structured data at all.

  1. Enter the actual page URL. Test the published URL whenever possible, so the tool can fetch the page. If the page is not live yet, you can test a code snippet, but a passing snippet test does not prove that the live page can be crawled correctly.
  2. Check the detected items. Confirm that the types, number of items, and main fields match the purpose of the page. If a product page contains multiple conflicting product items, expand each one and check its source.
  3. Review the specific issues and field paths. Note the item, property, and message associated with each error; do not just save the result shown at the top of the page. If the tool identifies the code location, use it to find the corresponding output in the source code.
  4. Retest the URL after making changes. Confirm that the live page is returning the updated code, then check that the original error is gone and no other issues have been introduced.

How can you detect markup errors in structured data on a webpage?

Tools typically distinguish between errors and warnings. Missing a required property for a rich result may make an item ineligible for that display; missing a recommended property does not necessarily affect eligibility, but may limit the information that can be shown. Check the current documentation and tool messages for the type you are testing, rather than treating every warning as a critical error.

How to fix common errors

Syntax cannot be parsed

Extra commas or missing quotation marks or brackets in JSON-LD can cause parsing to fail. When product names and descriptions are generated dynamically, characters such as quotation marks and line breaks must also be escaped correctly. Fix the earliest syntax error first, then test again, as a single incorrect character can trigger a series of follow-up messages. Do not delete the entire block of markup just to clear the error.

Type, property, or property value does not match

Check that @type matches the actual page content and that each property is placed at the correct object level. For example, price information usually belongs in the corresponding offer object; do not move fields arbitrarily just to clear a message. Dates, URLs, and numeric values should also be provided according to the relevant property and feature requirements. Check the price amount and currency code separately, and avoid including a currency symbol in the numeric value.

If a required field is missing, first confirm that the website has genuine data for it and that the data is displayed on the page, then add it to the markup. If there is no rating, stock status, or valid price, do not enter an estimated value or a fixed placeholder. Even if this stops the tool from reporting an error, the data may not match the facts on the page.

Markup does not match the visible content

If the page shows the current selling price but the markup still contains an old price, or the product is out of stock but the markup still indicates that it is available, the cause may be caching, delayed data synchronization, or an incorrect template reference. Check what visitors see, the markup data, and the source of the backend data, then clear the relevant caches after updating. For pages targeting different languages or regions, also check that the currency, product information, and target URL correspond to each version.

Markup may also be output more than once on the same page by a theme, plugin, or script, potentially causing conflicts. Check whether each block describes the same entity and whether the field values match, then decide which instance to keep or whether they should be merged. Having multiple items is not necessarily an error; what matters is whether they accurately describe the page content.

Why is the expected display still missing after the test passes?

First, confirm that you tested the URL corresponding to the search result, including its protocol, domain, path, and language version. Redirects, canonical URL settings, or inconsistent content across versions may mean that the page you checked is different from the one processed by the search engine. In Search Console, use URL Inspection to review the index status and crawl information known to Google, and run a live test if needed.

A live test reflects current accessibility; it does not mean that the indexed version has already been updated. Make sure the page is crawlable and does not require a login, and check that server restrictions or script loading failures are not preventing the markup from being detected. After fixing the issue, you can request recrawling, but processing takes time. Even when the markup is valid and the page is indexed, the search engine decides whether to show rich results based on the query, page quality, and display rules.

How to prevent recurring issues across multiple pages

If the same error appears on multiple product or article pages, first check the shared template, plugin settings, and field mappings rather than fixing each page manually. After fixing the template, spot-check representative pages with and without prices, with and without ratings, and in different languages. Confirm that the template does not output empty values or incorrect structures when data is missing.

After each template change, product data import, or change in the generation method, keep a set of representative URLs for retesting. For frequently changing fields such as price and stock status, use the same data source for the markup and the page, and confirm the cache update schedule. This helps reduce cases where the page content has changed but the markup still reflects an older version.

Inquire now

Related Articles

Related Products