Loading

Salesforce Field Service Initial Setup Stuck at "Create Field Service Console App" Due to a Custom Apex Trigger Error

Veröffentlichungsdatum: Oct 2, 2026
Beschreibung

Administrators enabling Salesforce Field Service through guided setup (Salesforce Go → Field Service Initial Setup) may find that setup never completes at the "Create Field Service Console App" step.

Salesforce Field Service initial setup deploys metadata to the org, including creating the Field Service Console application. If a custom Apex trigger in the org fires during that deployment transaction and throws an unhandled exception, the underlying metadata deployment fails and the setup step cannot finish.

Observations:
- The "Create Field Service Console App" step in Field Service Initial Setup does not complete and can be retried indefinitely without success.
- Setup → Deployment Status shows the setup deployment with a Failed / FAILED_FATAL_ERROR result, with some components deployed and one or more components in error.
- The deployment error names a custom Apex trigger and its handler class as the failing component.

Lösung

1. Open Setup and enter Deployment Status in the Quick Find box, then select Deployment Status.
2. Locate the failed Field Service setup deployment (the operation that creates the Field Service Console App) with a Failed result.
3. Open the failed deployment and review the component errors. The error text names the custom Apex trigger and handler class that threw the exception, including the class name and line number.
4. In Setup, enter Apex Triggers in the Quick Find box and open the named trigger.
5. Deactivate the trigger. In a sandbox, edit the trigger and clear the Is Active checkbox; in production, deactivate it through your standard change-management deployment, because Apex triggers cannot be edited directly in production.
6. Re-run Field Service Initial Setup (Salesforce Go → Field Service → Turn on → Create Field Service Console App).
7. After setup completes, correct the trigger's logic (for example, guard against reading from an empty collection and bulkify the handler) and redeploy it in an active state so it no longer errors on future operations.

Verification

1. Setup → Deployment Status shows the Field Service setup deployment with a Succeeded result.
2. The Field Service Console app appears in the App Launcher and opens.

Zusätzliche Ressourcen

- Salesforce Help: Set Up Field Service — https://help.salesforce.com/s/articleView?id=service.fs_set_up.htm&type=5
- Salesforce Help: Monitor Deployments and View Deployment Details — https://help.salesforce.com/s/articleView?id=sf.deploy_monitoring.htm&type=5
- Salesforce Help: Manage Apex Triggers — https://help.salesforce.com/s/articleView?id=sf.code_define_trigger.htm&type=5
- Related article: Troubleshoot Deployment Failures (ArticleNumber 005335625)

Nummer des Knowledge-Artikels

005391185

 
Laden
Salesforce Help | Article