Skip to main content

Troubleshoot the setup

The problems people meet while setting up Lattice, with the message you see, the cause and the fix. Where a message contains ..., Lattice fills in a name, a status or a date. For problems with a running integration, see the Integration operator page and the troubleshooting section of the Deployment guide.

Background processes are missing​

What you see: no process whose name starts with Lattice on the Background processes tab of System administration > Setup > Process automations, or only some of them.

CauseFix
The database was synchronized from Visual Studio, as on a development VM. Only a deployment of your build initializes process automation and registers the background processesRun System administration > Setup > Initialize process automations. It registers the background processes of every installed module each time it runs. It answers "Process automations are initialized" the first time, and "Process automations have already been initialized" after that
The deployment's database synchronization failedFix the synchronization and deploy again (Database synchronization errors)

What you see: the processes are listed, but View most recent results shows no runs for hours.

CauseFix
No batch server is running, or the batch group has no serverOn System administration > Setup > Server configuration, make at least one server a batch server (Batch server configuration)
The process had nothing to doNothing. A process with no work may create no batch job

What you see: a run that says "... failed. The messages below give the reason; the process runs again at its next interval." Read the messages under it. The Lattice dead-letter retry also needs an owner with access to the operations it replays; change the owner in Edit background process if it has none (Accounts that run Lattice work in the background).

A page or tool is empty after a deployment​

Lattice keeps a stored copy of the services, the OData entities and the business events. Nothing refreshes it for you after a deployment.

What you seeCauseFix
The Service test console answers "No metadata found for operation .... Run the service metadata refresh first."The service catalog was never refreshed, or not since the operation was addedRefresh metadata on Service metadata explorer; if it reports problems, open Service metadata refresh log on the same page
Service metadata explorer lists nothing, or lacks new operationsThe sameThe same
OData entity metadata explorer shows Not yet refreshedThe OData catalog was never refreshedRefresh OData metadata on the page, or System administration > Periodic tasks > Lattice > Refresh OData metadata
Business event catalog lacks new events, or its Last refreshed date is oldThe event catalog was not refreshedRefresh catalog on the page
A data project does not offer a Lattice entity, or a new field is missing on View mapData management keeps its own entity listRefresh entity list on Framework parameters (the steps)
A refresh button is missing, or OData entity metadata explorer is not in the menuThe Integration operator and read-only roles see the Service metadata explorer and the Business event catalog without the refresh buttons, and cannot open OData entity metadata explorer at all: only the Integration administrator or Integration developer can. The developer runs the service and OData metadata refreshes, but not Refresh catalogAsk an Integration administrator to run the refresh (or an Integration developer, for the service and OData metadata)

All four refreshes: I want to refresh the explorers and the event catalog after a deployment.

Access and sign-in​

What you seeCauseFix
HTTP 401 on a service callNo valid token: wrong scope, an expired secret or an expired tokenRequest a token with the scope https://<your-environment>/.default
HTTP 403 on a service callThe application is not on Microsoft Entra ID applications, its user is disabled, or the user has no Lattice role that grants the operationRegister the client and assign a role
HTTP 404 on a service URLThe service group is not deployed, or a name in the URL is misspelledCheck /api/services (Service group not deployed)
An OData read returns no rows for a record that existsThe read ran in the user's default companySet the user's Company, or add cross-company=true and filter on dataAreaId
The Service test console answers "You do not have access to operation .... A privilege that grants the service operation is required."Your roles do not grant that operationAssign a role that does, or run it as a user that has one
The pages under System administration > Setup > Magicite are not in the menuThe Lattice roles do not include themAssign Magicite license administrator, or use a System administrator

More cases: When it goes wrong.

License​

What you seeCauseFix
On the workspace: "Lattice license status: .... This environment is not production, so Lattice keeps working, but the license needs attention."A license problem on an environment that is not production. Nothing stopsFix it when you can, as below
On the workspace: "Lattice license status: .... Lattice processing (service writes and the actions that run it) stops on ... unless the license is renewed or the connection to the licensing service is restored. Then run the ..."A production environment with a block dateRenew the license, or restore the connection to the licensing service, then run System administration > Setup > Magicite > License refresh (the steps)
On the workspace: "Lattice processing stopped on ... because the license is not valid (status ...)."The block date has passed on productionThe same. Queued work runs after the license is restored
On an action: "... is not available because the Lattice license is not valid (status ...)."The action runs Lattice processing and the license blocks itThe same
A call returns LicenseNotValid with "The Magicite Lattice license is not valid (status ...). Posting operations are unavailable until it is renewed."Service writes are blockedThe same, then send the request again unchanged (When a call returns LicenseNotValid)
The check-in job log says "The license check-in of Lattice ... did not complete. The licensing client keeps the last license status and checks in again on its daily refresh."Lattice could not register itself with its licensing module, so the check-in did not run. A licensing service the servers cannot reach does not cause this message: the licensing module handles that itself, and the log then says "Lattice ... checked in with the licensing service. License status: ..." with the last status it keptRun License refresh (System administration > Setup > Magicite). If the message comes back after the next environment start, contact Magicite with the job log
The check-in job stays Waiting on Batch jobsNo batch server is runningStart the batch service or make a server a batch server, or run License refresh to check in now

