When attempting to unmap a data stream, you might encounter the following error:
Error Message:
Innermost Cause: shared.cdp.exceptions.CDPHandledException: Failed to retrieve the ExternalizedReferences with exception: common.exception.SfdcSqlException: ERROR: value with length 18 too long for type character varying(15)
{call cReport.bulk_get_reports(?,?,?,?)}
SQLState: 22001
File: varchar.c, Routine: varchar, Line: 640
; [conn=STANDARD:1:1:1932790:1]:
This error occurs when the DMO or a field within the data stream is currently used in a report.
Before unmapping a data stream, verify that no reports are dependent on it by retrieving associated reports using WorkBench API calls.
/services/data/<API-Version>/analytics/report-types/<report-type>/recent-reports?pageSize=100&isCurrentUser=true&offset=0
For example, if the API name of the DMO is ssot__Account__dlm, use:
/services/data/v62.0/analytics/report-types/CustomEntity$ssot__Account__dlm/recent-reports?pageSize=100&isCurrentUser=true&offset=0
/services/data/v62.0/analytics/report-types/CustomEntity$ssot__Account__dlm/recent-reports?pageSize=100&isCurrentUser=false&offset=0
If reports are returned in the API response, delete or modify them as needed before proceeding with unmapping.
Once all dependencies are removed or updated, attempt to unmap the data stream again and verify the issue is resolved.
004519291

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.