0

When we define a data extension in Marketing Cloud with two fields:

  • Email (254)
  • Company (50)

If we try to import records with "Company" values that includes length of 50 or under and some values with greater than 50 characters.

Only those rows are inserted that includes "Company" value less than or equal to 50 character limit. Rest with greater than 50 characters value errors out. exceeded the max field length of

Question - Is it possible to avoid the error so value up to 50 characters is inserted and extra characters are truncated?

8
  • 1
    No, your use case would be to import the complete data then use SQL query to return a substring() to a new DE
    – EazyE
    Jan 22 '21 at 0:45
  • Hi @EazyE Using a query and pushing the data in a new DE would be data manipulation. But, it can only use the records that are present in the original data extension. My question is focused on the original data extension. How to make sure importing data to the original DE is successful at the first place so I am not losing any records during the import due to the character length issue. Is it possible that data extension accept defined length of character and if imported data includes more than defined length, then values are simple truncated. This way at least record makes it to the DE
    – kuml2
    Jan 22 '21 at 0:50
  • 1
    answer is still No, you should know the max length of the field in your file and mimic that in your DE setup
    – EazyE
    Jan 22 '21 at 0:52
  • Ok - so, if I understood this correctly, there is no way data can be imported in a truncated manner. It will be either pass (inserted) or fail completely?
    – kuml2
    Jan 22 '21 at 0:56
  • 1
    Why would you want to truncate the company name? Isn't the obvious solution to just increase the character limit of the field in the data extension? Jan 22 '21 at 9:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.