Troubleshooting ServiceNow Software Asset Management SAP S/4HANA Cloud Public Edition integration: Complete Troubleshooting GUIDE subscriptions or last login not downloadingSummary :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 SAP S/4HANA Cloud Public Edition integration: subscriptions or last login not downloading 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 SAP S4Hana Cloud direct integration profile (profile type label SAP S4Hana Cloud Subscription). It is a subflow-based integration delivered by the optional feature Software Asset Management integration with SAP S4Hana Cloud and the SAP S/4HANA Spoke. One subflow runs: SAP S4Hana Public Cloud Download Subscriptions. There is no reclaim subflow and no separate activity subflow or activity job in the reference build. One connection. A single Connection & Credential (alias SAP_S4_HANA_Cloud) reaches one SAP S/4HANA Cloud tenant with HTTP Basic authentication: the user name and password of an inbound communication user that you create in SAP. There is no OAuth sign-in and no token to renew on the ServiceNow side. What it counts. The download reads the user list of the SAP S/4HANA Cloud tenant (the spoke action Look up Users Stream) and creates one subscription per user returned. The SAP documentation for the integration lists the required SAP role as Business user. Which SAP user types, license classifications or lock states are counted, and how they map to software models, is not stated in the sources, so check the generated models against your SAP contract (branch J). What last activity means. The download subflow ends with an Update Login Event Activity step, so last activity is a sign-in date applied as a login event during the same run. Which SAP field supplies the date is not stated in the sources. It updates only when the daily subscriptions job runs. What reclaim does. The reference build has no reclaim subflow. Reclamation candidates can still be created from last activity, but ServiceNow does not remove or lock the SAP user. Remove or lock the user in SAP yourself. Read branches O and P. It does not cover SAP S/4HANA Private Cloud or on-premise SAP systems (those use the SAP publisher integration, which is separate), SAP Ariba, SAP SuccessFactors, or the finance and procurement actions of the S/4HANA spoke. Applies to: SAM Professional with the Software Asset Management - SaaS License Management (sn_sam_saas_int) Store application and these applications: Software Asset Management Professional for SAP (com.sn_samp_sap), SAP S/4HANA Spoke (sn_s4_hana_cld_spk) and Software Asset Management integration with SAP S/4HANA (sn_sam_s4hanacloud). The spoke needs IntegrationHub. Keep all four current and compare with the release documentation before applying a version-specific conclusion. 2. Implementation checklist CheckWhere and what to inspectReady conditionApplicationsApplication Manager: SaaS License Management, SAM Professional for SAP, SAP S/4HANA Spoke, SAM integration with SAP S/4HANAAll four installed and current; IntegrationHub presentOptional featureApplication Manager, SaaS License Management optional featuresSoftware Asset Management integration with SAP S4Hana Cloud selectedRoles (ServiceNow)User creating the profilesam_integratorSAP roleThe person who creates the communication system, user and arrangement in SAPBusiness user with access to the Communication Management appsCommunication system and inbound userSAP Fiori launchpad > Communication SystemsSystem with a host name, an inbound communication user using User Name and Password authentication; a dummy outbound user if the scenario asks for oneCommunication arrangementSAP Fiori launchpad > Communication ArrangementsArrangement for scenario SAP_COM_0889 that uses the communication systemProfileSoftware Asset Workspace > License operations > User subscriptions > Direct integration profiles > New > SAP S4Hana Cloud > ContinueDisplay name; profile type SAP S4Hana Cloud Subscription; subflow SAP S4Hana Public Cloud Download SubscriptionsCheckboxProfileDownload subscriptions on (cannot be cleared)ConnectionProfile > Connection & Credential (sn_s4_hana_cld_spk.SAP_S4_HANA_Cloud) > Create New Connection & CredentialConnection name, Connection URL of your tenant (for example https://<tenant>.s4hana.cloud.sap), user name, passwordApplication scopeScope pickerGlobal while publishingValidation and publishProfile > Validate Connection then PublishSucceeds; the job is created after publishingJobProfile > Scheduled JobsSAM - Refresh <name> Subscriptions (daily); active, no duplicatesEntitlementsSoftware models for SAP S/4HANAEntitlements created, then reconciliation runUserssys_user email versus SAP emailResolvable, or user resolution rules exist Credential fields FieldWhat to enterConnection NameA unique name, for example SAP S4 HANA CloudConnection URLThe address of your SAP S/4HANA Cloud tenant, in the form https://<tenant>.s4hana.cloud.sapUser NameThe inbound communication user created in SAPPasswordThe password set for that communication user Permissions and roles ProcessSAP roleAuthentication scopeDownload subscriptionsBusiness userusers:read (as listed by the documentation)Last loginBusiness userRead in the same downloadReclaimNot availableNot available The communication user is created through the communication system and arrangement; the arrangement scenario decides which SAP APIs it may call. If the user cannot read the user list, the download fails (branch D). What happens when a setting is missing or wrong Setting, field or propertyIf it is missing or wrongTypical symptomOptional feature not selectedThe profile type, subflow and alias do not existSAP S4Hana Cloud is not offered when creating a profileSAP S/4HANA Spoke not installedNo connection alias and no Look up Users Stream actionThe download subflow cannot runApplication scope not Global when publishingPublish is refusedThe profile stays in DraftWrong Connection URL (tenant host)Requests do not reach your tenantConnection validation is not successful. Please check connections and credentials and try again.Wrong or expired communication user passwordSAP refuses the callSame generic message; the system log shows an HTTP 401Communication user locked in SAPSAP refuses the callSame generic messageNo communication arrangement for the scenario, or arrangement not linked to the system and userThe API is not exposed to the userHTTP 403 or 404 in the system logInbound user not set to User Name and Password authenticationBasic authentication is not acceptedHTTP 401Profile edited after publishStatus returns to DraftJobs stop until validated and published againEntitlements missingNothing to reconcile againstCompliance shows nothingNo matching sys_userSubscription user stays emptyReconciliation consumes no rightDebug properties left onExtra loggingSlow instance after troubleshooting 3. Symptoms and expected behavior SymptomFirst branchHealthy evidence to seekSAP S4Hana Cloud option, spoke or job missingAProfile type available, job listedCannot create the connection or publishBStatus Published with its jobValidate Connection failsCValidation successfulCommunication user, arrangement or role problemsDSign-in succeeds, user list returnedAuthentication fails after it workedEJob completing with the current passwordWrong tenant or URLFIntended tenant returns usersJob or subflow failedGCompleted row in the job log and flow executionCounts differ from SAPHCounts match the intended SAP usersSeveral SAP tenantsIOne profile and connection per tenantModel or entitlement problemsJSAP model on every subscriptionUser empty or wrongKIntended sys_user linkedLast activity blank or staleLRecent sign-in for an active userNo activity job, or activity job expectedMUnderstanding that activity comes from the downloadNo or wrong reclamation candidatesNCandidates only for truly inactive usersReclaim is not availableOA documented manual removal step in SAPAfter removal in SAP: stuck candidatesPCandidate closedRate limits, timeouts, pagingQNormal run durationProblems after clone, upgrade or repairRValidated profile, valid credentials A healthy download creates one subscription per user returned by SAP, with the sign-in date as last activity. Subscriptions for users who no longer appear are removed on the next run. 4. Execution path and evidence correlation Hover or tap a step to see what breaks there; click it to open the matching branch.SetupConnectionCollectionMatchingWriteDownstream Setup and downloaddaily 1SAP communication userCommunication system, inbound user (user name and password), arrangement SAP_COM_0889Breaks here: Wrong role; no arrangement; locked userOpen branch D →2Tenant URLConnection URL of your tenant; Basic authenticationBreaks here: Wrong host; wrong passwordOpen branch F →3Validate and publishUser list read; scope set to Global to publishBreaks here: Generic validation messageOpen branch C →4Subscriptions jobSAM - Refresh <name> SubscriptionsBreaks here: Failed subflow; job missingOpen branch G →5Look up Users StreamUser list from the tenantBreaks here: Counts differ; technical usersOpen branch H →6Subscription identifierUpsert subscription per user; user resolutionBreaks here: Empty userOpen branch K →7Login eventUpdate Login Event Activity in the same runBreaks here: Blank or stale activityOpen branch L →8EntitlementsCreate for the generated SAP modelsBreaks here: Compliance shows nothingOpen branch J → Candidates and manual removalafter download 1No activity jobActivity comes from the downloadBreaks here: Expecting a separate jobOpen branch M →2Candidates60-day rule; advisory onlyBreaks here: Wrong candidatesOpen branch N →3Reclaim not availableNo reclaim subflow; remove or lock the user in SAPBreaks here: Approved candidate but SAP unchangedOpen branch O →4Rerun and closeNext download no longer returns the userBreaks here: Stuck candidateOpen branch P →5Limits and pagingTimeouts and tenant maintenanceBreaks here: 5xx; long runsOpen branch Q →6After clone or upgradeRecreate credentials; reinstall componentsBreaks here: Missing type or credentialsOpen branch R → Subscription and last-login path Subscriptions job (daily) → SAP S4Hana Public Cloud Download Subscriptions subflow → Look up Users Stream (Basic authentication to the tenant) → upsert subscription per user (using the subscription identifier) → Update Login Event Activity → delete users not returned → reclamation rule (60 days) → user resolution Reclaim path Not available in the reference build. Candidate created → reviewed in ServiceNow → user removed or locked in SAP by an SAP administrator → next download no longer returns the user → candidate closes StageRecord or source to inspectBehaviorJobProfile > Scheduled Jobs and Scheduled Job ResultsOne daily job: SAM - Refresh <name> SubscriptionsFlow runFlow Designer > Operations > ExecutionsDownload subflow run with the failing action and its errorAuthenticationConnection & Credential SAP_S4_HANA_CloudOne connection = one tenant; Basic authenticationUsersSAP user list returned by Look up Users StreamEach user has an identifier, email or name and a sign-in dateUpsertsamp_sw_subscriptionOne row per user returnedLast activitySubscriptionSign-in date as a login event; moves forward onlyReclaimNoneDone manually in SAP Correlate one execution before deciding a cause Record the job, profile, start and end in UTC, and the application and spoke versions.Open the profile's Scheduled Job Results and sam_saas_job_log; read the message.Open Flow Designer > Operations > Executions and find the subflow run for the same window; open the failing action. For a spoke action, the output status code is 0 on success and 1 on failure, with the error text in the status message.Open System Logs > All and look for Datastream error: for the same window (a failed validation shows only a generic message in the form; the detail is in the log).For deeper tracing, set com.snc.process_flow.reporting.level to All and, if needed, glide.outbound_http_log.override to true with glide.outbound_http_log.override.level set to all; rerun once, then set them back. There are no SAP S/4HANA specific debug properties for the SAM integration. 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 <id>, <name> or <tenant> are placeholders; keep the real values private. Start every investigation here 1Job resultProfile > Scheduled Job ResultsStatus and message of the run 2System logFlow Designer > Operations > Executions; sam_saas_job_logFailing subflow action and its error 3Outbound HTTPSystem Logs > All: Datastream errorThe real reason behind the generic validation message 4Pick a branchMatch the message below401 → D/E, 403/404 → D/F, blank dates → L/M, no reclaim → O Start every investigation the same way. (1) The profile's Scheduled Job Results. (2) Flow Designer > Operations > Executions for the subflow. (3) System Logs > All for Datastream error: and the SAP error text. Read the message, not only the status. A. SAP S4Hana Cloud option, spoke or job is missingB. The connection cannot be created, or the profile cannot be publishedC. Validate Connection failsD. Communication user, arrangement or role problemsE. Authentication fails after it workedF. Wrong tenant or URLG. The refresh job or subflow failsH. Subscription counts differ from SAPI. Several SAP tenantsJ. Model or entitlement problemsK. Subscription user is empty or wrongL. Last activity is blank or staleM. No activity job, or an activity job is expectedN. No reclamation candidates, or wrong onesO. Reclaim is not availableP. After removal in SAP: stuck candidatesQ. Rate limits, timeouts, paging and large tenantsR. Problems after a clone, upgrade or repair A. SAP S4Hana Cloud option, spoke or job is missing Symptoms. SAP S4Hana Cloud is not offered when creating a direct integration profile.The SAP_S4_HANA_Cloud connection alias is not listed.No SAM - Refresh <name> Subscriptions job after publishing. Where to check. Application Manager versions of the four applications; the optional features of SaaS License Management; the profile's Scheduled Jobs list. Causes and fixes. Optional feature not selected. Select Software Asset Management integration with SAP S4Hana Cloud when installing or updating SaaS License Management.An application is missing or old. Install or update SAM Professional for SAP, the SAP S/4HANA Spoke and the SAM integration with SAP S/4HANA (IntegrationHub is required).Core UI create option inactive. With Software Asset Workspace installed, create the profile from License operations > User subscriptions > Direct integration profiles > New > SAP S4Hana Cloud.Jobs not created. The job appears after the profile is validated and published (B, C). Verify. The profile shows Published with its job. B. The connection cannot be created, or the profile cannot be published Symptoms. You cannot create the connection.No Publish option, or publishing is refused because of the application scope.A published profile is back in Draft. Where to check. The profile form (Status); the scope picker; the Connection & Credential record; the user's roles. Causes and fixes. Role. Creating the profile needs sam_integrator.Application scope. To publish, change the application scope to Global.Connection section not shown. Open the Connection & Credential record with the preview icon and Open Record, then use Create New Connection & Credential.Not validated. Run Validate Connection and fix any failure first (C).Edited after publish. Changing the connection returns the profile to Draft; validate and publish again.Where Now Assist for SAM is available, use Troubleshoot on the error banner (section 10). Verify. Status Published, with the subscriptions job. C. Validate Connection failsConnection validation is not successful. Please check connections and credentials and try again. Symptoms. Connection validation is not successful. Please check connections and credentials and try again. Where to check. System Logs > All for Datastream error:; the connection and credential record; the SAP communication user. Causes and fixes. What validation tests. It reads the user list through the spoke. A pass proves the URL, the user and the arrangement work for reading users.Generic message. Any failure of the user list shows the generic message; the real reason is in the system log and in the SAP response (401, 403 and 404 meanings are in branches D to F).Wrong Connection URL. It must be the address of your own SAP S/4HANA Cloud tenant, with no extra path. Edit the connection and correct it.Wrong credentials. The user name and password must be those of the inbound communication user, not a personal Fiori sign-in.No arrangement. Create the communication arrangement for scenario SAP_COM_0889 and link it to the communication system (D).Credential record missing. Recreate the connection and credential. Verify. Validation successful. D. Communication user, arrangement or role problems Symptoms. HTTP 401 or 403 from SAP in the system log or flow execution.Validation passes for one user and fails for another. Where to check. SAP Fiori launchpad: Communication Systems, Communication Arrangements, the inbound user. Causes and fixes. Create the communication system. In the Fiori launchpad open Communication Systems > New; enter a unique System ID and System Name; Create; enter the tenant host name under Technical Data.Create the inbound user. On the Users for Inbound Communication tab select +, choose User Name and Password as the authentication method, New User, enter user name, description and password, Create, then OK, then Save.Outbound user. Some arrangements need an outbound user even for inbound-only use; create a dummy one on the Users for Outbound Communication tab.Create the arrangement. Open Communication Arrangements > New, choose scenario SAP_COM_0889, enter a unique arrangement name, Create, select the communication system, and Save. The user name and authentication method fill in automatically.Role. The person doing this in SAP needs the Business user role for the Communication Management apps.Arrangement scenario. The scenario decides which SAP APIs the user may call; if your SAP release names a different scenario for user data, use the one SAP documents for your release. Verify. Validate Connection succeeds. E. Authentication fails after it worked Symptoms. Jobs worked at first, then fail with an authentication error (HTTP 401) in the system log.Validation was successful once, then failed after a password change. Where to check. The connection and credential record; the communication user in SAP. Causes and fixes. Password changed or expired in SAP. Update the password on the credential record in ServiceNow and validate. Basic authentication has no token to renew, so a stored password that no longer matches always fails.User locked. Repeated wrong passwords can lock a user in SAP; unlock it in SAP. This lock behavior is general SAP behavior and is not described in the integration sources.User deleted or arrangement changed. Recreate the user or arrangement and update the credential.Edited after publish. The profile returned to Draft; validate and publish again. Verify. The job completes with the new password. F. Wrong tenant or URL Symptoms. No users returned; HTTP 404 in the log; users from a different system. Where to check. The Connection URL on the connection record. Causes and fixes. Tenant host. Copy the host exactly from your SAP S/4HANA Cloud address, with https://.Test or production tenant. Confirm the URL points to the intended tenant.Extra path. Remove any path or trailing text from the URL.Network. Check the proxy or firewall path from the instance to the tenant. Verify. The user list returns the intended tenant's users. G. The refresh job or subflow failsConnection validation is not successful. Please check connections and credentials and try again.An instance of '<job>' is already running Symptoms. Scheduled Job Results shows Failed, or the flow execution shows a failed action, with: Connection validation is not successful. Please check connections and credentials and try again. (on validation)An instance of '<job>' is already runningA spoke action status code 1 with an error message such as unknown error, service unavailable or timeout. Where to check. The job result; sam_saas_job_log; Flow Designer executions; System Logs > All. Causes and fixes. SAP error. Match the text to branches D, E, F or Q.Outdated application or spoke. Update SaaS License Management and the SAP S/4HANA Spoke, then run the job once.Job linked to a removed profile. Delete the orphan job and republish.Two runs at once. Wait for the active run to finish.Failed run. Fix the cause and rerun; deletions already made are not undone. Verify. The next run shows Completed and updated subscriptions. H. Subscription counts differ from SAP Symptoms. Counts are lower or higher than the SAP user list; locked or technical users appear or are missing. Where to check. The SAP user list; exclusion rules. Causes and fixes. What is read. Every user returned by Look up Users Stream is imported. The sources do not describe filtering by user type or lock state; compare a sample of SAP users against the subscriptions.Exclusion rules. Subscription Identifier Exclusion Rule and Subscription User Exclusion Rule silently drop matching rows.Technical or communication users. Users created for integrations may be counted if SAP returns them; exclude them with an exclusion rule.Another tenant. A user belongs to a different tenant (F, I).Failed run. A failed run keeps old rows but does not add new ones (G). Verify. Counts match the SAP users you intend to license. I. Several SAP tenants Symptoms. A second tenant is not imported; two profiles show the same users. Where to check. Each profile's connection and its URL. Causes and fixes. One profile per tenant. A connection reaches one tenant; create a profile and a connection for each tenant.Child aliases. For several profiles, create child aliases of SAP_S4_HANA_Cloud, a connection on each child alias, and select it on each profile.Not documented. The sources do not describe other multi-tenant behavior; test with one tenant first. Verify. Each profile imports only its own tenant's users. J. Model or entitlement problems Symptoms. A raw identifier and no software model; entries under Unrecognized Subscription Identifiers; compliance shows nothing; the license type for an SAP product cannot be set as expected. Where to check. Profile > Software Models and Unrecognized Subscription Identifiers; entitlements. Causes and fixes. Entitlements missing. After the connection works, your instance creates software models and subscriptions that are refreshed daily. Entitlements are not created for you; create them for the generated models and run reconciliation.User type or classification to model mapping. The sources do not say how SAP user types or license classifications map to models. Open the generated models and compare them with your SAP contract.License type options. Some SAP product content restricts the license types offered when you create an entitlement from its model. If the option you need is missing, report the product and the expected license type to ServiceNow so the content can be corrected.Dedicated calculator. A calculator specific to SAP S/4HANA public cloud was deprecated; use the standard license metrics offered for the model and confirm the choice with your SAP contract.Unknown identifier. Open it under Unrecognized Subscription Identifiers, set the correct software model and save.Content out of date. Download current subscription-identifier content. Verify. Subscriptions show the SAP model and reconciliation produces results. K. Subscription user is empty or wrong Symptoms. Subscriptions with an email but no User; records on the Subscriptions without user page. Where to check. sys_user email and user ID versus the SAP email or user name; User resolution rules; sn_itam_samp.user_resolution_exclude_table. Causes and fixes. No match. SAP user names are often short IDs, not email addresses. 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.Manual edits overwritten. The User field is recalculated each run.Rules created later. An older version filled the user only for new records after a rule was created; update the application. Verify. The subscription shows the intended user. L. Last activity is blank or stale Symptoms. SAP subscriptions have no last activity, or it does not move. Where to check. The subscription's last activity; the SAP sign-in date for the same user; the download job result. Causes and fixes. What it measures. Last activity is a sign-in date applied during the download through Update Login Event Activity. Which SAP field supplies it is not stated in the sources.No activity job. Last activity is updated only when the subscriptions job completes.Download not healthy. A failed download leaves last activity unchanged (G).User never signed in. A user who has never signed in can have no date.Date handling. Compare dates in UTC.Never cleared. Last activity only moves forward. Verify. A user who signed in today shows today's date after the next job run (confirm the field with your SAP administrator if it does not). M. No activity job, or an activity job is expected Symptoms. Scheduled Jobs lists only the subscriptions job.A Download activity option or activity job is expected, as for other SaaS integrations. Where to check. The profile form and its Scheduled Jobs list. Causes and fixes. By design. The download subflow already includes the login-event step; there is no separate activity subflow, so no activity job is created.Option not shown. The documentation for this profile describes only the Download subscriptions section, which cannot be cleared.Run timing. To refresh last activity sooner, run the subscriptions job once after a good download.Newer releases. If a later release adds an activity subflow, it appears on the profile form; check the release documentation. Verify. Last activity changes after a completed subscriptions run. N. No reclamation candidates, or wrong ones Symptoms. Inactive users get no candidate; active users are proposed for removal. Where to check. The SAP reclamation rule; subscriptions' user and last activity; existing candidates. Causes and fixes. Last activity blank or incomplete. Candidates depend on last sign-in; fix L first.Rule configuration. A rule with a 60-day threshold is created automatically, once. Confirm Create reclamation candidate is checked and the threshold is what you want. Do not delete the rule while the profile is active.Users who rarely sign in. SAP users who work through integrations or approval flows may look inactive; review them before acting.User empty. With Notify user on, a candidate without a user goes to Attention Required; fix K.Candidate states. Attention Required, Ready, Awaiting User, Awaiting Approval, Awaiting Revocation, Closed Complete, Closed Skipped, Closed Canceled (cancelled when activity is detected).Advisory only. Because there is no reclaim subflow, an approved candidate does not change SAP (O). Verify. A user inactive beyond the threshold receives one candidate; active users do not. O. Reclaim is not available Symptoms. A candidate is approved but the SAP user is unchanged.No Reclaim subscriptions option or reclaim subflow on the profile.A candidate stays in Awaiting Revocation. Where to check. The profile form's subflow sections; the candidate's state; the user in SAP. Causes and fixes. By design. The reference build has only the download subflow, so ServiceNow cannot remove, lock or change the license of an SAP user.Do it in SAP. After approval, an SAP administrator removes or locks the user, or changes the user's license assignment, in SAP according to your SAP process.Confirm in ServiceNow. After the SAP change, run the subscriptions job; the user no longer appears (or is no longer licensed) and the subscription is removed.Check for a newer release. If a later release adds a reclaim subflow, the profile form shows it and its documentation lists the SAP role needed. Verify. The user is changed in SAP and the subscription disappears on the next download. P. After removal in SAP: stuck candidates Symptoms. The user was removed or locked in SAP, but the candidate stays open.The subscription is still present. Where to check. The user in SAP; the candidate's state; the last job result. Causes and fixes. Download not rerun. Run the subscriptions job; the candidate is checked again and closes when the subscription is gone.User still returned by SAP. A locked user may still be listed; the sources do not say whether locked users are filtered. If the user must disappear, remove it in SAP or add an exclusion rule.Candidate left in Awaiting Revocation. Close it manually only after confirming the SAP change.Wrong user changed. ServiceNow does not reverse an SAP change; restore the user in SAP. Verify. The subscription is gone and the candidate is Closed Complete. Q. Rate limits, timeouts, paging and large tenants Symptoms. HTTP 5xx or throttling in the log; a spoke status message about timeout or service unavailable; very long runs. Where to check. The flow execution timing; the system log. Causes and fixes. Limits. The sources document no SAP rate limit and the retry settings of the spoke were not available; read the error text.Paging. The paging of the user list was not readable in the reference build.Large tenants. Run the job off peak and compare counts with SAP after the run.Network. Check the proxy, MID Server or firewall path from the instance to the tenant.SAP maintenance. A tenant being updated can answer with service unavailable; rerun later. Verify. A complete run without errors and a normal duration. R. Problems after a clone, upgrade or repair Symptoms. Validate or Publish missing after an upgrade; credentials fail after a clone; the profile type is missing; routing errors after an upgrade. Where to check. Installed versions; customizations of SaaS License Management; the credential record; sys_trigger for upgrade fix jobs. 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.Profile type routing removed. Repair the SaaS License Management plugin so the integration routing rows are restored.Credentials after a clone. Re-enter or recreate the SAP connection and credential and validate on the target instance; do not expect it to carry over.Spoke token job. The spoke has a scheduled job Generate Token and Cookie - Cloud Spoke that runs about every 26 minutes and stores values in the spoke properties sn_s4_hana_cld_spk.sap_cloud_token and sn_s4_hana_cld_spk.sap_cloud_cookie. It belongs to the spoke's other actions; the download uses Basic authentication. Do not copy those property values between instances.Upgrade fix jobs. They run as scheduled jobs and set profile properties that enable Validate Connection; check sys_trigger and let them finish.Versions out of step. Update SaaS License Management, the optional feature, SAM Professional for SAP and the SAP S/4HANA Spoke together. Verify. Validation succeeds and the job completes in the target instance. 6. Cause-specific correction and controlled recovery Validation, publish and downloads are write operations in ServiceNow; the user removal in SAP is a separate, manual step. Obtain approval before running them in production. Established causeCorrection ownerControlled recovery and stop conditionApplication, optional feature or spokeServiceNow platform administratorUpdate, validate, publishCommunication system, user or arrangementSAP administrator and integration ownerFix in SAP, update the credential, validatePassword or lockSAP administratorReset or unlock, update the credential, confirm a run completesTenant URLIntegration ownerCorrect the URL, validateCoverage (users, exclusions)Integration ownerUse exclusion rules, run once, compare countsMapping and user resolutionSAM administratorCreate entitlements, add rules, rerunLast activitySAM integration ownerRun after a good download, check logsReclaimSAM process owner and SAP administratorReview candidates, change one user in SAP, rerun, confirmClone, upgrade, repairPlatform ownerRestore out-of-box components, recreate credentials, validate, run once 7. Verification criteria and recovery evidence Verification layerEvidence requiredWhat does not satisfy itConfigurationPublished profile, valid credential, tenant URL matchingA Published status after an unvalidated connection changeExecutionCompleted job result and subflow executionA scheduled job that existsCoverageSubscriptions match the intended SAP usersTotals that include technical usersMatchingSAP model and user on every subscriptionRaw identifiers as display namesActivityRecent sign-in for a known active userBlank activity read as inactivityReclaimUser changed in SAP and subscription removedCandidate closed without the SAP change 8. Escalation evidence to collect Application, optional feature, spoke and platform versions; recent upgrades, repairs or clones.Profile status, the communication scenario used, and the SAP role of the person who configured it (no passwords).Job name, run time in UTC, job result status and message; the flow execution and failing action; the matching system log lines.Counts of users in SAP and subscriptions in ServiceNow.Steps already taken and results. Never include passwords, tenant names, host names or user names in shared evidence. 9. References, processing rules and known limitations Key records Job: SAM - Refresh <name> Subscriptions (daily).Subflow: SAP S4Hana Public Cloud Download Subscriptions (steps: Look up Users Stream, Upsert User Subscription using Subscription Identifier, Update Login Event Activity).Connection alias sn_s4_hana_cld_spk.SAP_S4_HANA_Cloud.Profile type store_saps4hanacloud_subscription.Spoke job Generate Token and Cookie - Cloud Spoke and properties sn_s4_hana_cld_spk.sap_cloud_token, sn_s4_hana_cld_spk.sap_cloud_cookie (spoke internals).Data: samp_sw_subscription_profile, samp_sw_subscription, 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 — set to All for subflow detail; set back afterwards.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, usage events are not stored (last activity still updates).sn_itam_samp.user_resolution_exclude_table — sys_user extended tables excluded from user matching. Processing rules to remember One connection, one tenant; Basic authentication with an inbound communication user.Download only: no reclaim subflow and no activity job in the reference build.Last activity is a sign-in date applied during the daily download.Publish with the application scope set to Global.A default reclamation rule of 60 days is created once; candidates are advisory. Known limitations Which SAP user types or license classifications are counted, and how they map to models, is not stated in the sources.The SAP field behind last activity, paging, retry behavior and rate limits are not documented here; the subflow step bodies were not readable.Reclaim is not performed by ServiceNow.SAP S/4HANA Private Cloud, on-premise SAP, SAP Ariba and SAP SuccessFactors are separate integrations. Documentation ServiceNow product documentation for your release: Integrating with SAP S/4HANA Cloud Public Edition under Software Asset Management > SaaS License Management.SAP documentation: Communication Systems, Communication Users and Communication Arrangements in SAP S/4HANA Cloud.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 SAP S/4HANA Cloud 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 SAP user email 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 SAP S/4HANA Cloud 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 SAP S/4HANA Cloud 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 K)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 SAP user email has no unique exact match in any sys_user fieldCorrect user data or create the rule manually (branch K) 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.