Loading

Salesforce Contracts Connector: DataTrue Up Token Fetch Fails

Дата публикации: Sep 29, 2026
Описание

DataTrue Up token fetch fails in the Salesforce Contracts Connector on Salesforce Revenue Cloud when the authentication token expires and the automatic token refresh mechanism is not configured correctly. The symptom typically appears as an "Invalid token" or HTTP 401 Unauthorized error returned during token fetch operations — often after several days of inactivity or following an environment change.

DataTrue Up tokens are the authentication credentials used by the Salesforce Contracts Connector to communicate with external services. Token refresh is expected to occur automatically, but if the authentication provider (the Salesforce component that manages OAuth credentials and token lifecycle) is misconfigured, the token expires without renewal. Once expired, all subsequent token fetch operations fail until the authentication provider is reconfigured or manual reauthentication is performed.

Root cause: The authentication provider for the Salesforce Contracts Connector is missing the token refresh configuration, or the refresh settings were not applied correctly during initial setup or after an upgrade.

Решение

To restore DataTrue Up token fetch functionality, reconfigure the authentication provider in Salesforce Setup to enable automatic token renewal. The steps below cover manual verification, auth provider reconfiguration, and post-fix validation.

Step 1 — Confirm the Symptom

1. Attempt a DataTrue Up token fetch operation in the Salesforce Contracts Connector.
2. Confirm the error returned is "Invalid token", "Token expired", or HTTP 401 Unauthorized.
3. Perform a manual reauthentication. If manual reauthentication succeeds and token fetch resumes, this confirms the root cause is an expired token due to a missing or broken automatic refresh configuration — not a credential or network issue.

Step 2 — Reconfigure the Authentication Provider

1. Open Salesforce Setup by selecting the gear icon in the top navigation bar.
2. In the Quick Find box, enter Auth. Providers and select Auth. Providers from the results.
3. Locate the authentication provider associated with the Salesforce Contracts Connector (for example, a Microsoft App-based provider named SFContracts_MicrosoftApp).
4. Select Edit on that provider record.
5. Verify the following fields are populated correctly:
• Consumer Key — must match the registered application's client ID.
• Consumer Secret — must match the registered application's client secret.
• Token Endpoint URL — must point to the correct Microsoft identity token endpoint (for example, https://login.microsoftonline.com/{tenant-id}/oauth2/v2.0/token).
• Default Scopes — must include the scopes required by the Salesforce Contracts Connector.
1. Confirm that the Token Refresh option or equivalent refresh grant configuration is enabled. If the field is blank or set to a non-refresh grant type, update it to support refresh token issuance.
2. Save the authentication provider record.

Step 3 — Verify Token Refresh Is Working

1. After saving, navigate back to the Salesforce Contracts Connector configuration.
2. Trigger a new authentication flow to issue a fresh token with the corrected provider settings.
3. Wait at least 60 minutes (or simulate inactivity by advancing the token expiry in a sandbox environment) and then attempt a DataTrue Up token fetch.
4. Confirm the fetch succeeds without manual intervention — this indicates automatic token refresh is now operating correctly.

Step 4 — Apply Full Auth Provider Configuration

For complete authentication provider setup instructions specific to the Microsoft App integration used by Salesforce Contracts Connector, follow the official configuration guide:

Salesforce Contracts: Configure an Auth Provider for Microsoft App

This guide covers registering the Microsoft application, mapping OAuth scopes, and configuring the Salesforce authentication provider end-to-end. Completing all steps in that guide ensures the token refresh mechanism is fully enabled and prevents recurrence.

Номер статьи базы знаний

005460812

 
Загрузка
Salesforce Help | Article