DCM and Download tool - DCM tag error
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am attempting to use DCM in Desktop Designer to store the API key and secret for an API and use the download tool tool retrieve data.
Based on the documentation this is possible using DCM aliases and Resolve on Payload in the download tool to add the credentials to the query string. Documentation here.
What I am running into is an error that seems to be related to the password alias that is not descriptive, so I have no idea what might be wrong.
Here's the basic steps I took:
- Set up a new data source as URL for downloading with the base url for the site
- Set up credentials with username and password (using the API key and secret respectively)
- Linked them together
- Set up a new workflow with text input the contains the rest of the URL for the endpoint
- Added the download tool to use the new connection and select "Resolve on Payload"
- On the Payload tab , I added the query string parameters and included the two aliases for DCM {dcm:userName} and {dcm:password}
When I run the workflow I get an error on the download tool "DCM tag error" and nothing else.
If I remove the {dcm:password} alias in the download tool and replace it with the api secret directly in the tool, the workflow works as expected.
What could I be missing?
 
 
  
- Labels:
- Error Message
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Hi,
Our team is facing the same issue. Does anyone have a solution they would be willing to share with us? It would be appreciated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
I am getting the same error. When I remove {dcm:password} and place the value into a field in the "And values from these fields" section of the Payload tab, my workflow runs fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Has anyone already found a solution for the above problem? I am currently facing the same issue and getting the error:
DCM tag error: Secret expansion of {dcm:password} is forbidden. Secrets can't be present in URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Our company upgraded to 2023.2 and the DCM Tag error is gone. Don't forget to set Content-Type to "multipart/form-data on the Payload tab.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thank you, I hadn't adjusted the Content-Type, it works now.