To see the status at any time, select License status in the Links section of the Integration operations workspace; License behavior explains how to read it.

File ingestion​

What you seeCauseFix
No files are takenEnabled is cleared on the connection (a new connection starts cleared), or Run file ingestion is not scheduledSelect Enabled, and schedule the job (Jobs to schedule)
Files arrive but records stay QueuedProcess file ingestion segments is not scheduledSchedule it
"The routing envelope names ..., which is not in the connection's allowed service operations. Nothing was invoked."Allowed service operations does not list the operation. An empty list allows noneAdd ServiceClass.operation or ServiceClass.* on the Processing tab
Test connection answers with a warning "Connection test: ..."The source or the secret is wrong; the message names the reasonCorrect the Source tab or enter the secret again in Authentication
"Failed to read the secret from Azure Key Vault. Verify the secret URI and that the AOS managed identity has get access to the vault."The servers cannot read the vault named by a Key Vault secret URI with their own identity: no managed identity (for example on-premises) or no access to the vaultGrant the managed identity access, or use a Key Vault parameters secret, or store the authentication secret Encrypted (Key Vault and secrets)
"Connection ...: ... needs the server's own Azure identity, which a Microsoft-managed environment does not provide. Name a secret on the Key Vault parameters page instead; the authentication secret can also be stored encrypted on the connection." When you save, the same advice is a warning: "... so the connection fails when it runs."A Microsoft-managed environment, and the connection uses an Azure Key Vault reference (the message names the field) or is Azure Blob storage without a connection secretUse a Key Vault parameters secret (Use the Key Vault parameters page). The authentication secret can also be stored Encrypted; the PGP private key and passphrase cannot
"Azure Blob storage without a connection secret needs the server's own Azure identity, which a Microsoft-managed environment does not provide. Enter a connection string, an account key or a SAS token instead."Authentication set to Managed identity (no secret) on the New file ingestion connection wizard, in a Microsoft-managed environment. It appears when you click Next on CredentialsChoose Connection string, Account name and key or SAS token
"Azure Blob source: no SAS token, connection string or account key was supplied, and the server identity is not available in this environment."The connection secret of an Azure Blob connection holds none of these, in a Microsoft-managed environment. Lattice usually refuses such a connection first with the message above, before it connectsStore a SAS token, a connection string, or the account name and key as the secret, Encrypted or as a Key Vault parameters secret
"No secret reference named ... exists on the Key Vault parameters page of legal entity ... (System administration > Setup > Key Vault parameters)."The secret name or Key Vault parameters company on the connection is wrong, or the reference was removed from the pageAdd the reference in that legal entity, or correct the name or the company
"The secret reference ... on the Key Vault parameters page of legal entity ... is of type .... File ingestion reads only secret references of type Manual."The reference is of type Certificate or KeyUse a reference whose Secret type is Manual
"The secret reference ... on the Key Vault parameters page of legal entity ... returned no value. Check the Key Vault URL, client ID and client secret on that page, that the app registration may read secrets in the vault, and that the secret exists, is enabled and has not expired."The vault returned nothing: a wrong Key Vault URL, an expired or wrong client secret, an app registration without access to the vault's secrets, or a missing, disabled or expired secret. The vault's own error text is not shownCheck the record on Key Vault parameters (has its client secret expired?), the app registration's role on the vault, and the secret
"User ... cannot read the client secret on the Key Vault parameters page, so the secret reference ... of legal entity ... cannot be read. Give the user the Integration administrator role, or another role that holds the standard duty KeyVaultClientSecretKey."The user the connection runs as (a batch job's Run by user, or you for Test connection) cannot read the client secret of the Key Vault parameters recordGive that user the role, or change the job's Run by user (the rights)
"...: no secret reference named ... exists on the Key Vault parameters page of legal entity ...." or "...: the secret reference ... in legal entity ... is of type .... Choose a secret reference of type Manual."Shown while you edit the connection: the name is not a Manual reference of Key Vault parameters companyPick the name from the lookup
"Enter Key Vault parameters company first. The secret names are looked up on the Key Vault parameters page of that legal entity."You opened a secret name lookup while Key Vault parameters company was emptyEnter the company first
"Company ... does not exist."Key Vault parameters company is not a legal entityPick a legal entity from the lookup
"Connection ... names a secret on the Key Vault parameters page, so Key Vault parameters company must be filled in."A secret name is set and the company is emptyEnter Key Vault parameters company
"Connection ...: only one of ... can hold a value. Clear the others."One secret is kept two ways at once. On the page, entering one way clears the other, so this comes from a connection changed by code or importedClear all but one of the fields the message names
"Connection ... decrypts source files, so it needs a PGP private key in PGP private key (Key Vault reference) or PGP private key secret name."Decrypt source files (PGP) is Yes and no private key is set. Test connection shows it after "Connection test: PgpKeyInvalid - "Enter the private key's secret name or URI, or set Decrypt source files (PGP) to No
"Connection ...: only a user who can edit the Key Vault parameters page can set a Key Vault parameters secret name or its company, or change the endpoint, container or storage type of a connection whose authentication secret is read from that page."You do not have edit access to the standard Key Vault parameters pageAsk someone who has it (System administrator or Information technology manager) to make the change
Test connection: "Connection test: PgpKeyInvalid - The PGP private key could not be read. Supply the complete ASCII-armored private key (a PGP PRIVATE KEY BLOCK), not the public key."The stored value is not a complete PGP private key: a public key, a truncated copy or other textStore the full ASCII-armored private key (PGP private key and passphrase)
Test connection: "Connection test: PgpNoEncryptionKey - The PGP private key has no encryption key or subkey that can decrypt files."No key or subkey of it is marked for encryption with its secret part: a signing-only key (including an RSA key created for signing only), or an export whose encryption subkey has no secret partExport the key with its encryption subkey, for example gpg --armor --export-secret-keys
Test connection: "Connection test: PgpPassphraseWrong - The passphrase does not unlock the PGP private key."The passphrase is wrong. Every character counts, including a trailing space or line break, and a key that has a passphrase needs itCorrect the passphrase secret
Test connection: "Connection test: PgpCheckFailed - The PGP private key could not be checked."The check could not run in this environment. It is not a problem with the keyContact Magicite
In the details of the ingestion log line "Failed to ingest file '...'.": "File '...' could not be decrypted with the PGP private key and passphrase of the connection (Test connection checks both): ..."The reason after the colon names a key or passphrase problem (as above), or says "The file is not a PGP message encrypted to this key, or it is damaged."For a key or passphrase problem, select Test connection and fix it. Otherwise ask the partner to encrypt to your public key, with integrity protection, and send the file again
"... must be an Azure Key Vault secret URI such as https://myvault.vault.azure.net/secrets/name. Other addresses are not accepted, because the managed identity's access token is sent to that address."The reference is not a Key Vault secret URIEnter https://<vault-name>.vault.azure.net/secrets/<secret-name>
A connection stopped working after a database copyIts Encrypted secret came from another environment, or the Key Vault parameters record it names still points at the source environment's vaultEnter the secret again in Authentication, or correct the record on Key Vault parameters (After a database copy)

Settings​

What you seeCauseFix
"The operation .... is disabled for async execution by an administrator. Submit it synchronously, or ask an administrator to enable it in the async operation registry."Enabled is cleared on Async operation registrySelect it again, or submit synchronously
"... was not run because an administrator disabled it for async execution after it was queued. Enable it in the async operation registry, then replay it from the dead-letter queue."The operation was turned off while work was queuedSelect Enabled, then replay the parked items
New sales orders stay PendingInbound order policy evaluation is not scheduled in that legal entity. A run in a legal entity with the policy off logs "Inbound order policy is disabled; evaluation batch skipped."Schedule the job from that legal entity, or switch the policy on there
Orders outside the tolerance are Flagged, not HeldNo Price hold code, or the (Preview) Advanced Order Hold status change feature or the Order hold configuration key is offSet the hold code and switch on the feature (Prerequisites)
No order is checked for pricePrice tolerance (%) is 0Enter a tolerance
The sales origin dimension is not stampedSales-origin dimension stamping enabled is cleared in that legal entity, or no row matches the originSelect it and add the row
"External system ... is not active, so its keys cannot be added or changed."Active is cleared on External systemsSelect Active
"External system ... cannot be deleted because legal entity ... has cross-references for it."Keys of that system existClear Active instead, or delete the keys first
"External system ... cannot be deleted because legal entity ... has cross-reference settings for it."Rows on the Cross references tab of a module parameters page name that systemClear Active instead, or delete those Cross references tab rows in that legal entity first
"... settings belong on the ... parameters page."The Record kind belongs to another moduleAdd the row on the parameters page the message names
"Key ... of external system ... is already used by ...."Enforce unique is on and another record holds the keyCorrect the key
"Enter a full http or https address without a query string, for example https://docs.contoso.com/lattice."The address on Documentation help is not a full web addressEnter the address with https:// and without ?