Overview
The issue of Hong Kong and Taiwan Geo Locations not appearing under Geography in Salesforce was due to incorrect configuration in the inventorySyncStrategy.json file. The error was resolved by explicitly listing these regions as "REGION" items in the configuration file.
Information
Issue: Hong Kong and Taiwan Geo Locations not appearing under Geography in Salesforce.
Resolution Steps:
-
Verify Configuration:
- Ensure that the inventorySyncStrategy.json file is correctly configured.
- Check that "INCLUDE_ALL_TOP_LEVEL_GEO_ITEMS": true is set, but note that this alone may not include all regions.
-
Modify Configuration:
- Explicitly list Hong Kong and Taiwan as "REGION" items in the configuration.
- Example configuration:
{ "geoItems": { "synchronize": true, "geoItemFilter": "csdf__Code__c IN ('HK','TW')", "settings": { "INCLUDE_ALL_TOP_LEVEL_GEO_ITEMS": true }, "items": [ { "type": "REGION", "filters": { "include": [ [{ "field": "Code", "value": "HK" }], [{ "field": "Code", "value": "TW" }] ] } } ] } }
-
Upload Configuration:
- Ensure the configuration file is uploaded as an attachment, not as a file, to the Ad Server.
-
Run Inventory Synchronization:
- Trigger the inventory synchronization process.
- Verify that the synchronization completes without errors.
-
Verify Resolution:
- Check Salesforce to confirm that Hong Kong and Taiwan are now appearing under Geography.
- Use the following query to verify:
SELECT Id, Name, csdf__Category__c, csdf__Code__c, Top_Level_Node__c FROM csdf__Geo_Item__c WHERE CreatedDate = TODAY
Note: Ensure that all incoming and outgoing messages are processed correctly to avoid synchronization issues.
Frequently Asked Questions
- How do I know if this error applies to my situation?
- If Hong Kong and Taiwan are not appearing under Geography in Salesforce despite updating the inventorySyncStrategy.json, this solution may apply to you.
- What if the regions still do not appear after updating the configuration?
- Ensure that the configuration file is uploaded as an attachment and not as a file. Verify that the synchronization process completes without errors.
- Can I use "INCLUDE_ALL_TOP_LEVEL_GEO_ITEMS" to include all regions?
- This setting alone may not include all regions, especially if they are categorized differently. Explicitly listing regions as "REGION" items is recommended.
Priyanka Bhotika
Comments