Loading

User Territories Created via Data Loader or API Not Visible in Field Service Gantt View

Julkaisupäivä: Sep 15, 2026
Kuvaus

Field Service administrators and dispatchers may encounter a situation where User Territory records (FSL__User_Territory__c — the Field Service User Territory object) are successfully created in bulk using tools such as Data Loader, Salesforce Inspector, or the Bulk API — but the affected users still cannot see their assigned Service Territories in the Dispatcher Console Gantt View.
Example scenario: A Field Service admin at a utilities company bulk-imports 150 User Territory records via Data Loader to onboard a new technician workforce. After the import completes, the dispatcher opens the Gantt View and notices none of the newly assigned territories appear in the territory filter. The technician records exist in the database, but the Gantt View shows no change.
Why this happens: The Field Service managed package triggers that handle sharing logic — adding users to their Service Territory's Public Groups and creating ServiceTerritoryShare records (the records that control Gantt View visibility) — do not execute in the same context as Bulk API operations. When records are created through the Salesforce UI, these triggers fire automatically. When records are created via bulk tools, the triggers may not execute, resulting in missing Public Group memberships and missing ServiceTerritoryShare records.
This is expected, working-as-documented behavior. A manual synchronization step using the built-in User Territories Sharing Job is required after any bulk data import of User Territory records in Field Service.

Ratkaisu

When Field Service User Territory records are created via bulk methods, the managed package sharing logic must be re-triggered manually. The steps below walk through enabling the required settings and running the User Territories Sharing Job to regenerate all Public Group memberships and ServiceTerritoryShare records (the records that control Gantt View visibility) — restoring Gantt View visibility for affected users.

Root Cause

When User Territory (FSL__User_Territory__c — the Field Service User Territory object) records are created via API or Bulk API tools such as Data Loader, Salesforce Inspector, or Bulk API, the Field Service managed package triggers do not automatically generate the required Public Group memberships and ServiceTerritoryShare records that control Gantt View visibility. This is working-as-documented behavior — the Field Service sharing architecture is optimized for UI-based record creation.

Important Note

Affected users must have linked Service Resource records for the Sharing Job to process their User Territory assignments. If a user does not have a Service Resource record, the batch job processes 0 items for that user. Confirm that Service Resource records exist before running the job.

Steps to Resolve

A Field Service admin uses Data Loader or Salesforce Inspector to import multiple FSL__User_Territory__c (Field Service User Territory) records at once. The records are created successfully in the database, but affected users cannot see their assigned territories in the Dispatcher Console Gantt View because the sharing records were never generated.

  1. Navigate to the Field Service Admin App → Field Service Settings → Sharing
  2. Confirm the "Enable User Territories Sharing" toggle is set to ON
  3. Confirm the "Automatically Populate User Groups Based on User Territory" toggle is set to ON
  4. Scroll down to the Scheduled Jobs section
  5. Locate the "User Territories" job
  6. Click Run to execute the job immediately
  7. The job processes all existing User Territory records and:
    1. Adds users to their Service Territory Public Groups
    2. Generates ServiceTerritoryShare records (which control Gantt View visibility)
    3. Synchronizes Gantt View access permissions
Knowledge-artikkelin numero

005388484

 
Ladataan
Salesforce Help | Article