Troubleshooting ServiceNow Software Asset Management Salesforce CRM integration: Complete Troubleshooting guide for subscriptions, consumption or activity missingSummary :root { color-scheme: light; --blue:#005baa; --ink:#172033; --muted:#5b6678; --line:#d6dee8; --surface:#fff; --page:#f3f6fa; --red:#b42318; --amber:#9a6700; --green:#087443; } * { box-sizing:border-box; } html { scroll-behavior:smooth; } body { margin:0; padding:24px; background:var(--page); color:var(--ink); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; line-height:1.55; } .kb-page { max-width:920px; margin:0 auto; } .kb-hero { background:var(--blue); color:#fff; padding:28px 32px; border-radius:10px; margin-bottom:24px; } .kb-eyebrow { margin:0 0 6px; font-size:11px; letter-spacing:1px; opacity:.78; text-transform:uppercase; } .kb-hero h1 { margin:0 0 7px; font-size:clamp(22px,4vw,30px); line-height:1.15; } .kb-lede { margin:0; font-size:14px; opacity:.9; } .kb-badges { display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; } .kb-badge { padding:3px 11px; border-radius:12px; background:rgba(255,255,255,.18); font-size:12px; } .kb-toc,.kb-panel { background:var(--surface); border:1px solid var(--line); border-radius:8px; } .kb-toc { padding:18px 24px; margin-bottom:24px; } .kb-toc-title { margin:0 0 8px; color:#374151; font-size:13px; font-weight:700; letter-spacing:.5px; text-transform:uppercase; } .kb-toc ol { margin:0; padding-left:22px; line-height:2; } .kb-toc a { color:var(--blue); text-decoration:none; } .kb-section { margin-bottom:28px; scroll-margin-top:16px; } .kb-section-title { margin:0; padding:12px 20px; border-radius:8px 8px 0 0; background:var(--blue); color:#fff; font-size:16px; } .kb-panel { padding:20px 22px; border-top:0; border-radius:0 0 8px 8px; } .kb-panel p:first-child { margin-top:0; } .kb-panel p:last-child { margin-bottom:0; } .kb-callout { margin:0 0 18px; padding:13px 16px; border-left:5px solid var(--blue); border-radius:0 7px 7px 0; background:#eef5fc; } .kb-callout.critical { border-color:var(--red); background:#fff1f0; color:#7a271a; } .kb-callout.warning { border-color:var(--amber); background:#fff8e7; color:#6b4d00; } .kb-callout.success { border-color:var(--green); background:#ecfdf3; color:#05603a; } .kb-table-wrap { overflow-x:auto; margin:16px 0; } table { width:100%; border-collapse:collapse; font-size:13px; } th { padding:9px 12px; background:#31506d; color:#fff; text-align:left; } td { padding:9px 12px; border-bottom:1px solid #e5e7eb; vertical-align:top; } tr:nth-child(even) td { background:#f8fafc; } code { padding:1px 4px; border-radius:3px; background:#f1f3f5; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:.92em; overflow-wrap:anywhere; } pre { overflow:auto; padding:14px; border-radius:6px; background:#111827; color:#f9fafb; } details { margin:0 0 12px; border:1px solid #bfdbfe; border-radius:6px; overflow:hidden; } summary { cursor:pointer; padding:12px 16px; background:#eff6ff; color:#1e3a5f; font-weight:700; } details > div { padding:16px; background:#fff; } .kb-footer { padding:16px 20px; color:var(--muted); font-size:12px; background:#f8fafc; border:1px solid var(--line); border-radius:8px; } @media (max-width:640px) { body { padding:12px; } .kb-hero { padding:22px 20px; } .kb-panel { padding:16px; } .kb-section-title { padding:11px 16px; } th,td { min-width:140px; } } .kb-hero { padding:24px 28px; } .kb-toc ol { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 26px;line-height:1.7; } .kb-toc li { padding:3px 0; } h3 { color:#183653;line-height:1.3; } a { color:#005baa;overflow-wrap:anywhere; } th,td { overflow-wrap:anywhere; } pre code { padding:0;background:transparent;color:inherit;overflow-wrap:normal; } code.kb-err { color:#c62828;font-weight:700;background:#fdecea; } .kb-err-list { display:flex;flex-wrap:wrap;gap:6px;margin-top:8px;font-weight:400; } .kb-err-chip { display:inline-block;max-width:100%;padding:2px 8px;border-radius:4px;background:#fdecea;border:1px solid #f5c2c0;color:#c62828; font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;font-weight:700;line-height:1.45;overflow-wrap:anywhere; } .kb-sum-title { font-weight:700; } .branch-index { margin:18px 0 20px;padding:14px 18px;background:#f8fafc;border:1px solid var(--line);border-radius:8px; } .branch-index ol { list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px 28px; } .branch-index li { font-size:14px;line-height:1.45;padding:4px 0; } .kb-section-title + .kb-panel { margin-top:0; } details > div p { margin:0 0 14px; } details > div p:last-child { margin-bottom:0; } @media(max-width:640px) { .kb-toc ol,.branch-index ol { grid-template-columns:1fr; } .kb-hero {padding:20px;} } @media print { body {padding:0;background:#fff;} .kb-toc,.branch-index {display:none;} } .flow { margin:4px 0 26px;padding:18px;border-radius:12px;background:linear-gradient(135deg,#f8fafc,#eef2ff);border:1px solid var(--line); } .flow-intro { display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;font-size:13px;color:#475569;margin-bottom:14px; } .flow-legend { display:flex;flex-wrap:wrap;gap:6px; } .flow-key { padding:2px 9px;border-radius:10px;background:var(--b);color:var(--c);font-weight:700;font-size:11px;border:1px solid var(--c); } .flow-lane { margin-top:14px; } .flow-lane-head { display:flex;align-items:center;gap:10px;margin-bottom:8px;color:#0f172a; } .flow-lane-head span { font-size:11px;padding:2px 8px;border-radius:10px;background:#0f172a;color:#fff;text-transform:uppercase;letter-spacing:.05em; } .flow-track { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 30px; } .flow-node { position:relative;display:flex;flex-direction:column;gap:3px;padding:12px 10px 10px 12px;border-radius:10px; background:var(--b);border:2px solid var(--c);color:#1e293b;text-decoration:none;box-shadow:0 1px 2px rgba(15,23,42,.06); transition:transform .2s ease,box-shadow .2s ease;animation:flowPulse 4.4s ease-in-out infinite;animation-delay:var(--d); } .flow-node::after { content:"";position:absolute;top:50%;right:-27px;width:22px;height:4px;margin-top:-2px;border-radius:2px; background:repeating-linear-gradient(90deg,var(--c) 0 6px,transparent 6px 10px);background-size:20px 4px;animation:flowDash .8s linear infinite;opacity:.7; } .flow-node:nth-child(4n)::after,.flow-node:last-child::after { display:none; } .flow-node:hover,.flow-node:focus { transform:translateY(-3px);box-shadow:0 8px 20px rgba(15,23,42,.18);outline:none;z-index:5; } .flow-node:focus-visible { outline:3px solid var(--c);outline-offset:2px; } .flow-num { position:absolute;top:-9px;left:-9px;width:22px;height:22px;border-radius:50%;background:var(--c);color:#fff;font-size:12px;font-weight:700; display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 2px #fff; } .flow-title { font-weight:700;color:var(--c);font-size:13.5px;line-height:1.25; } .flow-what { font-size:12px;line-height:1.35;color:#334155;overflow-wrap:anywhere; } .flow-tip { position:absolute;left:50%;top:calc(100% + 8px);transform:translateX(-50%) translateY(-4px);width:210px;padding:10px 12px;border-radius:8px; background:#0f172a;color:#f8fafc;font-size:12px;line-height:1.4;opacity:0;pointer-events:none;transition:opacity .18s ease,transform .18s ease;z-index:10; } .flow-tip::before { content:"";position:absolute;top:-6px;left:50%;margin-left:-6px;border:6px solid transparent;border-top:0;border-bottom-color:#0f172a; } .flow-tip em { display:block;margin-top:6px;font-style:normal;color:#93c5fd;font-weight:700; } .flow-node:hover .flow-tip,.flow-node:focus .flow-tip { opacity:1;transform:translateX(-50%) translateY(0); } .tri { margin:14px 0 20px;padding:16px;border-radius:12px;background:#0f172a;color:#e2e8f0; } .tri-head { font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#93c5fd;font-weight:700;margin-bottom:12px; } .tri-row { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px 26px; } .tri-step { position:relative;display:flex;flex-direction:column;gap:4px;padding:12px;border-radius:10px;background:#1e293b;border:1px solid #334155; animation:triGlow 4.2s ease-in-out infinite;animation-delay:var(--d); } .tri-step::after { content:"";position:absolute;top:50%;right:-22px;width:16px;height:3px;background:repeating-linear-gradient(90deg,#60a5fa 0 5px,transparent 5px 8px); background-size:16px 3px;animation:flowDash .7s linear infinite; } .tri-step:last-child::after { display:none; } .tri-step strong { color:#f8fafc;font-size:14px; } .tri-where { font-size:12px;color:#93c5fd; } .tri-tells { font-size:12px;color:#cbd5e1;line-height:1.35; } .tri-num { position:absolute;top:-9px;left:-9px;width:22px;height:22px;border-radius:50%;background:#2563eb;color:#fff;font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center; } @keyframes triGlow { 0%,100% { border-color:#334155;box-shadow:none; } 10% { border-color:#60a5fa;box-shadow:0 0 0 3px rgba(96,165,250,.35); } 22% { border-color:#334155;box-shadow:none; } } .tri-row.tri-5 { grid-template-columns:repeat(5,minmax(0,1fr)); } @media (max-width:820px) { .tri-row,.tri-row.tri-5 { grid-template-columns:repeat(2,minmax(0,1fr)); } .tri-step:nth-child(2n)::after { display:none; } } @media (max-width:520px) { .tri-row { grid-template-columns:1fr; } .tri-step::after { display:none; } } @media (prefers-reduced-motion: reduce) { .tri-step,.tri-step::after { animation:none; } } @keyframes flowPulse { 0%,100% { box-shadow:0 1px 2px rgba(15,23,42,.06); } 8% { box-shadow:0 0 0 4px var(--b),0 0 0 6px var(--c),0 6px 18px rgba(15,23,42,.2); } 18% { box-shadow:0 1px 2px rgba(15,23,42,.06); } } @keyframes flowDash { to { background-position:20px 20px; } } @media (prefers-reduced-motion: reduce) { .flow-node,.flow-node::after { animation:none; } } @media (max-width:820px) { .flow-track { grid-template-columns:repeat(2,minmax(0,1fr)); } .flow-node:nth-child(4n)::after { display:block; } .flow-node:nth-child(2n)::after { display:none; } } @media (max-width:520px) { .flow-track { grid-template-columns:1fr;gap:24px; } .flow-node::after,.flow-node:nth-child(4n)::after,.flow-node:nth-child(2n)::after { display:block;top:auto;bottom:-22px;right:auto;left:50%;width:4px;height:18px;margin:0 0 0 -2px; background:repeating-linear-gradient(180deg,var(--c) 0 6px,transparent 6px 10px);background-size:4px 20px; } .flow-node:last-child::after { display:none; } .flow-tip { position:static;transform:none;width:auto;margin-top:6px;display:none;opacity:1; } .flow-node:focus .flow-tip,.flow-node:hover .flow-tip { display:block;transform:none; } } @media print { .flow-node,.flow-node::after { animation:none; } .flow-tip { display:none; } } Software Asset Management - Knowledge Article Troubleshooting ServiceNow SAM Salesforce CRM integration: subscriptions, consumption or activity missing Find the failing stage, correct its cause, and verify complete recovery. Contents Scope and applicabilityImplementation checklistSymptoms and expected behaviorExecution path and evidence correlationDetailed troubleshooting branchesCause-specific correction and controlled recoveryVerification criteria and recovery evidenceEscalation evidence to collectReferences, processing rules and known limitationsServiceNow Otto / Now Assist troubleshooting 1. Scope and applicability This article covers the current Salesforce CRM direct integration profile (profile type store_salesforce_crm_subscription, label Salesforce CRM Subscription). It runs on the SaaS License Management subflow framework: the profile's subflows call the Salesforce Spoke (sn_sforce_v2_spoke), which reads the Salesforce REST API with SOQL queries. The profile has three capabilities: download subscriptions (mandatory), download consumption and reclaim subscriptions. It does not cover Salesforce Marketing Cloud (a separate integration), the older legacy Salesforce Subscription profile type, or Salesforce single sign-on. Applies to: SAM Professional with the Software Asset Management - SaaS License Management (sn_sam_saas_int) Store application, the Software Asset Management integration with Salesforce CRM application, the Salesforce Spoke and Integration Hub. Behavior described here can differ between application and spoke versions; keep all three current and compare with the release documentation before applying a version-specific conclusion. What the integration reports. User-based licenses (for example Sales Cloud, Service Cloud and Platform) become subscriptions. Add-on licenses assigned through permission sets (permission set licenses) also become subscriptions. Login-based licenses (Customer Community and Partner Community "Logins" licenses) are not subscriptions: they are counted as Daily Unique Logins consumption. 2. Implementation checklist CheckWhere and what to inspectReady conditionApplicationsApplication Manager: SaaS License Management with the optional feature Software Asset Management integration with Salesforce CRM; Salesforce CRM application; Salesforce SpokeAll installed and current for your platform releaseIntegration HubSubscription and Integration Hub pluginsActive; the spoke needs an Integration Hub subscriptionRoles and scopeUser creating the profilesam_integrator or sam_admin; the profile is created in the Global application scopeSalesforce integration userSalesforce Setup > UsersA Salesforce user with a user license. Permissions: View Setup and Configuration and API Enabled. The product's documented list for download also names Customize Application and Manage Connected Apps. Reclaim needs a user with administrator permissionsSalesforce appSalesforce Setup > App Manager > External Client App (older orgs: connected app)Created with OAuth enabled; see the setup steps belowCallback URLSalesforce app OAuth settingshttps://<your-instance>.service-now.com/oauth_redirect.doGrant typeConnection & CredentialAuthorization Code (consumer key, secret and a signed-in token) or Client Credentials on versions that support itIP accessSalesforce app policies, profile login IP rangesRelax IP restrictions on the app, or the ServiceNow instance's outbound addresses allowedProfileSoftware Asset Workspace > License operations > User subscriptions > Direct integration profiles > New > Salesforce CRMProfile type Salesforce CRM Subscription; Salesforce CRM Download Subscriptions selected (cannot be cleared)Optional subflowsSame profileSalesforce CRM Download Consumption for login-based consumption; Salesforce CRM Reclaim Subscription for automatic reclaimConnection & CredentialAlias sn_sforce_v2_spoke.Salesforce (or a child alias per extra org)Connection URL is the org's My Domain or instance URL, not login.salesforce.com or test.salesforce.com; API Version attribute presentSubflows publishedFlow DesignerThe three Salesforce CRM subflows are Published and Active, not customized copiesValidation and publishProfile > Validate Connection, then PublishValidation succeeds; Publish appears only after a successful validationJobsProfile > Scheduled JobsSAM - Refresh Salesforce Subscriptions and, with consumption, SAM - Refresh Salesforce Consumption; active, no duplicates, Run as empty. There is no separate activity jobContentSubscription-identifier contentCurrent, so Salesforce license keys map to software modelsUserssys_user email and user ID versus the Salesforce username and emailResolvable, or user resolution rules existMultiple orgsAlias > Child AliasesOne child alias, connection and credential per additional Salesforce org Register the app in Salesforce Salesforce Setup > App Manager > New External Client App (older orgs: New Connected App). Distribution state: Local.Enable OAuth with the callback URL above.Scopes. Authorization Code: Manage user data via APIs (api) and Perform requests at any time (refresh_token, offline_access). Client Credentials: api only, and enable the Client Credentials flow.Security. Authorization Code: require the secret for the web server flow and the refresh token flow. Client Credentials: clear both. Either grant: clear Require PKCE.Policies. OAuth policies: Permitted Users = Admin approved users are pre-authorized, and select the integration user's profile. For Client Credentials, enter the integration username as the run-as user. Refresh token policy: valid until revoked. IP relaxation: Relax IP restrictions.Copy the Consumer Key and Consumer Secret into the ServiceNow connection and credential. What happens when a setting is missing or wrong Setting, field or propertyIf it is missing or wrongTypical symptomSalesforce integration optional feature not installedProfile type and subflows missingSalesforce CRM is missing from New on Direct integration profilesProfile created outside the Global scopeCannot publishApplication is set to <scope> scope. Switch to 'Global' application scope to publish this integration profile.Connection URL is login.salesforce.com or test.salesforce.comProfile cannot be savedThe Connection URL is incorrect. Delete the connection and recreate it to proceed further.Sandbox org using the production token URLAuthorization is refusedOAuth flow failed. Verify the configurations and try again. Error detail:invalid_grant, user hasn't approved this consumerApp policy not set to admin-approved usersIntegration user not pre-authorizedSame invalid_grant messageLogin IP not trusted or IP relaxation offToken request blockedOAuth flow failed. Verify the configurations and try again. Error detail:invalid grant, ip restrictedSalesforce user without API EnabledEvery API call is refusedAPI is disabled for this User.Salesforce user cannot read users (visibility, sharing)Related user records come back emptyCannot read property "Name" from null; job completes with no subscriptionsAPI Version attribute missing from the connectionRequest path has no versionConnection validation is not successful. The requested resource does not exist. with /services/data//query in the outbound logConnection record inactiveCalls cannot runFailed to download subscription. with no further detailStale or duplicate OAuth tokensSalesforce rejects the sessionSession expired or invalid. Response Received: {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}Refresh token policy not "valid until revoked"Token expiresJobs work for a while, then session errors until the connection is re-authorizedDownload consumption subflow clearedConsumption job not createdNo SAM - Refresh Salesforce Consumption job; login-based licenses not countedReclaim subflow clearedCandidates created, reclaim never runsThe reclamation of user subscriptions will not be successful because the Reclaim subscription checkbox isn't selected on the integration profile.Reclaim user without administrator permissionsSalesforce refuses the changeReclaim fails after a successful validation (validation does not test reclaim)Org edition not matched by content (for example Team or trial)License key plus edition has no product definitionUsers have no matching subscription or software modelSubscription-identifier content out of dateNew license keys cannot mapEntries under Unrecognized Subscription Identifiers; empty software modelSpoke or app outdatedRequired functions or actions missingCannot find function getCachedExclusionRulesByType in object [object Object] or Failed to download subscriptions.Subflow still uses a retired actionFramework receives an undefined valueUnable to match value 'undefined' with field 'profile_type' in table 'samp_sw_subscription_integration'. Expecting type 'string'No matching sys_userSubscription user stays emptyReconciliation consumes no right; candidates go to Attention Requiredcom.snc.samp.disableeventstorage set to trueLogin events are not storedNo event-based usage for Sales Cloud, Meetings and High Velocity SalesDebug properties left onExtra flow and HTTP loggingSlow instance and large logs after troubleshooting 3. Symptoms and expected behavior SymptomFirst branchHealthy evidence to seekSalesforce option, subflows or jobs missingAApplications installed, subflows published, jobs activeCannot publish, URL rejected, or profile back in DraftBStatus Published with its jobsValidate Connection failsCValidation successfulOAuth flow failed (invalid_grant, ip restricted)DToken obtained and Validate succeedsSession expired, INVALID_SESSION_ID, connection inactiveEFresh token; connection activeAPI is disabled for this User. or empty related usersFUsers query returns usersSandbox, My Domain or wrong org URLGRequests go to the intended orgSeveral Salesforce orgsHOne alias and profile per orgRefresh job failedICompleted row in the job logFewer subscriptions than Salesforce showsJOne subscription per user license and permission set licenseLicense not mapped or software model emptyKModel per license key and editionUser empty or wrongLIntended sys_user linkedLast activity blank or staleMLastLoginDate on the subscriptionConsumption missing or consumption job failedNDaily Unique Logins and monthly logins populatedNo reclamation candidatesOCandidate for a known inactive userReclaim failsPUser deactivated or license assignment removedTimeouts, limits, large orgsQNormal run durationProblems after clone, upgrade or repairRValidated profile, compatible versions A healthy download creates one subscription per active Salesforce user license and one per active permission set license assignment. Deactivated Salesforce users do not appear, and neither do users on login-based licenses. 4. Execution path and evidence correlation Hover or tap a step to see what breaks there; click it to open the matching branch.SetupConnectionCollectionMatchingWriteDownstream Subscription downloaddaily 1Published profileGlobal scope, validated, jobs createdBreaks here: No Publish, URL rejected, back in DraftOpen branch B →2Refresh jobSAM - Refresh Salesforce SubscriptionsBreaks here: Failed to download subscriptions; already runningOpen branch I →3OAuth tokenExternal Client App, Authorization Code or Client CredentialsBreaks here: invalid_grant, ip restricted, INVALID_SESSION_IDOpen branch D →4Org URL and API versionMy Domain URL and /services/data/<version>Breaks here: Requested resource does not exist; wrong orgOpen branch G →5UsersActive users, login-based licenses excludedBreaks here: API is disabled for this User; Name from nullOpen branch F →6Permission set licensesActive assignees become subscriptionsBreaks here: Assignee empty; missing add-on licensesOpen branch J →7License and editionLicense key + org edition, e.g. SFDC_SALES_CLOUD_ENTERPRISEBreaks here: Unmatched edition, unrecognized identifierOpen branch K →8UserUsername to sys_user email or user IDBreaks here: Empty or wrong userOpen branch L →9Upsert and cleanupDeactivate, upsert, delete users not returnedBreaks here: Missing or vanished subscriptionsOpen branch J →10Last loginLastLoginDate; events for 3 productsBreaks here: Blank or stale activityOpen branch M → Consumption and reclaimdaily 1Consumption jobSAM - Refresh Salesforce ConsumptionBreaks here: Job missing; subflow not selectedOpen branch N →2EntitlementsUsage entitlements and user licensesBreaks here: INVALID_FIELD MonthlyLoginsEntitlementOpen branch N →3Daily Unique LoginsCommunity login licenses counted per user per dayBreaks here: Missing consumption summaryOpen branch N →4CandidatesReclamation rules and candidate statesBreaks here: No candidates, Attention RequiredOpen branch O →5ReclaimDeactivate the user or remove the permission set licenseBreaks here: Admin rights missing; not tested by validationOpen branch P →6After clone or upgradeTokens, applications and subflows restoredBreaks here: Missing buttons, stale tokensOpen branch R → Subscription download path Daily job SAM - Refresh Salesforce Subscriptions → profile and OAuth token → organization type → Service Cloud check → Look up Users (active users, 2,000-row pages) → upsert by license key and edition → Look up Permission Set License assignments → upsert → login events → delete users not returned → reclamation rules → usage summary Consumption and reclaim path Daily job SAM - Refresh Salesforce Consumption → usage-based entitlements and user licenses → Daily Unique Logins and monthly logins → consumption summary and, for candidates, Reclamation candidate → Salesforce CRM Reclaim Subscription → deactivate user or remove permission set license assignment StageRecord or source to inspectBehaviorJobsProfile > Scheduled JobsCreated on publish: a download job, plus a consumption job when selected. Daily at a random time between 23:00 and 04:00 by defaultJob resultProfile > Scheduled Job Results (sam_saas_job_log), red banner on the profileStatus in progress, completed or failed; the message holds the errorConcurrencysys_triggerA second run stops with An instance of '<job>' is already running. Please wait till it completes in the system log and writes no job resultConnectionAlias sn_sforce_v2_spoke.Salesforce → HTTP connection → OAuth credentialOAuth only; the connection URL is the org's My Domain or instance URLOrg checkSpoke actionsReads the org edition (for example Enterprise) and probes whether Service Cloud is enabledUsersLook up UsersSOQL on User with IsActive=true, excluding login-based license keys, 2,000 rows per page followed through nextRecordsUrlLicense identifierSubscription identifierFor base licenses the key is combined with the org edition (for example SFDC_SALES_CLOUD_ENTERPRISE); other keys are used as isPermission set licensesLook up Permission Set License for UsersActive assignees become subscriptions; the assignment ID is stored so reclaim can remove itLast activitySubscription last_activityLastLoginDate of the user; login events are written only for Sales Cloud, Salesforce Meetings and High Velocity SalesCleanupProfile subscriptionsExisting rows deactivated before the pull; rows not returned are deleted afterwards; on failure all rows are reactivatedConsumptionsam_saas_consumption_summaryDaily Unique Logins from usage-based entitlements; monthly logins from user licenses when a monthly entitlement existsReclaimReclaim subflowDeactivates the Salesforce user, or removes the permission set license assignment; on success the subscription is removed Correlate one execution before deciding a cause Record the job, the profile, start and end in UTC, and the versions of SaaS License Management, the Salesforce CRM application and the Salesforce Spoke.Open the profile's Scheduled Job Results (sam_saas_job_log) and read the message.Open Flow Designer > Executions for the Salesforce CRM subflow at that time and find the failing step.Open System Logs > Outbound HTTP Requests filtered on URL contains salesforce; read status and response body. The scheduled job can show Failed while the flow execution looks successful, so always read the outbound log.For deeper tracing, temporarily set com.snc.process_flow.reporting.level to All, glide.outbound_http_log.override to true and glide.outbound_http_log.override.level to all, rerun once, then set them back. 5. Detailed troubleshooting branches Each branch lists the symptoms with the exact text the integration writes, where to look, each cause with its fix, and how to confirm recovery. Identifiers shown as <org>, <scope> or <job> are placeholders; keep the real values private. Start every investigation here 1Job resultProfile > Scheduled Job Results (sam_saas_job_log)Status and message; red banner on the profile 2Flow executionFlow Designer > Executions, Salesforce CRM subflowThe exact step and error 3Outbound HTTPURL contains salesforceStatus, path and Salesforce error body (job can show Failed while the flow looks fine) 4Pick a branchMatch the message belowinvalid_grant → D, INVALID_SESSION_ID → E, API disabled → F, URL → G Start every investigation the same way. (1) The profile's Scheduled Job Results (sam_saas_job_log) or the red error banner on the profile. (2) Flow Designer > Executions for the Salesforce CRM subflow at the same time. (3) System Logs > Outbound HTTP Requests with URL containing salesforce. Read the response body, not only the status code. A. Salesforce option, applications, subflows or jobs are missingB. The profile cannot be saved or published, or returns to DraftC. Validate Connection failsD. OAuth authorization failsE. Session expired, token problems or connection inactiveF. Salesforce refuses the request or related user data is emptyG. Sandbox, My Domain or the wrong Salesforce orgH. Several Salesforce orgsI. The refresh job failsJ. Job completes, but subscriptions are missingK. License not mapped or software model is emptyL. Subscription user is empty or wrongM. Last activity is blank or staleN. Consumption is missing or the consumption job failsO. No reclamation candidates for SalesforceP. Reclaim fails or does not change SalesforceQ. Timeouts, limits and large orgsR. Problems after a clone, upgrade or repair A. Salesforce option, applications, subflows or jobs are missingThis action's definition is missing Symptoms. Salesforce CRM is not offered when creating a direct integration profile.A subflow step shows This action's definition is missing, or the Salesforce CRM subflows are absent in Flow Designer.No SAM - Refresh Salesforce Subscriptions job after publishing. Where to check. Application Manager > SaaS License Management > optional features; installed applications for the Salesforce CRM application and the Salesforce Spoke; the profile's Scheduled Jobs list. Causes and fixes. Optional feature not selected. In Application Manager open SaaS License Management, choose Install optional features and select Software Asset Management integration with Salesforce CRM.Integration Hub or spoke missing. Install the Salesforce Spoke and confirm the Integration Hub subscription.Core UI create option inactive. When Software Asset Workspace is installed, create the profile from the workspace: License operations > User subscriptions > Direct integration profiles > New.Missing action definitions or jobs inactive after an upgrade. Update SaaS License Management, the Salesforce CRM application and the Salesforce Spoke together; activate any inactive job and stagger its time.Jobs not created. Jobs are created only after successful validation and publish (B). Verify. The profile shows Published with its Scheduled Jobs, and the three subflows are Published. B. The profile cannot be saved or published, or returns to DraftThe Connection URL is incorrect. Delete the connection and recreate it to proceed further.The connection record is not associated with the Connection and credential field. Create the connection to proceed further.The credential record is not associated with the Connection and credential field. Delete the connection and recreate it to proceed further.Application is set to <scope> scope. Switch to 'Global' application scope to publish this integration profile. Symptoms. The Connection URL is incorrect. Delete the connection and recreate it to proceed further.The connection record is not associated with the Connection and credential field. Create the connection to proceed further.The credential record is not associated with the Connection and credential field. Delete the connection and recreate it to proceed further.Application is set to <scope> scope. Switch to 'Global' application scope to publish this integration profile.No Publish button, or a published profile is back in Draft and its jobs stopped. Where to check. Profile form (Status, Connection & Credential, subflow checkboxes); the application scope picker; the connection record. Causes and fixes. Connection URL is a login host. The URL must be your org's My Domain or instance URL (for example https://<org>.my.salesforce.com). A URL containing login.salesforce.com or test.salesforce.com is rejected. Delete the connection and recreate it with the org URL.No connection or credential. Open the alias from the profile and use Create New Connection & Credential.Wrong application scope. Switch to Global and publish.Not validated. Publish appears only after Validate Connection succeeds (C).Edited after publish. Changing the connection, credentials or subflow options returns the profile to Draft. Validate and publish again, then check Scheduled Jobs for stale or duplicate jobs.Connection changed without re-validation. After switching to a child alias or recreating a connection, validate and publish again even if the status still shows Published. Verify. Status Published; the download job (and consumption job if selected) listed. C. Validate Connection failsConnection validation is not successful. Please check connections and credentials and try again.Connection validation is not successful. The requested resource does not exist.Connection validation is not successful. Invalid inputs passed to action. Please check the action.Connection validation failed because of an unexpected token. Verify your connection details and retry.Connection validation failed because the URL entered is invalid. Verify your connection details and retry. Symptoms. Connection validation is not successful. Please check connections and credentials and try again.Connection validation is not successful. The requested resource does not exist.Connection validation is not successful. Invalid inputs passed to action. Please check the action.Connection validation failed because of an unexpected token. Verify your connection details and retry.Connection validation failed because the URL entered is invalid. Verify your connection details and retry.com.snc.process_flow.exception.OpException: Unable to load connection with alias ID: <id> Where to check. Flow Designer execution of the validation; the outbound log (URL, status, body); the connection's attributes. Causes and fixes. API version missing. The requested resource does not exist. with a request such as /services/data//query/?q=Select+OrganizationType+from+Organization (no version number) means the API Version attribute is missing from the connection. Repair the Salesforce Spoke application, confirm the API Version attribute on the connection (connection attributes list) and the connection record, then validate again.What validation tests. It runs the organization-type check, the Service Cloud probe, the users query and the permission set license query for download, and the usage-based entitlement query for consumption. It does not test reclaim, so a successful validation does not prove reclaim works.Credential, token or permission problems. See D, E and F.Shipped alias deleted and recreated. The profile type default points to the shipped alias sn_sforce_v2_spoke.Salesforce; a deleted and recreated alias leaves a dead reference. Restore the shipped alias (revert the deletion so it is replaced on upgrade, repair the spoke), attach the credential to it and validate.Missing spoke actions. After a partial update, update SaaS License Management and the Salesforce Spoke together.Troubleshoot button. Where Now Assist for SAM is available, use Troubleshoot on the validation error banner (section 10). Verify. Validation successful and the Publish button appears. D. OAuth authorization failsOAuth flow failed. Verify the configurations and try again. Error detail:invalid_grant, user hasn't approved this consumerOAuth flow failed. Verify the configurations and try again. Error detail:invalid grant, ip restricted Symptoms. OAuth flow failed. Verify the configurations and try again. Error detail:invalid_grant, user hasn't approved this consumerOAuth flow failed. Verify the configurations and try again. Error detail:invalid grant, ip restrictedThe sign-in popup never appears, or Create and Get OAuth Token returns an error. Where to check. The Salesforce app's OAuth policies and callback URL; System OAuth > Application Registry entry for Salesforce; the integration user's login IP ranges. Causes and fixes. User not pre-authorized. In the Salesforce app policies set Permitted Users to Admin approved users are pre-authorized and select the integration user's profile.Sandbox org using the production token URL. In System OAuth > Application Registry, open the Salesforce record and set the Token URL to https://test.salesforce.com/services/oauth2/token for sandboxes (production uses https://login.salesforce.com/services/oauth2/token). Then use Get OAuth Token again. This is the token URL in the registry; the Connection URL on the connection is still the org's My Domain URL (G).IP restriction. In the app, set IP Relaxation to Relax IP restrictions, or add a trusted IP range for the OAuth web server flow, or allow the instance's outbound addresses in the integration user's profile.Callback URL mismatch. The callback URL on the Salesforce app must match the redirect URL on the credential, https://<your-instance>.service-now.com/oauth_redirect.do. If the redirect URL did not populate on your spoke version, enter it manually and update the spoke.Client Credentials grant. No popup appears for Client Credentials. Enable the flow on the app, enter the run-as user and clear the PKCE and secret requirements as listed in section 2.Popup blocked. Allow popups for the instance and retry. Verify. Create and Get OAuth Token completes and Validate Connection succeeds. E. Session expired, token problems or connection inactiveSession expired or invalid. Response Received: {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}Session expired or invalid.Failed to download subscription.Failed to download consumption. Symptoms. Session expired or invalid. Response Received: {"message":"Session expired or invalid","errorCode":"INVALID_SESSION_ID"}Session expired or invalid.Failed to download subscription. or Failed to download consumption. with no thrown error.Jobs worked for a while and then started failing. Where to check. The credential's token records (OAuth credentials list); the connection record's Active flag; the Salesforce app's refresh token policy. Causes and fixes. Expired, duplicate or stale token. Open the OAuth credential for the profile, check how many tokens exist, delete them, and obtain a new one through Get OAuth Token; rerun the job.Connection inactive. Open the connection record and set Active to true.Refresh token expires. In the Salesforce app set the refresh token policy to valid until revoked; re-authorize the connection when a token has already expired. Update the Salesforce Spoke to the latest version for refresh-token handling.Credentials changed or integration user changed. Re-enter the consumer key and secret, get a new token and validate.Job shows Failed but the flow looks fine. Read the outbound log response body; the error is often an expired session on the first call. Verify. The users request returns 200 and the next download completes. F. Salesforce refuses the request or related user data is emptyAPI is disabled for this User.Bad Request: Please verify the request URI and headers.The requested resource could not be found.Cannot read property "Name" from null Symptoms. API is disabled for this User.Bad Request: Please verify the request URI and headers.The requested resource could not be found.Cannot read property "Name" from null, with the job completing but no subscriptions created. Where to check. The integration user's profile and permission sets; the outbound response body; Salesforce Setup > Users. Causes and fixes. API Enabled missing. Grant API Enabled (and View Setup and Configuration) to the integration user's profile or a permission set.User visibility. The permission set license query reads the assigned user. If the API user cannot read those users (field-level visibility, a private organization-wide default on User, or sharing), the user object comes back empty and the script fails with Cannot read property "Name" from null. Confirm Read access to User and field visibility for Name and Email, grant View All Users if sharing hides users, then delete the cached token, get a new one and rerun.Reduced permission set. The documented list for download names View Setup and Configuration, API Enabled, Customize Application and Manage Connected Apps. A read-only set can work for monitoring, but if calls fail with permission errors, compare against the full list for your release.Reclaim permissions. Reclaim needs a user with administrator permissions (P).Wrong request path. Bad Request or The requested resource could not be found. points to the API version or URL (C1, G). Verify. The users and permission-set-license requests return 200 with records. G. Sandbox, My Domain or the wrong Salesforce org Symptoms. Data from the wrong org; a sandbox profile that cannot authorize; the connection URL is rejected; requests reach login.salesforce.com. Where to check. The connection's Connection URL; the OAuth Application Registry Token URL; the outbound log host. Causes and fixes. Connection URL. Use the org's My Domain or instance URL: https://<org>.my.salesforce.com for production, or the sandbox form https://<org>--<sandbox>.sandbox.my.salesforce.com. Do not use login.salesforce.com or test.salesforce.com here.Token URL. Sandboxes need https://test.salesforce.com/services/oauth2/token in the Application Registry (D2); production uses https://login.salesforce.com/services/oauth2/token.Custom domain changes. After a My Domain change, update the Connection URL and re-authorize.One org per alias. Do not reuse an alias for two orgs (H). Verify. The outbound log shows the intended org host, and the first pull returns that org's users. H. Several Salesforce orgs Symptoms. The second profile fails validation, shows the first org's users, or ignores the alias selected on the profile. Where to check. Each profile's Connection & Credential; the parent alias's Child Aliases list. Causes and fixes. One alias per org. The first profile uses the parent alias sn_sforce_v2_spoke.Salesforce. For each additional org open the alias, go to Child Aliases > New (switch to the alias's application scope if New is missing), then use Create New Connection & Credential on the child alias and select it on the profile.Child alias ignored on older versions. Update SaaS License Management; until then keep one org on the parent alias.Same consumer key reused. Use a separate app and credential per org. Verify. Each profile's requests go to its own org and its subscriptions belong to that org. I. The refresh job failsFailed to download subscriptions.Failed to download consumption.Cannot find function getCachedExclusionRulesByType in object [object Object]The subflow couldn't find an action it is trying to use. Make sure you are on the latest version of the store app the subflow depends on.You must add integration_profile as an input. Symptoms. Scheduled Job Results shows Failed with: Failed to download subscriptions.Failed to download consumption.Cannot find function getCachedExclusionRulesByType in object [object Object]The subflow couldn't find an action it is trying to use. Make sure you are on the latest version of the store app the subflow depends on.You must add integration_profile as an input.Unable to match value 'undefined' with field 'profile_type' in table 'samp_sw_subscription_integration'. Expecting type 'string'Upsert User Subscription using Subscription Identifier requires either User principal name or External user id Where to check. The job result message; the failing step in the Flow Designer execution; the outbound log. Causes and fixes. Underlying API error. Failed to download subscriptions. is a summary; open the flow execution and fix the step error (D, E, F, Q).Outdated application. The missing-function and missing-action messages mean the SaaS License Management, Salesforce CRM application or spoke is behind. Update all three, then rerun.Subflow uses a retired action. The profile_type undefined message appears while the Salesforce calls return 200: the subflow still references a retired "Upsert User Subscription" action. Update the subflow to the current action, or create a new profile from the updated application, republish and rerun.Customized subflow. Revert to the out-of-box subflow.Job linked to a missing profile. No integration profile associated with scheduled job <id>: delete the orphan job and republish the profile. Verify. The next run shows Completed and new or updated subscriptions. J. Job completes, but subscriptions are missing Symptoms. Fewer subscriptions than Salesforce shows; specific users or license types missing; users disappear after a run. Where to check. Outbound log for the User and PermissionSetLicenseAssign queries; the user in Salesforce (active, license, profile); exclusion rules on the profile. Causes and fixes. Inactive users. Only active users are returned. A user deactivated in Salesforce loses the subscription on the next pull, which is expected (including after a reclaim).Login-based licenses. Users on Customer Community, Partner Community, Overage Customer Portal, External Apps and Channel Account login licenses are not subscribed; they are counted as consumption (N).User types. Older versions pulled only standard and Chatter Free users. Update the application so portal and partner users are covered, and confirm the profile query is not filtered by user type.Permission set licenses. These become subscriptions only for active assignees. If the API user cannot read assignees, see F2.Edition not matched. If the org edition is not one that content covers (K), the user is not matched to a product.Exclusion rules. Subscription Identifier Exclusion Rule and Subscription User Exclusion Rule silently drop matching rows. Review both related lists.Users sharing an email. Older versions collapsed users who share an email address into one subscription because the email was used as the user principal name; update the application (the current version uses the unique username).Large orgs and timeouts. See Q. Verify. Subscription counts by license match Salesforce Setup > Company Information > User Licenses, and a previously missing user appears after the next run. K. License not mapped or software model is emptyNo record found in Look Up Record action Symptoms. Subscriptions show a raw identifier and no software model; entries under Unrecognized Subscription Identifiers; Sales Cloud and Service Cloud users are mixed up; No record found in Look Up Record action in a subflow. Where to check. Profile > Unrecognized Subscription Identifiers; software models for Salesforce; content download status. Causes and fixes. Identifier format. For base licenses the integration builds <license key>_<ORG EDITION>, for example SFDC_SALES_CLOUD_ENTERPRISE, SFDC_SERVICE_CLOUD_PROFESSIONAL, AUL_ENTERPRISE (Platform). Content provides these for the supported editions (Base, Developer, Enterprise, Performance, Professional, Unlimited). An edition without content has nothing to match.Content out of date. Download the latest subscription-identifier content; permission set licenses and add-on licenses use their own keys.Unknown identifier. Open it under Unrecognized Subscription Identifiers, set the correct software model and save; related subscriptions update. Request a content update for the key.Sales versus Service. Users are classed as Service Cloud when the org has Service Cloud enabled and the user has the support-user permission; a failed Service Cloud probe classes everyone as Sales Cloud. Check the probe result in the flow execution.Duplicate models. Several matching models leave the model empty; remove the duplicates. Verify. Every subscription shows its Salesforce model and Unrecognized Subscription Identifiers is empty. L. Subscription user is empty or wrong Symptoms. Subscriptions with a username but no User; records on the Subscriptions without user page; candidates in Attention Required. Where to check. sys_user email and user ID versus the Salesforce username and email; User resolution rules; sn_itam_samp.user_resolution_exclude_table. Causes and fixes. No exact match. The user principal name (the Salesforce username) is matched to sys_user Email, or its local part to User ID. A different case, domain or alias prevents a match. Align the data or add a user resolution rule (Software Asset Workspace > License operations > User subscription > User resolution rules), then rerun the refresh job.Same email in several user tables. List the extra tables in sn_itam_samp.user_resolution_exclude_table (comma-separated).Rules on other fields ignored (older versions). Update SaaS License Management.Manual edits overwritten. The User field is recalculated each run; fix the source data or the rule. Verify. The subscription shows the intended user and leaves the Subscriptions without user page. M. Last activity is blank or stale Symptoms. Salesforce subscriptions show no last activity, or it does not move although users log in daily; usage does not appear for some licenses. Where to check. The user's last login in Salesforce; the subscription's last activity; samp_saas_feature_usage for login events. Causes and fixes. How activity works. There is no separate activity subflow or job. Last activity is the user's LastLoginDate, written by the download job. A user who has never logged in has no activity.Events only for three products. Login events are stored only for Sales Cloud, Salesforce Meetings and High Velocity Sales. Other licenses get last activity but no event-based usage.Event storage disabled. If com.snc.samp.disableeventstorage is true, login events are not stored.Download not healthy. Activity updates only when the download completes (I).Never cleared. Last activity only moves forward. Verify. A user who logged in today shows today's date after the next download. N. Consumption is missing or the consumption job failsINVALID_FIELD: No such column 'MonthlyLoginsEntitlement' on entity 'UserLicense' Symptoms. INVALID_FIELD: No such column 'MonthlyLoginsEntitlement' on entity 'UserLicense'No SAM - Refresh Salesforce Consumption job; Daily Unique Logins missing for community licenses.Community "Logins" licenses do not appear as subscriptions. Where to check. Profile subflow checkboxes; consumption summary records; the outbound requests for TenantUsageEntitlement and UserLicense. Causes and fixes. Deprecated Salesforce fields. Salesforce retired the monthly-login fields on the user license object; the same data is available through usage-based entitlements. Update the Salesforce CRM application and the Salesforce Spoke, verify the installed versions, and rerun.Consumption not enabled. Select Salesforce CRM Download Consumption, validate and publish; the consumption job is created.Login licenses are consumption by design. Customer and Partner Community login licenses are measured as Daily Unique Logins (one count per user per day), not as subscriptions.Entitlement ended or unmatched. Expired usage entitlements and entitlements without a product definition are skipped; update content.Monthly logins skipped. Monthly logins are recorded only when a monthly entitlement exists.Expired contracts. Login-based licenses on expired contracts can cause problems in older versions; update the application. Verify. The consumption summary shows current Daily Unique Logins for the expected licenses. O. No reclamation candidates for Salesforce Symptoms. Inactive users get no removal candidate. Where to check. The Salesforce reclamation rules; subscriptions' user and last activity; existing candidates. Causes and fixes. Last activity blank. Candidates depend on LastLoginDate; fix M first.Rule configuration. Confirm Create reclamation candidate is checked, the threshold is set and the subscription condition matches. Rules are created automatically per product on download.User empty. With Notify user on, a candidate without a user goes to Attention Required; fix L.Wrong job. SAM - Identifying New Reclamation Candidates does not create SaaS subscription candidates; they come from the profile's download run.Candidate states. Attention Required, Ready, Awaiting User, Awaiting Approval, Awaiting Revocation, Closed Complete, Closed Skipped, Closed Canceled (cancelled when activity is detected). A subscription already in a candidate is not selected again. Verify. A known user inactive beyond the threshold receives one candidate. P. Reclaim fails or does not change SalesforceThe reclamation of user subscriptions will not be successful because the Reclaim subscription checkbox isn't selected on the integration profile.You must set Reclaim Subscription Subflow on the Integration Profile.Failed to reclaim subscription.Following mandatory input field(s) cannot be left blank- Record Id Symptoms. The reclamation of user subscriptions will not be successful because the Reclaim subscription checkbox isn't selected on the integration profile.You must set Reclaim Subscription Subflow on the Integration Profile.Failed to reclaim subscription.Following mandatory input field(s) cannot be left blank- Record IdCandidate in Attention Required with a red banner. Where to check. The candidate's banner; Flow Designer execution of Salesforce CRM Reclaim Subscription; the integration user's permissions; the outbound request and its status. Causes and fixes. Reclaim not configured. Select Salesforce CRM Reclaim Subscription, validate and publish.Not covered by validation. Validation does not test reclaim, so the first failure appears at reclaim time. Test with one candidate.Permissions. Reclaim needs a Salesforce user with administrator permissions. A permission error here after a successful validation points to the integration user.What reclaim does. It deactivates the Salesforce user (the user is not deleted) or removes the permission set license assignment. Both expect HTTP 204. A user deactivated this way disappears from later pulls (J1).Missing record ID. A blank Salesforce record or assignment ID means the subscription lacks the stored identifier; rerun the download so it is repopulated.Permission set license cannot be removed (older versions). Update the Salesforce CRM application; before that, deactivate the user instead. Verify. The user is deactivated or the assignment removed in Salesforce, the candidate closes and the subscription is removed on the next run. Q. Timeouts, limits and large orgsTransaction cancelled Symptoms. Job stuck In progress or Transaction cancelled; very long runs on large orgs; Salesforce error text about request limits; HTTP 5xx. Where to check. Job duration; flow execution; outbound log statuses and the Salesforce error message; Salesforce Setup > Company Information for API usage. Causes and fixes. Very large orgs. Download runs for hundreds of thousands of subscription records can run for many hours or time out in older versions. Update SaaS License Management and the spoke, let the next scheduled run complete, and avoid overlapping runs.Initial pull time. Fewer than 100 users takes minutes, 100 to 5,000 about 15 minutes, and above 5,000 more than an hour.Salesforce limits. Salesforce reports its own error text when an org exceeds limits (for example API request limits). Read the response body and check usage in Salesforce; stagger other integrations that share the org.Flow reporting overhead. Keep com.snc.process_flow.reporting.level at OFF for production; com.snc.process_flow.reporting.datastream.item.lastn can be set to 10 to limit retained items.Salesforce maintenance (503). Check Salesforce status and rerun later. Verify. The run completes in its normal duration. R. Problems after a clone, upgrade or repair Symptoms. Profile form missing fields or tabs; validation or publish buttons missing after an upgrade; a cloned instance still points at the production org; tokens fail after a clone. Where to check. Installed versions; customizations of SaaS License Management; the profile's connection and tokens. Causes and fixes. Form damaged by customization. Check customized files for the profile form, set them to be replaced on upgrade, then repair only SaaS License Management.Validate or Publish missing after an upgrade. The upgrade fix scripts run as scheduled jobs; check sys_trigger for the fix jobs and let them finish.Tokens and connections after a clone. Tokens and connections are instance-specific. After a clone, re-run Get OAuth Token with a sandbox Salesforce org and its own app, or disable the jobs on the cloned instance.Application versions out of step. Update SaaS License Management, the Salesforce CRM application and the spoke together, and confirm they are supported on your platform release.Retired actions. After a patch, a subflow can keep a retired action (I3). Verify. Validation succeeds and the jobs complete in the target instance. 6. Cause-specific correction and controlled recovery Validation, publish, downloads, consumption runs and reclaim are write operations; obtain approval before running them in production. Established causeCorrection ownerControlled recovery and stop conditionApplications, spoke or subflow stateServiceNow platform administratorInstall or update, validate, publish. Stop if subflows still fail with missing actionsSalesforce app, OAuth or IP policySalesforce administrator and integration ownerFix the app policies, get a new token, validate. Stop if authorization still failsConnection URL, token URL or API versionSAM integration ownerCorrect the connection, validate, run onceProfile Draft, jobs missing or duplicatedSAM integration ownerValidate, publish, check Scheduled JobsCoverage, mapping or exclusionsIntegration owner and Salesforce administratorFix permissions, content or rules, run once, compare counts by licenseUser resolutionSAM administratorFix data or rules, rerun, verify positive and negative examplesConsumptionSAM integration ownerUpdate applications, select the subflow, run onceReclaimSAM process owner and Salesforce administratorGrant permissions, reclaim one candidate firstClone, upgrade, repairPlatform ownerRestore out-of-box components and connection, validate, run once 7. Verification criteria and recovery evidence Verification layerEvidence requiredWhat does not satisfy itConfigurationPublished profile, valid org URL, current token, subflows PublishedA Published status after an unvalidated connection changeExecutionCompleted sam_saas_job_log row and a successful flow executionA scheduled job that existsCoverageSubscriptions per license match Salesforce; permission set licenses presentTotal counts that ignore login-based licensesMatchingModel and user on every subscriptionRaw identifiers as display namesActivityRecent last login on a known active userBlank activity read as inactivityConsumptionDaily Unique Logins updatedSubscriptions onlyReclaimOne reclaimed user changed in SalesforceCandidate closed without the Salesforce change 8. Escalation evidence to collect Versions of SaaS License Management, the Salesforce CRM application, the Salesforce Spoke and the platform; recent upgrades, repairs or clones.Profile status, selected subflows, alias (parent or child), grant type, and whether the org is production or sandbox.Job name, run time in UTC, sam_saas_job_log status and message.The failing Flow Designer execution step and error.Outbound log entries: URL path with the org replaced by a placeholder, status and Salesforce error body.Counts by license in Salesforce and in ServiceNow; one missing user's license and profile (no names).Steps already taken and results. Never include consumer secrets, tokens or user names in shared evidence. 9. References, processing rules and known limitations Key records Jobs: SAM - Refresh Salesforce Subscriptions, SAM - Refresh Salesforce Consumption.Subflows: Salesforce CRM Download Subscriptions, Salesforce CRM Download Consumption, Salesforce CRM Reclaim Subscription.Spoke: alias sn_sforce_v2_spoke.Salesforce; SOQL on User, PermissionSetLicenseAssign, UserLicense and TenantUsageEntitlement.Data: samp_sw_subscription_profile, samp_sw_subscription, sam_saas_job_log, sam_saas_consumption_summary, samp_saas_feature_usage, samp_sw_unrecognized_subscription_identifier, samp_discovered_user, exclusion rules samp_sw_subscription_id_excl_rule and samp_sw_subscription_user_excl_rule. System properties com.snc.process_flow.reporting.level — All while tracing a run, OFF otherwise.com.snc.process_flow.reporting.datastream.item.lastn — limit retained data-stream items.glide.outbound_http_log.override and glide.outbound_http_log.override.level — temporary detailed outbound logging; turn off afterwards.com.snc.samp.disableeventstorage — when true, login events are not stored.sn_itam_samp.user_resolution_exclude_table — sys_user extended tables excluded from user matching. Processing rules to remember Jobs exist only for a validated, published profile; editing the profile returns it to Draft.Only active Salesforce users and active permission set license assignees become subscriptions; login-based licenses are consumption.Base license identifiers include the org edition.Each download deactivates, upserts and deletes rows not returned; a failed run reactivates everything.Last activity is LastLoginDate; there is no separate activity job.Reclaim deactivates the user or removes the permission set license assignment; validation does not test it. Known limitations Orgs on editions without content need manual mapping.Login events are stored for only three products.API request limits and exact Salesforce-side limits are governed by your Salesforce edition and are not documented here. Documentation ServiceNow product documentation for your release: Integrate with Salesforce CRM under Software Asset Management > SaaS License Management.Salesforce Help: External Client Apps and OAuth settings, and login IP restrictions.ServiceNow: Configure Now Assist for SAM 10. ServiceNow Otto / Now Assist troubleshooting ServiceNow Otto for Software Asset Management (formerly Now Assist for SAM, application sn_now_assist_sam) adds generative AI help for SaaS integrations. Use it to explain a failed Salesforce CRM job or a failed connection validation, and to propose user resolution rules when imported subscriptions do not match users. Treat its output as a starting point: confirm every recommendation against the branch in section 5 before changing configuration. How Troubleshoot works 1Failure bannerProfile in Software Asset WorkspaceFailed job or failed Validate Connection 2TroubleshootButton on the error bannerDebug-level validation, ~15–20 s 3Read guidanceError Summary + Suggested ResolutionsMap each item to a section 5 branch 4Fix and validateApply the fix yourselfValidate Connection again; rerun Troubleshoot if needed 5Publish or runPublish new / run existing jobConfirm with section 7 What the AI skills do SkillWhat it doesWhen it runsDefault model providerError log summarizationReads the logs of the failed job or validation and produces an Error SummaryWhen you click TroubleshootAWS Claude (from Australia Patch 4)Error resolution recommendationTurns the summarized errors into Suggested Resolutions, one per errorChained after the summaryAWS Claude (from Australia Patch 4)SaaS user resolutionProposes user resolution rules that map the Salesforce username to sys_userAutomatically after a subscription download, when prerequisites are metAzure OpenAI The model provider can be changed per skill in the Now Assist Admin console; Now LLM Service can still be selected manually. Before you start Installed and licensed. Otto for SAM (sn_now_assist_sam) is installed and your subscription includes generative AI for SAM. Confirm entitlement with your account team. The capability is not available, or is limited, in in-country, FedRAMP, NSC DOD IL5, IRAP-Protected, self-hosted, regulated-market and other restricted environments.Skills active and displayed. Go to All > Now Assist Admin > Skills, choose the SAM workflow group, open each skill and confirm it is active with Display turned on. To activate: Activate skill > Save and continue > Select display (turn on Display, add roles if needed) > Review and activate > Activate. Skills are active by default from Zurich Patch 4, but a skill you deactivate stays off until reactivated.Roles. sam_integrator to use Troubleshoot and SaaS user resolution; skills are available to sam_user and sam_admin by default. If an administrator changed the skill roles, the custom roles apply instead. Activating or configuring skills needs the Now Assist administrator role.Software Asset Workspace. Troubleshoot appears in the workspace profile form, not in the classic form.Privacy. Inputs and outputs are processed in ServiceNow's generative AI environment and may be processed by the selected third-party model provider. Review your organization's AI data-handling settings and the Now Assist opt-out options before use. Use Troubleshoot on a failed job or validation Go to Workspaces > Software Asset Workspace > License operations > User subscription > Direct integration profiles and open the Salesforce CRM profile.Existing profile, failed scheduled job: the profile shows an error banner for the failed job. New profile or changed connection: click Validate Connection; a failure shows an error banner.Click Troubleshoot on the banner. Otto runs the validation with debug-level logging, summarizes the errors and proposes resolutions. Expect a response in around 15–20 seconds.Read the Error Summary and Suggested Resolutions on the profile. Map each resolution to the matching branch in section 5 and follow that branch's fix and verify steps.Apply the fix yourself (Troubleshoot never changes connection or integration configuration), then click Validate Connection again. Click Troubleshoot again to regenerate guidance if validation still fails.When validation succeeds, Publish a new profile, or run the job once for an existing profile and confirm the result with section 7. What Troubleshoot writes. The error summary and suggested resolutions are stored on the integration profile, and each run is kept in a troubleshooting log shown as a related tab on the profile. It does not modify subscriptions, credentials or jobs. The AI indicator may not appear on these fields when the system rather than the AI last updated them. What it covers. Runtime failures of the integration's scheduled jobs and connection-validation failures for SaaS and SSO integration profiles. It does not diagnose data-quality questions such as missing users in a product scope, model mapping or reconciliation results; use section 5 for those. AI-generated user resolution rules After each subscription download, SAM checks whether a rule should be generated. The SAM - Generate user resolution rule job calls the SaaS user resolution skill only when at least 10% of subscriptions have no user, and either it is the first run, or the previous run created no rule and the data has changed (a new field or about 10% more user data). Review results: Software Asset Workspace > License operations > SaaS license management > User resolution rules. Rules created by the skill show Source = AI. Steps are listed in the AI activity log in the Activity center on the Software asset overview.Activate deliberately: a generated rule that is inactive shows Review needed. Check it against a few known users, then set it Active and save. Rerun the Salesforce CRM import to apply it.Each run is logged in samp_user_resolution_rule_log with the outcome. When the assistant does not help What you seeLikely causeWhat to doNo Troubleshoot buttonApplication not installed, skill inactive or Display off, missing role, classic form instead of the workspace, or no current failureCheck the prerequisites above; the button appears only on the error banner of a failed job or validationTroubleshoot runs but returns nothing or an errorSkill call or output formatting failedOpen the generative AI log (sys_generative_ai_log.list) for the skill request: error code, message and whether the response was formatted correctly. Check System Logs > Errors for formatting failuresSummary is short, generic or cut offOlder application version with a smaller output limit, or too little log detailUpdate Otto for SAM to the latest version; rerun Troubleshoot after reproducing the failure so fresh logs existRecommendation contradicts the logsAI output is a suggestion, not a verified diagnosisFollow the outbound HTTP status and the matching section 5 branch; report the mismatch with the generative AI log entryProfile reference fields show invalid field name: troubleshooting_logTroubleshooting component not active on an older SaaS License Management versionUpdate SaaS License ManagementUser resolution job ends with "did not meet the pre-requisites" or "no change in your user data"Expected: fewer than 10% unresolved, or nothing changed since the last runNo action; create a rule manually if needed (branch L)User resolution job ends with "failed due to some error in the Gen AI skill"Skill call or output failedCheck sys_generative_ai_log for the skill runNo rule created: "no user table field could uniquely be identified"the Salesforce username has no unique exact match in any sys_user fieldCorrect user data or create the rule manually (branch L) Limitations Output is AI-generated and can be inaccurate or incomplete; a person must review it before acting.Only job and validation failures are analyzed; ingestion completeness, mapping, usage and optimization still need section 5.Responses take several seconds because each Troubleshoot click chains more than one model call.Availability depends on your AI entitlement and hosting environment.