Hello,
We apologize for the issue you are facing with the country code error while running the Google Rich Results Test. To resolve this, you will need to update the schema markup for your website to reflect the correct ISO country code.
Here’s how you can do that in Rank Math:
- Access the Schema Settings: Go to the post or page where you have implemented the schema markup.
- Edit Schema Markup: In the Rank Math meta box, find the Schema tab and click on it to edit your schema settings.
- Update Country Code: Look for the field where you can specify the country code. Change it from “Sri Lanka” to “LK” to comply with the ISO standard.
- Save Changes: Make sure to save your changes after updating the country code.
After making these changes, you can re-run the Google Rich Results Test to check if the error has been resolved. If you continue to experience issues, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern, and we hope this helps!
Sources:
Configuring “Schema Markup” in Rank Math for Rich Snippets » Rank Math
Hello,
You’re right. The country of Sri Lanka should be LK. You can change the country code in WP Dashboard > Rank Math > Titles & Meta > Local SEO > Address field:

Once done, please clear your website cache and check again.
However, we can see 4 LocalBusiness schema markups on your website. Can you please confirm if you’ve added any custom LocalBusiness schema to your website?
Also, it looks like you’re currently using the Rank Math PRO plugin on your website, but the account you have used to open this ticket is the Rank Math free version.
Please search and forward a receipt from FastSpring.com so we can locate your account and verify it.
Let us know how it goes. Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.