Re: Value for field 'someCustomField' exceeds max length

Anonymous
Not applicable

Hi,

I have a custom field with Text type.

When I try to update a lead with about 2400 characters length, I get this error.

{"code":"1003","message":"Value for field 'someCustomField' exceeds max length"}

A strange thing is there are already 2 leads with more than 2400 characters length, like 3500 and 4000.

But this one gets an error.

What could be the reason for this lead to fail?

Cheers,

Hidenari

Tags (1)
19 REPLIES 19
Michael_Langell
Level 4

FYI all,

I actually got the below response on 7/12, but figured I would send to you all as well.  The issue should be fixed now.  Let me know if any of you are still experiencing problems. 

This has been resolved by our engineers. A patch was developed and released on Friday. Please let me know if this is still an issue for you or if the patch resolved it.

-Mike 

Anonymous
Not applicable

Thank you for sharing. I have confirmed this in testing.

Michael_Langell
Level 4

Hi everyone,

I have actually seen this field type before, and I think you will only see it with SFDC custom fields.  It is the default field type when a custom field is created in Marketo by Salesforce with a text type.  The SFDC text type could be text or text area.  Marketo does not differentiate the SFDC field type and just labels both as text.  Just looked in my instance to confirm this.

So that is why you would get errors with some text fields above 255 and others will be fine.  Depends on what the field type in SFDC and the associated character limit is.      

Custom Field Types 

However, I cannot answer why this would be giving you more issues now.

-Mike

Anonymous
Not applicable

I don't use Salesforce.

Anonymous
Not applicable

Looking into this further it is impacting all Marketo clients. Fields that used to accept more than 2k characters now all have a limit of 2k as of the 6/3 release.

SanfordWhiteman
Level 10 - Community Moderator

Yes, this is causing us major concern.  Like I said we don't even have a clear picture about whether data is/can be truncated.  Someone from Mkto needs to get on this, stat.

ETA: I opened a case via one of my clients.  Advise everyone affected to do the same.

Anonymous
Not applicable

We have checked with some of our client and they have the fields syncing to Text Area (Long) fields in Salesforce which have a default limit of 32,768 characters. We are seeing fields of much fewer characters than this still fail when being pushed to the synced Marketo field.

SanfordWhiteman
Level 10 - Community Moderator

"text" has long been the API type for textarea (which in turn is the Mkto type for longtext).

What we have now is a much more significant bug than just aligning names (which would still be a regression). This is creating a whole new API type in Marketo: text(n). Is this correctly aligning lengths that were previously ignored in Mkto? Maybe, but that says nothing about truncating existing values, nor why string(n) isn't being used. It's going to require a audit of all fields to know what's "right."

SanfordWhiteman
Level 10 - Community Moderator

To give what should be a clear example, billingStreet previously had the API type text with no length value, interpreted as a TEXT = CLOB = NVARCHAR(MAX) at a database level (NVARCHAR(32000) or NVARCHAR(64000) would suffice given domain knowledge, but that precision is not necessary and doesn't change the problem).

In contrast, billingCity previously had the API type string(255), mapped to NVARCHAR(255).

With the recent release, the API type for billingStreet changed to text(2000). This was not previously a possible type.  Since lengths were not previously included, text was assumed to use the platform's max # of storage bytes typically 2 GB (data length being approx. half of that).  When a length is suddenly specified, it appears that the column is being destructively truncated from 2GB storage/1GB data to 2000 bytes data.  This kills any integration that dynamically synchronizes Marketo and SQL.  Truncating the column (even if there is no current value > 2000 bytes) appears to be a destructive act.

Kenny Elkington

Anonymous
Not applicable

Thanks for the reply! Syncing from Salesforce seems to bea commonality between the clients I am seeing this problem with. I have clients that have custom fields they created in Salesforce (with the __c suffix) and clients that have fields without that suffix that they must have created in Marketo but all impacted clients have at least some fields syncing from Salesforce. It's possible Marketo started doing a check on the field length in Salesforce recently and rejecting data that will not fit that.

Anonymous
Not applicable

I have started experiencing this same issue for many clients starting a few days ago when it had never happened before. When queried through the API the field type is 'text' even though this is not an option anywhere in the documentation and we request clients create the field as a textArea. Has anything changed regarding this?

Anonymous
Not applicable

Finally at least one person is experiencing the same issue as mine.

SanfordWhiteman
Level 10 - Community Moderator

I am as well.  Fields started switching up types on me and I had to hard-code overrides in my integration layer.  Very frustrating.

Mike Langellotti

Kenny_Elkington
Marketo Employee

Text type fields have a max length of 2000 characters.  Text area types have a max length of 30000.

Anonymous
Not applicable

There is no mention about "Text" field type in here:

http://developers.marketo.com/documentation/getting-started/field-types/

Only "Textarea" is available.

In the Field Management tool, I can only choose "Text Area".

I use the word "Text" because when I view it in the management tool, it says "Text" but I believe this is "Text Area" type.

Grégoire_Miche2
Level 10

The field creation wizard proposed string and text area.

-Greg

Anonymous
Not applicable

I know String is different too. It has only 255 length.

Grégoire_Miche2
Level 10

Are you sure it's a Text Area field? It looks like it is a String field (max length 255 chars, AFAIK)

Greg

Anonymous
Not applicable

I'm sure it is Text.

It doesn't explain that if it is String, all the other leads have more than 255.

I know it is strange but that's what I'm experiencing.