Views:

Applies to Product - Dynamics 365 Commerce

What’s happening?
  1. DMF Package API integration failed due to a database connection error, resulting in the error message: “Cannot select a record in Batch transactions (Batch). Status: Withhold. There is a temporary problem with the connection to the database. Please retry later.”
  2. Integration is failing with the error message "AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app."

 

Reason:

  1. The database connection error may be due to transient SQL exceptions or database upgrades causing temporary unavailability.
  2. The AADSTS7000215 error indicates that the application may not have been properly configured, specifically that the client secret ID was specified instead of the client secret value.

 

Resolution:

  1. For the DMF Package API integration failure:
  2. Implement retry logic on the data management package API to handle transient errors effectively.
  3. Ensure that the application permissions in the Key Vault are correctly configured.
  4. Refer to the documentation on business events and Azure Service Bus for guidance on properly populating the client secret values.
  5. Monitor the performance after implementing changes and ensure stability before proceeding with further actions.
  6. For the AADSTS7000215 error:
  7. Verify that the secret being sent in the request is the correct client secret value, not the client secret ID.
  8. Check the application registration in Azure to ensure that the application ID is correct and that it runs under an enabled user.
  9. Follow the steps outlined in the public documentation for guidance on creating Key Vault and registering the application.