function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kardoluskardolus 

sf4twitter Exception

We cannot execute searches in sf4twitter anymore. The package is trying to insert a field longer than 255 characters in the sf4twitter__Last_Tweet_Ids__c field.

 

Did anyone encounter the same issue? Is it solveble with a Trigger before upsert?

 

error: STRING_TOO_LONG in Salesforce for Twitter and Facebook (v4)

 

2011-08-18 22:36:43 +0200 | Manual search by keyword finished. Search id:a0pD0000002BGpIIAW, Update failed. First exception on row 0 with id a0pD0000002BGpIIAW; first error: STRING_TOO_LONG, Last Tweet Ids: data value too large: 93270451278712832,93270451278712832,93270512708501505,93270648138383360,93270648138383360,93271094542336001,93271094542336001,98318460739780608,101296822202531841,101952570137915392,101952946392150016,103916366783975424,103766241453420544,101944792103141376 (max length=255): [sf4twitter__Last_Tweet_Ids__c]




Best Answer chosen by Admin (Salesforce Developers) 
kardoluskardolus

Updated to 4.2.

 

Problem solved.

All Answers

Rahul SharmaRahul Sharma

sf4twitter__Last_Tweet_Ids__c is of type of text ond its can hold upto 255 characters.

So change the datatype to Text Area (Long) and also increase the length.

kardoluskardolus

I can't, it is a managed field from a package (sf4twitter)

Rahul SharmaRahul Sharma

Is the code also from managed package?

Which is the object with the field sf4twitter__Last_Tweet_Ids__c, 

Let me know, if it allows to create a trigger on that object and the object name.

kardoluskardolus

It's from the sf4twitter__Twitter_Search__c Object, which is part of the managed sf4twitter package.

kardoluskardolus

Additional info: We are using Version 4.1 of the Salesforce for Twitter package (sf4twitter).

 

+ Q: A trigger before upsert is probably not going to work right?

kardoluskardolus

Updated to 4.2.

 

Problem solved.

This was selected as the best answer
Rahul SharmaRahul Sharma

Great. :)