We have an aggregate review page that we've set up with structured data. Unfortunately, when 0 reviews have been written for a product, we get the error:
0 (The value provided for reviewCount must be a positive value.)
I found this GitHub issue where people sort of contest the fact that this should be an error. It's still an aggregateReview
, it just doesn't have any reviews yet.
Nevertheless, Google seems to treat this situation as an error. In this case should I just hide all the structured data? I am feeling kind of impelled to simply ignore the error.
AggregateRating
?>=
else remove itemprop and other associated markup meaning your code is squeaky clean for Google Search Console.