Enrichment - Not able to create collection which item length is greater than 255 | Community
Skip to main content
Level 4
May 25, 2020
Solved

Enrichment - Not able to create collection which item length is greater than 255

  • May 25, 2020
  • 3 replies
  • 8436 views

Hi All,

 

Use Case:

I have to send an email to customers who have purchased items. I have to send email with item image links which customers have purchased.

 

Approach followed:

I have created two schemas for this Order, OrderLineItem. I have followed the below steps in workflow.

  1. I have queried recent Order records using Query activity.
  2. Then I have used Enrichment activity to create collection(Size: 3) "itemNameImage" of Order line item and add it to temporary schema. The collection variable itemNameImage holds HTML content like <a href="@productLink"><img src="@productImage"/></a>
  3. Then I will just add the collection variable "itemNameImage" to the email as dynamic variable.

 

Issue:

The above approach works fine when each variable itemNameImage in collection holds value whose size is less than 255. When it exceeds size 255, campaign throws error as in screenshot below.

 

Any help would be great !!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Craig_Thonis

Hi Santhosh,

 

I'd suggest reviewing the following thread which goes through numerous solutions for this.  It's for Campaign Classic but the premise is the same.  Standard string fields will only allow a max of 255 characters and there isn't a way to change that.  So the only option would be to change the field at the schema level to a data type that allows for more than 255 characters.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/using-instance-variable-string-gt-255-characters-in-delivery/qaq-p/328034

 

You'll need to update the field at the schema level to something like a LongValue.

 

Regards,

Craig

3 replies

raj_mandalapu
Level 7
May 26, 2020

Please check the length of the itemNameImage field, I think the length is restricting. 

Level 4
May 26, 2020

Thanks for the reply @raj_mandalapu 

 

Yes, The length of itemNameImage is getting restricted by default to 255. But i want to store more than 255 characters. The problem is i am not able to change the itemNameImage field length in Enrichment activity. Please share your input if this collection field "itemNameImage" length can be changed.

 

chan2111
Level 4
May 27, 2020
If it is a DB field pls choose longText as data type , if it is a field in Transactional email then choose the length to be > 255
Craig_Thonis
Adobe Employee
Craig_ThonisAdobe EmployeeAccepted solution
Adobe Employee
June 5, 2020

Hi Santhosh,

 

I'd suggest reviewing the following thread which goes through numerous solutions for this.  It's for Campaign Classic but the premise is the same.  Standard string fields will only allow a max of 255 characters and there isn't a way to change that.  So the only option would be to change the field at the schema level to a data type that allows for more than 255 characters.

https://experienceleaguecommunities.adobe.com/t5/adobe-campaign-classic-questions/using-instance-variable-string-gt-255-characters-in-delivery/qaq-p/328034

 

You'll need to update the field at the schema level to something like a LongValue.

 

Regards,

Craig