Loading

Zip Code not Returning Correct Store Results because Zip Code doesn't Exist in B2C Commerce

Julkaisupäivä: Nov 13, 2025
Kuvaus

When testing the GetNearestStores pipelet, and a certain zip code doesn't return any store results as a result of the zip code "not existing", ensure that there is geolocation data for that zip code.

 

The most likely cause for this issue is that there is no geolocation data for the requested zip code. In order to test if geolocation data exists for the given zip code, do the following:

  1. go to Administration > Global Preferences > Store Locator Data.
  2. Enter in the given zip code in the postal code form field and click Find.
  3. If the resulting message says: "The geolocation database does not have an entry for the entered postal code in the selected country", then there is no geolocation data for that zip code. If there is data returned for that zip code (city, state, etc.) then the geolocation data does exist.
Ratkaisu

 The XML geolocation data will need to be created to import the new geolocation into your instance. An example of a geolocation XML file can be seen below:

<?xml version="1.0" encoding="UTF-8"?>
<geolocations xmlns="http://www.demandware.com/xml/impex/geolocation/2007-05-01" country-code="US">
    <geolocation postal-code="80113">
        <city xml:lang="x-default">Englewood</city>
        <state xml:lang="x-default">CO</state>
        <longitude>-104.9614</longitude>
        <latitude>39.6405</latitude>
    </geolocation>
</geolocations>

 

Once the XML file is created, the import into the instance can begin. In order to add geolocation data, the geolocation XML will need to be in a zip file and imported by going to Administration > Site Development > Site Import & Export. When the import has successfully completed, ensure that the new geolocation zip code data has been imported by navigating to the Store Locator Data module and testing the newly added zip code.

Knowledge-artikkelin numero

000391358

 
Ladataan
Salesforce Help | Article