Applies to Product - Dynamics 365 Commerce
What’s happening?
- 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.”
- 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:
- The database connection error may be due to transient SQL exceptions or database upgrades causing temporary unavailability.
- 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:
- For the DMF Package API integration failure:
- Implement retry logic on the data management package API to handle transient errors effectively.
- Ensure that the application permissions in the Key Vault are correctly configured.
- Refer to the documentation on business events and Azure Service Bus for guidance on properly populating the client secret values.
- Monitor the performance after implementing changes and ensure stability before proceeding with further actions.
- For the AADSTS7000215 error:
- Verify that the secret being sent in the request is the correct client secret value, not the client secret ID.
- Check the application registration in Azure to ensure that the application ID is correct and that it runs under an enabled user.
- Follow the steps outlined in the public documentation for guidance on creating Key Vault and registering the application.
