Skip to content

Commit

Permalink
Merge pull request #1660 from Accenture/bug/1644-deploy-of-dataextens…
Browse files Browse the repository at this point in the history
…ion-fails-with-error-string-or-binary-data-would-be-truncated-the-statement-has-been-terminated

bug/1644 workaround, not solution for the "string or binary data would be truncated"-error
  • Loading branch information
JoernBerkefeld authored Sep 2, 2024
2 parents 61c97ab + 61baba3 commit 1d7fe93
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/metadataTypes/DataExtensionField.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,13 @@ class DataExtensionField extends MetadataType {
* @returns {Promise.<{metadata: DataExtensionFieldMap, type: string}>} Promise of items
*/
static async retrieveForCacheDE(requestParams, additionalFields) {
return super.retrieveSOAP(null, requestParams, null, additionalFields);
let response;
response = await super.retrieveSOAP(null, requestParams, null, additionalFields);
if (!response) {
// try again but without filters as a workaround for the "String or binary data would be truncated." issue
response = await super.retrieveSOAP(null, {}, null, additionalFields);
}
return response;
}

/**
Expand Down

0 comments on commit 1d7fe93

Please sign in to comment.