Commerce Data Exchange (CDX) download jobs can't be downloaded in a sandbox UAT environment
Symptoms
When a DevTest machine is attached to a sandbox user acceptance testing (UAT) environment for debugging, the DevTest machine becomes part of the batch group, and it's picked up by the batch job to create Commerce Data Exchange (CDX) packages.
The resulting download session package generation succeeds, and a download session record is created. However, the package is uploaded to the DevTest machine's Azure storage account (usually locally emulated) instead of the storage account of the sandbox UAT environment. The download session will then fail to download and apply to the channel database. The system will show the following error messages:
Failed to get download session url for channelId: [CSU] and download session id: [ID]
Data package not found. Run again to create a new file. In Sandbox environments, in the Server configuration form, remove all developer environments from the batch listings.
Resolution
To solve this issue, remove the DevTest machine from the Server Configuration Manager form and rerun the download session.
Go to the System Administration module > Setup > Server Configuration.
Locate the Application Object Server (AOS) record of the DevTest machine.
Note
The name of the record includes the word "dev."
Select Delete to remove the AOS record.
Go to the Retail and Commerce module > Inquiries and reports > Commerce Data Exchange > Download sessions.
Select the failed session.
Select Rerun.
More information
For more information, see Debug a copy of the production database.