Upgrading Territory Mapper
Status: Written from upgrades of two orgs from 1.1.0.1 to 1.3.0.3; step 3 from an upgrade of a scratch org and of review-org from 1.3.0.3 to 1.4.0.5 on 2026-11-07 (TerritoryMapperProd@fa16a9f, TerritoryAssignmentRetryScheduler.cls:510).
What to do after upgrading an org to version 1.4.0.5, from version 1.1.0.1 or from 1.3.0.3. Upgrade a sandbox first. Steps 1 and 2 apply only to an org that ran 1.1.0.1; step 3 applies to every upgrade.
1. Untick Generate Authorization Header on KoopGIS
Version 1.3.0 signs every request to the map service itself, so the KoopGIS named credential no longer needs to add a header of its own. A new install arrives with the setting off. An upgrade does not change it, so an upgraded org still has it ticked.
- Setup → Named Credentials. Stay on the Named Credentials tab.
- Click KoopGIS, then Edit.
- Untick Generate Authorization Header.
- Save.
In our tests, assignment still worked with the box ticked. Untick it anyway, so your org's credential matches what the package ships.
2. Register this org, if you have not
Open the Territory Mapper Setup tab. If the badge does not read Configured — RS256, certificate …, do setup step 2. There is no longer a token to paste: the value in the KoopGIS external credential's Authorization header is not used by 1.3.0, and you can leave it as it is.
3. Open the map once
An upgrade re-schedules the hourly job Territory Mapper — Assignment Retry as the internal install user, and every fire then fails until a real administrator owns it. From version 1.4.0, opening the Territory Mapper tab once, as an administrator who can manage territories, re-registers the job as you. Press nothing else. Do it right after the upgrade; the five-minute check starts at the next top of the hour (setup step 9).
If the Assignment Exceptions tab shows a yellow banner with a Re-register as me button, the automatic re-registration did not succeed; press the button, which does the same thing. In version 1.3.0 that button was the only way. Until the job is owned by an administrator, nothing moves with its address.
What changes for your users
- The hourly job repairs itself (1.4.0). The first administrator to open the map after the upgrade re-registers Territory Mapper — Assignment Retry (step 3). Both scheduled jobs are replaced by the upgrade.
- The Territory Mapper Setup tab has one form, Connect this org to the map service (1.4.0). The signing-secret form is gone.
- A Territory Object Config row with a blank Territory Model Id applies to every model, for Accounts as well as other objects (1.4.0); a row that names a model restricts assignment to that model — see Which objects a model assigns.
- An account that already holds a territory in any model is left alone by automatic assignment — a known defect in 1.4.0 (
216-F1); see Troubleshooting. - Records follow their address (1.3.0). See When a record's address changes. Read its section on records assigned before 1.3.0: until a record has been re-assigned once, Territory Mapper treats its territories as hand-made and keeps them when it moves.
- Which objects each model assigns now has a tab, Territory Object Configs, for holders of the Administrator permission set. The record page shows every setting.
- The exception queue has a new category, Manual assignment kept, explained on When a record's address changes.
⚠️ **In an upgraded org, the Category field is blank on rows of the newer categories. Salesforce does not add new picklist values to an installed field during an upgrade. The Assignment Exceptions tab is not affected — it reads Category Code, which is always filled in. Build your reports and list views on Category Code**, not Category.
Last verified: 2026-11-07 · Owner: MapKraken Labs LLC
Something on this page wrong, or a setup step missing? That is a documentation defect and we want it — tell us and this is the page that gets fixed.