The CDQ Workbench mostly runs by itself: its background work picks up again after a restart, and old runs and updates are cleaned up automatically. You keep it current by deploying each new version and updating the launchpad content, and keep it working by renewing the credentials in its destinations and giving new users their roles.
You install a new version over the running one, with the same extension descriptor as before. Your data, connections, jobs, the transformations of Mappings, destinations, role assignments and your SAP Build Work Zone site stay as they are.
Check What's New for the version. It tells you if there's anything to do beyond these steps.
Deploy the new archive into the same space:
cf login -a <API endpoint> -o <org> -s <space> # -e: the extension descriptor of your installation; -f: abort a deployment still in progress cf deploy cdq-workbench_<new version>.mtar -e cdq-workbench.mtaext -fThe database deployer brings the HDI container to the new version's structure and keeps its data.
Update the launchpad content: in the site manager of SAP Build Work Zone, standard edition, open Channel Manager and choose Update content (the circular arrow) on the content provider CDQ Workbench.

The row CDQ Workbench is the Workbench's content provider, with its ID
CDQ_Workbenchand its two destinations. Update content reloads the launchpad content of the new version into your site: new Tools and titles, new roles, and the spaces and pages with their tiles. While it loads, the Status shows the progress; Updated means it's done. Don't use Edit and then Save for this: the provider then stays loading. Without the update, the site keeps the launchpad content of the previous version, while the Tools themselves are new right away.If What's New names a new Workbench role: assign it to your site and map its two role collections to a user group, as in Set up the launchpad and Assign the role collections.
Check the version:
cf mta cdq-workbenchshows it, and in the cockpit, HTML5 Applications shows it for each Tool.
The list sits under Managed Application Router provided by SAP Build Work Zone, standard edition, one row per Tool, with its Application Name, Active Version and Business Solution
cdqworkbench.service. Each Tool's Active Version is the version of the archive you deployed last, so all six show the new one. Thencf appsshowscdq-workbench-srvas started, and a user opens the site and sees the Tools of their role.
What's kept: all data in the HDI container (what it holds: Data Flow and Data Protection), the destinations, the role collections with their assignments, and the site with its roles and view mode.
What users notice: the new Tools and functions, once the launchpad content is updated. The HTML5 applications carry the new version, so the launchpad loads the new Tools instead of keeping the previous ones from its cache. CDQ Genius knows the Help texts of the new version right away. Runs, jobs and CDQ Genius answers that were in progress go on after the restart.
What to check, and where
| What | Where |
|---|---|
| The application runs | cf app cdq-workbench-srv shows it as running. In the cockpit: the space → Applications. |
| The systems of a connection can be used | In the Tool Connections, open the connection and choose Refresh. S/4HANA, the Data Mirror and the AI model each show Available or the cause of a problem. See Check the systems of a connection. |
| The sync jobs and their runs | The tile of Data Mirror Sync shows the sync status. In the Tool, each job shows its last run, and each run its sent, rejected and deleted records. See Data Mirror Sync. |
| Jobs that apply many updates | In Business Partner Insights, a job shows its progress and how many updates were applied and not applied. See Follow and stop jobs. |
| The transformations | Mappings shows, per transformation of the chosen connection, what needs attention: values missing in your Customizing or unknown to CDQ, field rules that can't work, a definition the Workbench couldn't write to CDQ, and a data source with another definition; and its active version. See Mappings. |
| A summary of all of it | Ask CDQ Genius in any Tool, for example "How is the Workbench doing?". It summarizes the checks of the connection's systems, the last runs of its jobs and the values missing in Customizing, and names the likely cause of a problem. |
| The log | cf logs cdq-workbench-srv --recent shows the latest messages of the CAP service; cf logs cdq-workbench-srv follows them live. |
After a restart. The Workbench keeps its background work in its database, not in memory. So when cdq-workbench-srv restarts, for example after a deployment or SAP BTP maintenance, everything goes on by itself:
- Sync runs and insights runs continue where they stopped. Scheduled runs start on their schedule.
- Jobs that apply many updates continue.
- CDQ Genius answers in progress continue. An answer with no progress for 15 minutes counts as stopped, and the user can send a new message.
Clean-up. Runs of Data Mirror Sync are deleted after 90 days, except the last run of each job. CDQ's updates, the decisions on them and the jobs that applied them are deleted 12 months after CDQ created the update. You don't need to do anything for this. Nothing else is deleted by time: connections and jobs stay until an administrator deletes them, open requests until they're sent or deleted, sent requests without a time limit, versions of value mappings for good, resolved duplicate groups without a time limit, and conversations with CDQ Genius until their user starts a new one. See Data Flow and Data Protection.
Renewing credentials. The credentials live only in the destinations of the subaccount (Connectivity → Destinations). Change them there. The Workbench uses the new values with its next call, no restart needed.
| Credential | Where you change it |
|---|---|
| Password of the S/4HANA user | The S/4HANA destination: Password. |
| CDQ API key | The CDQ API destination: the property URL.headers.X-API-KEY. The Data Mirror follows the key: it's the one of the key's CDQ workspace. If the new key belongs to another CDQ workspace, the Workbench creates the connections' data transformation definitions in that workspace at its next start, and the sync jobs and Mappings need data sources of that workspace's Data Mirror. |
| SAP AI Core service key | Each AI model destination: Client ID and Client Secret of the new key. |
| A model deployment created again | The AI model destination's URL: the new deploymentUrl. |
Then choose Refresh on the connections that use the destination, in the Tool Connections, to check them.
An API key of another CDQ workspace in the CDQ API destination means that workspace's Data Mirror for every connection that uses this destination; the check of such a connection warns you and names its sync jobs. Check the data sources of their sync jobs in Data Mirror Sync, and their transformations in Mappings.
The data transformation definitions. Nothing to do: the Workbench keeps the data transformation definitions of every connection in CDQ itself, one per transformation, in the workspace of the connection's CDQ API destination: CDQ Workbench · <connection> · CDQ → S/4HANA · Business Partners, and CDQ Workbench · <connection> · S/4HANA → CDQ · <data source> for each data source of the connection. It creates them, finds them again by the data sources' assignments and by their names (also after a reinstallation), assigns each S/4HANA → CDQ definition to its data source, removes it from the data source when an admin removes the data source in Mappings, and rebuilds them at every start and every activation in Mappings, so a new version's Workbench standard applies right after the update. If a rebuild fails, the definition CDQ has stays in force, Mappings shows the error at the transformation, and the Workbench tries again at its next start and the next activation. See How It Works of Mappings.
Users and roles. To give a new user a Workbench role, add them to the role's user group in Identity Authentication; remove the role the same way. If you assign the role collections to single users instead, always assign both role collections of a role: the XSUAA one (CDQ Workbench Admin, CDQ Workbench Data Steward) and the Work Zone one (~cdq_workbench_…). Users log out and on again to get a changed role. See Assign the role collections.
The database. The Workbench needs its SAP HANA Cloud database running. If the database is stopped, for example in SAP HANA Cloud Central, the Tools can't work until it's started again.
Deployment
| Symptom | Cause | Fix |
|---|---|---|
cf marketplace is empty, or cf create-service answers not authorized | You aren't a member of the space. | Get the role Space Developer in the space: cf set-space-role <user> <org> <space> SpaceDeveloper. |
cf deploy fails with space's memory limit exceeded | The space or org has less memory than the applications need. | Assign more Cloud Foundry Runtime memory to the subaccount and the org, or lower the memory in the extension descriptor. |
cf deploy fails with Invalid xsappname | The XSUAA application name is cdq-workbench-<space>, and the space's name has a character such a name doesn't allow, for example a blank. | Deploy into a space whose name has no blanks, for example prod. |
The XSUAA instance cdq-workbench-auth failed (create failed) | An earlier deployment couldn't create it. | Delete it with cf delete-service cdq-workbench-auth, then deploy again. |
After cf undeploy, cf services still lists a cdq-workbench-… instance, and disabling Cloud Foundry fails with You can't disable environments in which there are active service instances | The instance has a service key that the deployment didn't create; cf undeploy keeps such an instance. | Delete its keys (cf service-keys <instance>, cf delete-service-key <instance> <key>), then the instance (cf delete-service <instance>). |
btp create security/trust fails with IDP with name '…' already exists | The global account has a trust of that name, for example one for platform users, and every subaccount inherits it. | Give the subaccount's trust another name, for example Identity Authentication (business users). |
The deployment can't create cdq-workbench-db | The space sees no SAP HANA Cloud database, or more than one. | Map the database into the space. With several databases, set database_id in the extension descriptor. See Provide the database. |
Launchpad and roles
| Symptom | Cause | Fix |
|---|---|---|
| Subscribing to SAP Build Work Zone fails with 422 OIDC trust missing | The subaccount has no trust to SAP Cloud Identity Services. | Establish the trust to your Identity Authentication tenant, then subscribe again. |
| The content provider CDQ Workbench fails, or the site shows no tile | A destination of the provider is wrong, or the roles don't reach the site. | Check cdq-workbench-cdm (its URL fits the region; on an extension landscape, see html5-runtime-url in Deploy the MTA archive) and cdq-workbench-rt (the runtime host without .dt, property CEP.HTML5contentprovider). The provider must include the group and catalog assignments to roles, the roles must be assigned to the site, and the user needs the Work Zone role collection of a role. Then update the provider's content. |
| The content provider stays loading | It was saved again (Edit → Save) instead of updated. | Use Update content on the provider. |
| After an update, the site still shows the previous Tools, titles or spaces | The launchpad content wasn't updated. | Update content on the content provider CDQ Workbench. |
| The launchpad shows groups instead of spaces, or Administration before Data Management | The site's view mode is Groups, where SAP sorts the groups by title. | Set the view mode Spaces and Pages - New Experience in the site's Site Settings → Display. In a site with other content, check first what this changes there. |
| A user sees Cannot find a space assigned to you | The user has no Work Zone role collection of the Workbench. | Add the user to the user group of their role. The user logs out and on again. |
| After the Workbench was removed and deployed again, the content provider shows an error and the site has no tiles, or the Tools say the user isn't authorized | The deployment created new HTML5 content and new XSUAA role collections; the provider still points to the old content, and the old role collections' group mappings were deleted with them. | Update content on the provider, then assign the role collections again. |
| A Tool says You are not authorized for this Tool | The user has the Work Zone role collection but not the XSUAA role collection of the same name, or it's assigned under the wrong identity provider. | Assign both role collections through the role's user group, under the identity provider of Identity Authentication. The user logs out and on again. |
| The site shows no tile, and the Tools say the user isn't authorized, although the role collections are mapped to the groups | The user isn't in the group of Identity Authentication, or the group's technical name (not its display name) differs from the one in the mapping. | Add the user to the group, or fix the mapping. The user logs out and on again. |
| A dynamic tile, such as the one of Data Mirror Sync, shows only Error | The destination cdq-workbench-rt doesn't pass on the user's log-on. | Set the properties HTML5.DynamicDestination and HTML5.ForwardAuthToken to true on cdq-workbench-rt, then update the provider's content. |
Connections, destinations and the Customizing
| Symptom | Cause | Fix |
|---|---|---|
| A value help for destinations in Connections is empty | The Destination service, or the system behind the value help, can't be reached. | Check the log (cf logs cdq-workbench-srv --recent) and the destinations. |
| The check of a connection shows an HTML log-on page | The S/4HANA destination of SAP S/4HANA Cloud uses the browser host. | Use the API host (https://myNNNNNN-api.s4hana.cloud.sap) and the communication user. |
| The check shows No Authorization (HTTP 403) for an S/4HANA object | The communication arrangement for that object's scenario is missing in S/4HANA, or the technical user lacks the authorization. | Add SAP_COM_0008 (business partners) or SAP_COM_0009 (products), or the authorization, then choose Refresh. |
| Optional S/4HANA APIs shows No Authorization for purchase orders, sales orders or supplier invoices, and Business Partner Duplicates doesn't show the activity of business partners | The communication arrangement for the API's scenario is missing in S/4HANA, or the technical user lacks the read authorization. Optional: the other Tools aren't affected. | If you want the activity, add SAP_COM_0053 (purchase orders), SAP_COM_0109 (sales orders) or SAP_COM_0057 (supplier invoices), or the authorization, as in Open the SAP S/4HANA system, then choose Refresh. |
| The check of a connection shows Not Found for the Data Mirror: The CDQ workspace of the API key in the CDQ API destination … has no Data Mirror | CDQ hasn't set up a Data Mirror for the CDQ workspace of the destination's API key. | Ask CDQ to set up a Data Mirror for the workspace, or put the API key of a workspace that has one into the destination. Then choose Refresh on the connection. |
| A sync run fails right away | S/4HANA or CDQ refuses the access (HTTP 401, 403, 404), or S/4HANA rejects the job's filter. | Check the destinations and the connection (Refresh). The run shows the system's message. |
| Mappings says The Customizing of S/4HANA can't be read, or the value helps of country/region, region, legal form, tax number category and identification type in Business Partner Onboarding offer nothing | S/4HANA doesn't offer the Customizing values to the technical user: HTTP 403, the communication arrangement of YY1_CDQ_WORKBENCH is missing; HTTP 404, the scenario isn't published yet. | Set up the Customizing values as in Open the SAP S/4HANA system. Then Read Customizing Again in Mappings. |
| Mappings shows at a transformation The Workbench couldn't write the definition to CDQ; the definition CDQ has stays in force. CDQ says: … | CDQ couldn't be reached, or refused the definition; CDQ's message says why. The definition CDQ had stays in force. | Check CDQ's message and the CDQ API destination (Check Connection). Then restart the application (cf restart cdq-workbench-srv), or wait for the next activation in Mappings. If the error stays, contact CDQ. |
| A Tool says CDQ couldn't transform the company's data for your S/4HANA system | CDQ's transformation with the connection's CDQ → S/4HANA definition failed, for example because the definition was deleted in CDQ. | Check the message at the transformation in Mappings, and the row above. A definition deleted in CDQ is created again at the Workbench's next start. |
| CDQ Genius answers CDQ Genius could not be reached: HTTP 401/403 | The CDQ API destination of the connection has no API key, or the key isn't enabled for CDQ Genius. | Set the key in the destination, or ask CDQ to enable it for CDQ Genius. |
| CDQ Genius answers CDQ Genius could not answer: HTTP 404 … or Destination AI_CORE_… not found | The AI model destination is missing, its deployment in SAP AI Core was stopped or created again (new URL), or its service key was renewed. HTTP 404: missing required parameters means SAP AI Core refused the credentials or the resource group. | Fix the AI model destination. The section AI Model of the connection (Refresh) shows the check. |
| CDQ Genius takes a long time to answer | The answer runs in the background; each step shows above the input. | Check the log. After 15 minutes without progress, the answer counts as stopped, and the user can send a new message. |
Removing the Workbench deletes its applications and its service instances, and with them all its data. Your data in S/4HANA and in the Data Mirror is never touched.
Delete the service keys that you or your tools created on the Workbench's instances, for example a key of the Destination service or one for a local development setup.
cf undeploydeletes only the keys the deployment created: an instance with any other key stays, without the MTA, and later stops you from disabling Cloud Foundry.cf login -a <API endpoint> -o <org> -s <space> # the keys of an instance, e.g. cdq-workbench-destination; repeat for each cdq-workbench-… instance cf service-keys <instance> cf delete-service-key <instance> <key> -fRemove the MTA with its service instances and service keys:
# cdq-workbench is the ID of the MTA; --delete-services also deletes the HDI container and its data cf undeploy cdq-workbench --delete-services --delete-service-keysThis also deletes the XSUAA instance, and with it the role collections
CDQ Workbench AdminandCDQ Workbench Data Stewardand their assignments. Check:cf serviceslists nocdq-workbench-…instance any more.
--delete-services deletes the HDI container with all of the Workbench's data: connections, jobs and runs, the transformations with their field rules, value mappings and versions, CDQ's updates and decisions, requests including the sent ones, duplicate groups and their decisions, and conversations with CDQ Genius (see Data Flow and Data Protection). You can't undo this.
- Remove by hand what the deployment didn't create. Remove only the Workbench's part of what other applications may share, and keep the rest:
- In SAP Build Work Zone: the roles CDQ Workbench Admin and CDQ Workbench Data Steward from the site's Role Assignments (or the channel CDQ Workbench on its tab Content Channels), and the content provider CDQ Workbench in Channel Manager. Delete the site only if it was created for the Workbench; a site with other content stays, with its other roles, its view mode and Everyone as they are.
- The Work Zone role collections
~cdq_workbench_cdqWorkbenchAdminand~cdq_workbench_cdqWorkbenchDataSteward, with their assignments to user groups and users, if they remain (Security → Role Collections). The user groups in Identity Authentication only if they were created for the Workbench. - The destinations you created for the Workbench: S/4HANA, CDQ API, the AI models and
cdq-workbench-rt; andcdq-workbench-cdmif it remains. Keep a destination that other applications use. - In SAP AI Core: the Workbench's model deployments, its resource group and its service key. Deployments are billed while they run. Other resource groups and their deployments stay.
- If no one else uses them: the instance mapping of the database, the SAP HANA Cloud database, the SAP AI Core instance, the Cloud Connector's access to S/4HANA (the paths of the Workbench, or the backend or subaccount if only the Workbench uses them), and in S/4HANA the communication arrangements, the custom communication scenario
YY1_CDQ_WORKBENCHwith its views, or the technical user.
Never touched: the business partners and products in S/4HANA, including those created or changed with the Tools; the data sources and records in the Data Mirror, also the data sources admins added in Mappings; and the data transformation definitions the Workbench created in your CDQ workspace, with their assignment to the data sources.
Install again: after step 2 you can deploy into the same space again, as in Deploy the MTA archive. The Workbench then starts empty: a connection's data sources come back with the sync jobs you set up again, or when admins add them again in Mappings as existing ones. Afterwards Update content on the content provider, and assign the role collections again: the new XSUAA role collections have no group mappings yet.
Remove the whole subaccount: only if it serves the Workbench alone. Empty it first, then delete it without force delete. A forced deletion keeps the subaccount, and its subdomain, blocked for several days; an empty subaccount is deleted at once, and its subdomain can be used again right away.
# after steps 1 and 2: delete anything else left in the space (cf services), then
btp unsubscribe accounts/subaccount --subaccount <subaccount ID> --from-app SAPLaunchpadSMS --confirm
btp list accounts/environment-instance --subaccount <subaccount ID> # the ID of the Cloud Foundry environment
btp delete accounts/environment-instance <environment ID> --subaccount <subaccount ID> --confirm --wait
btp delete accounts/subaccount <subaccount ID> --confirm --waitRemove the database's instance mapping before (see step 3): it refers to the org, which is gone afterwards. Unsubscribing from SAP Build Work Zone removes its sites, their content and the Work Zone role collections. Deleting the subaccount also deletes its trust; SAP removes the application that the trust created in Identity Authentication.
When you contact CDQ's support, send along:
- The version:
cf mta cdq-workbenchshows it, and so does the Active Version of the Tools under HTML5 Applications in the cockpit. - Where: the setup step, or the Tool and what you did in it.
- The message: its exact text, and when it appeared.
- The log:
cf logs cdq-workbench-srv --recent, from around that time. - For a connection: the result of its check (Refresh in Connections).
Never send credentials: no passwords, API keys or service keys.
- CDQ Workbench: what the Workbench and its Tools do, CDQ Genius and the roles.
- Set up the CDQ Workbench on SAP BTP: the installation, the data flow, the destinations and the roles.
- Connections: checking the systems of a connection after a change to a destination.
We are constantly working on providing an outstanding user experience with our products. Please share your opinion about this tutorial!