Troubleshooting
By symptom. Each entry names the check that separates two different causes, because most of these symptoms have more than one.
Nothing is being assigned
By far the most common problem, and it has several causes with one symptom: silence.
First, give it about 20 minutes. Salesforce can take up to about 15 minutes to geocode a new or edited address, and Territory Mapper checks for changed records every five minutes after that — see When a record's address changes. In a newly set-up org the five-minute check starts at the top of the hour after setup step 9.
Run these three checks in order. Do not skip ahead — each is only meaningful once the previous one passes.
1. Do your records have coordinates?
SELECT BillingGeocodeAccuracy, COUNT(Id) FROM Account GROUP BY BillingGeocodeAccuracy
All null → geocoding clean rules are off. This is the most likely answer. → Geocoding clean rules
2. Is anything assigned at all?
SELECT COUNT(Id) FROM ObjectTerritory2Association
Zero, with coordinates present in check 1 → the geocode half works and the callout half does not. Go to 3.
3. What does the exception queue say?
Open Assignment Exceptions:
| Mostly | Cause | Fix |
|---|---|---|
NOT_CONFIGURED | The org is not registered with the map service, or users cannot use the credential, or the hourly job still belongs to the install user | Setting up the org, steps 2, 3 and 9 |
NO_GEOCODE | A queued record lost its coordinates before it ran | Fix the address, then Re-run after a fix |
COVERAGE_GAP | Everything works. Those records are outside every territory | Coverage gaps |
ENDPOINT_UNREACHABLE / TIMEOUT | The service is not answering | Retried automatically. Hours of it: contact MapKraken Labs |
| Empty, and nothing assigned | The five-minute check has not started yet — or the scheduled job is missing | Wait for the top of the hour, then 10 minutes. Still empty: open Assignment Exceptions as an administrator — that re-registers Territory Mapper — Assignment Retry if it is missing or failing, and says so in a green message. A yellow banner means it could not; press Re-register as me (step 9) |
An account is never assigned, and the queue shows nothing for it
A known defect in version 1.4.0.5 (216-F1). If an account already holds any territory in any model — one assigned by hand from the map, imported, left in a Planning or archived model, or assigned by an earlier version — Territory Mapper leaves it alone: it is not assigned, it is not moved, and no row is written to Assignment Exceptions. To fix one account, remove its existing rows from the Assigned Territories related list, then wait for the top of the hour; the hourly pass picks it up. Or assign it by hand from the map. A fix is planned.
The map says it is not yet connected to this Salesforce org
The message "Territory Mapper is not yet connected to this Salesforce org, so your territory hierarchy could not be read" means the map service has no connection record for your org. It is a different condition from Invalid token below: there, your org's key is not registered; here, the connection on the service side has not been set up. Complete setup step 2 first; if the badge there already reads Configured — RS256 and the message stays, contact MapKraken Labs with your org id. The same sentence appears when the browser cannot reach Salesforce at all — a missing CORS entry (setup step 5) produces it too.
Records have coordinates but nothing is assigned
Registering the org (step 2) or the grant of access to the credential (step 3).
These are two separate steps and the second is the one people miss. Both look the same: rows in the exception queue as NOT_CONFIGURED, and the row's reason text says which. On the Territory Mapper Setup tab, the badge reads Configured — RS256, certificate … once step 2 is done.
🔴 If one administrator's edits are assigned and everyone else's are not, it is the grant, missing for those users. If hourly assignment fails while edits made by hand work, it is the scheduled job — step 9.
The exception queue is where it does show up, as NOT_CONFIGURED. A new install starts in this state, so a queue full of them is expected rather than alarming.
After fixing, these rows drain on their own, about 25 an hour. Select them and Re-run after a fix to do it now.
The map is blank, or shows a basemap with nothing on it
Work through these in order:
- Does the page say "Territory Mapper setup required"? Then the map's connection settings are not complete. Contact MapKraken Labs with your org id.
- Is a territory model selected? With no model selected there is nothing to draw.
- Does the model have territories with saved boundaries? A territory with no boundary draws nothing. Check the tree.
- Do you have the permission set? Without Territory Mapper - Viewer (read only) the map does not open. The two Administrator sets do not include the map on their own.
- Are you in any territory? What a user sees comes from territory membership, not from the permission set — setup step 8.
- Basemap present, territories absent → the model has no saved boundaries, or you are zoomed somewhere they are not. Zoom out.
- Nothing at all, not even a basemap → a browser or network problem. Check the browser console; contact MapKraken Labs with what it says.
The map shows only "Invalid token"
The map area shows the words Invalid token (or Invalid token identity) on a plain page, with no map and no basemap.
This is not a permission problem. When the map opens, Salesforce sends Territory Mapper's map service a signed token that says which org is asking. The map service accepts it only when it is signed with a key registered for your org. "Invalid token" means the service did not accept the signature.
The usual reason is that your org's key has not been registered yet. That is the expected state straight after a new install, and in any new sandbox or test org: each org is registered separately.
What to do:
- Open the Territory Mapper Setup tab. If the badge does not read Configured — RS256, certificate …, register the org: setup step 2. Then reopen the map.
- If the badge already reads that and the map still says Invalid token, find your org id (Setup → Company Information → Salesforce.com Organization ID) and contact MapKraken Labs with it and the words "Invalid token".
Reloading the page does not help; the token is created fresh each time the map opens, and the same registration check refuses it again. If the map worked before in this org and now shows this message, say so — that points to a key that has changed rather than one that was never registered.
Records are assigned to the wrong territory
Three causes, most likely first.
The address is imprecise
Check the record's BillingGeocodeAccuracy. Values like Zip, Neighborhood, City, County or State mean the record was placed at the centre of that area, potentially miles from its real address — and near a boundary that is enough to land it on the wrong side.
Those records are in the queue as IMPRECISE_GEOCODE. They are not failures; the assignment happened. Fix the address to fix the placement.
The boundary changed after the record was assigned
Changing a boundary does not move records. A record assigned under an older boundary stays where it was, indefinitely.
Nothing flags this — the record was assigned successfully, just under a boundary that has since moved, so it is not in the exception queue either.
There is currently no way to move them automatically. Re-running an account that is already assigned adds its new territory and removes the old one if Territory Mapper had set it; a territory a person set, or one assigned before version 1.3.0, is kept — remove that one by hand. A bulk re-evaluation after a boundary change is planned, not built.
Two territories overlap
Nothing prevents territories in one model from overlapping, and a point inside an overlap is assigned to both.
If a record has more territories than you expect, look at the boundaries around it on the map first.
A territory I deleted still affects assignments
A boundary is stored outside Salesforce, keyed on the territory's record id. Deleting the territory does not delete its boundary — the boundary is stranded, and the GIS service can still return it.
If the deleted territory was the only one containing a record, you will see it as ORPHAN_TERRITORY_MODEL in the queue. If a live territory also contains the record, the stale one is ignored and nothing is listed.
🔴 Do not redraw anything. Your map is correct. Contact MapKraken Labs to reconcile the service against your org, then Re-run after a fix.
The same thing happens if you clone a territory model. A clone gets new ids throughout, so it has no boundaries at all, while the original's boundaries stay with the original. Do not use clone-a-model as a realignment strategy until this is fixed.
A territory's boundary disappeared
Its Salesforce record is still in the tree, but it draws nothing. Two ways that happens:
- Somebody used Remove over it. Remove returns the selected areas to Unassigned from whichever territory at that depth holds them — not only the one being edited. A territory left with no ground loses its boundary.
- Somebody cleared a boundary above it. The bin also clears lower-level boundaries lying inside the cleared area — see Clearing a boundary.
Saving a selection never removes a neighbour: one you cover completely keeps its boundary and overlaps yours instead — see What happens to a neighbour.
There is no undo. Give the territory ground again; the record itself does not need recreating.
Selection is slow
Clicks and boxes are answered in your browser and are fast. The slow step is Save, and its cost grows with how many areas you selected — a metro at block-group resolution can be thousands.
- Zoom out one step to select coarser areas, then refine.
- Save in smaller batches — Save adds to the boundary, so several small saves build the same shape.
The map shows no territory names
Expected, and not a fault in your org. Territory name labels are not drawn on the map yet — the typeface has not been chosen, and rather than pick one arbitrarily the name layers are left out.
Hover a territory to see its name, or read the legend. Colour, position and outline weight carry meaning in the meantime — Reading the map.

What a working map looks like. Compare against yours: a basemap with nothing on it is the signature of a configuration problem, not of an empty model.
Records in Alaska, Hawaii or DC are never assigned
Expected today. The map's census geography does not include Alaska, Hawaii or the District of Columbia yet, so no territory can cover them and those records land in the queue as Outside every territory. See Coverage gaps.
What to send when you contact MapKraken Labs
Everything below is answerable from Salesforce and none of it is customer data:
- Your org id.
- The counts from checks 1 and 2 at the top of this page.
- The category breakdown of the exception queue.
- For a specific record: its id, geocode accuracy, latitude and longitude, and the territory you expected.
- For a failed callout: the reason text on the exception row — it carries the service's own message.
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.