EducationSoftwareStrategy.com
StrategyCommunity

Knowledge Base

Product

Community

Knowledge Base

TopicsBrowse ArticlesDeveloper Zone

Product

Download SoftwareProduct DocumentationSecurity Hub

Education

Tutorial VideosSolution GalleryEducation courses

Community

GuidelinesGrandmastersEvents
x_social-icon_white.svglinkedin_social-icon_white.svg
Strategy logoCommunity

© Strategy Inc. All Rights Reserved.

LegalTerms of UsePrivacy Policy
  1. Home
  2. Topics

US Zip Codes with leading zeros are not automatically geocoded when using Data Import in MicroStrategy Web 9.4.1


Benjamin Reyes

Vice President, Product Management • MicroStrategy


Starting with the release of Strategy ONE (March 2024), dossiers are also known as dashboards.

Description

Strategy 9.4.1 supports automatic generation of latitude and longitude (geocoding) for geographical attributes when using Data Import in Strategy Web. Data Import supports automatic geocoding for United States zip codes. However, when importing five digit zip codes with leading zeros these will not be automatically geocoded. 
Strategy Web 9.4.1 users importing zip code data that contains leading zeros will notice that those attribute elements will not be automatically geocoded. For example, in the data below entry with ID "1" will be not be geocoded whereas entry with ID "2" will be geocoded correctly:
 

Yes
IDZipCode10880228802

Yes
IDZipCode10880228802

Yes
IDZipCode10880228802

Yes
IDZipCode10880228802

Yes
IDZipCode10880228802

Yes
IDZipCode10880228802

 
This will result in just 1 point showing in a map configured with this data as a source.
View the image below for reference:
 

ka0PW0000001JZPYA2_0EM4400000025wX.jpeg

 

Why is this happening?

With Strategy 9.4.1, Data Import geocoding is done by the Intelligence Server based on a predefined lookup table available in CSV format. This table contains a list of all the US Zip Codes without leading zeros, therefore, all imported files with leading zeros will fail the exact match test and will not be geocoded. For example, in the example above the zip code exists in the lookup table as "8802" and not "08802".
 

Solution

This has been logged as a known issue with Strategy 9.4.1 since the official standard determines that all zip codes should comprise of five digit codes. Strategy will continue to investigate and post updates as soon as they are available. Please refer back to this article for updates.
 
In the meantime, there are two possible workarounds:
 
a. Modify the imported data to match the Strategy lookup table :
Leading zeros can be removed from the imported excel file with the following formula:


=VALUE(A1)

This will convert "08802" into a number without leading zeros: "8802"
Now convert the resulting Excel cell to a text format, save the file and import it again. 
 
b. Modify the Strategy lookup table to match the imported excel data
Strategy Administrators can manually modify the CSV lookup table. In this case a lookup table with leading zeros has been created in order to fulfill the five digit requirement and is available as an attachment to this article. To deploy it, follow these steps:

  1. Stop the MicroStartegy Intelligence Server.
     
  2. Locate the following CSV file in the Strategy Intelligence Server home directory (typically):
     
    
    C:\Program Files (x86)\Strategy\Intelligence Server\ZipCode.csv

    Note: Back up this file in case the changes want to be reverted.
     
  3. Replace the file in step 2 with the file attached to this Technical Note with the name:
    ZipCode.csv
     
  4. Start the Strategy Intelligence Server

Learning Resources


Interested in learning more about Dossier authoring? Visit the Learning Center on Community!
Or go to our Documentation pages for more product information.
 


Comment

0 comments

Details

Knowledge Article

Published:

March 31, 2017

Last Updated:

March 21, 2024