• kurtz_wolfgang_pre
  • NEWBIE
  • 24 Points
  • Member since 2013

  • Chatter
    Feed
  • 1
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 3
    Questions
  • 4
    Replies

Hello All,

 

  I would appreciate if anybody could provide some insight into this error:

 

The weird part of the below exception is: the field is 255 characters long and the string is not even 50 characters.

 I am at my wit's end regarding this problem. Any information would be very helpful.

 

Thanks & Regards,

K.

 

length of ReferenceNumber: 255

 

System.DmlException: Insert failed. First exception on row 0; first error: STRING_TOO_LONG, Reference Number: data value too large: this is 50 characters long string. (max length=25): [Reference_Number__c]

Hello SFDC Gurus,

 

 

   This is out of curiosity. Does recycle bin store the sharing records? I don't think so, however Salesforce support informed us to pull the sharing records from recycle bin. Can somebody shed some light on this matter? I would greatly appreciate your input on this.

 

Thanks,

K

 

   

Hello SFDC Gurus,

 

    I am not able to explain my code below. Why is it giving such results? Would appreciate if anybody can help me with this behaviour.

 

Thanks in advance,

K

 

if(objectNameLabelMap.size() == 0){
for(Schema.Sobjecttype obj : objectMap.values()){
objectNameLabelMap.put(obj.getDescribe().getName(),obj.getDescribe().getLabel());
}
}
set<string> setObjName = objectNameLabelMap.keySet();

 

//get the api names of object labels. lstStr = {Contact, Account}

for(String str2 : lstStr){
for(string str : setObjName){
System.debug('str2:' + str2 + '\t str: '+ str + '\t objectNameLabelMap.get(str):'+ objectNameLabelMap.get(str));
System.debug('objectNameLabelMap.get(str).equalsIgnoreCase(str2):'+ objectNameLabelMap.get(str).equalsIgnoreCase(str2));
System.debug('objectNameLabelMap.get(str).compareTo(str2):'+ objectNameLabelMap.get(str).compareTo(str2));
String tmpObjName = objectNameLabelMap.get(str).trim();
System.debug('str2.length():'+ str2.trim().length());
System.debug('tmpObjName.length():'+ tmpObjName.length());
System.debug('tmpObjName.compareTo(str2):'+ tmpObjName.equalsIgnoreCase(str2));

if(tmpObjName.equalsIgnoreCase(str2)){
System.debug('Found match!!');
lstOfSearchObjectNames.add(str);
break;
}

 

-------------------------------------------------

Debug output:

-------------------

str2: Account         str: Account                              objectNameLabelMap.get(str):Account

 

objectNameLabelMap.get(str).equalsIgnoreCase(str2):false --- WHY??

objectNameLabelMap.get(str).compareTo(str2):33 ---- HOW??

str2.length():7

tmpObjName.length():7

tmpObjName.equalsIgnoreCase(str2):false 

Hello All,

 

  I would appreciate if anybody could provide some insight into this error:

 

The weird part of the below exception is: the field is 255 characters long and the string is not even 50 characters.

 I am at my wit's end regarding this problem. Any information would be very helpful.

 

Thanks & Regards,

K.

 

length of ReferenceNumber: 255

 

System.DmlException: Insert failed. First exception on row 0; first error: STRING_TOO_LONG, Reference Number: data value too large: this is 50 characters long string. (max length=25): [Reference_Number__c]

Hello All,

 

  I would appreciate if anybody could provide some insight into this error:

 

The weird part of the below exception is: the field is 255 characters long and the string is not even 50 characters.

 I am at my wit's end regarding this problem. Any information would be very helpful.

 

Thanks & Regards,

K.

 

length of ReferenceNumber: 255

 

System.DmlException: Insert failed. First exception on row 0; first error: STRING_TOO_LONG, Reference Number: data value too large: this is 50 characters long string. (max length=25): [Reference_Number__c]

Hello SFDC Gurus,

 

 

   This is out of curiosity. Does recycle bin store the sharing records? I don't think so, however Salesforce support informed us to pull the sharing records from recycle bin. Can somebody shed some light on this matter? I would greatly appreciate your input on this.

 

Thanks,

K

 

   

Hi There ,
 
Here is my requirement.
 
Step 1: I need a workflow action to update a field after 3 hours.
Step 2: When that field is updated , I want to check for a condition and if it is true want to create a task.
 
For step 1 : I created a time trigger to update the field  A  with Value "TEST" after 3 hours and it worked fine.
 
For step 2: I created an other workflow which checks for the  conditions :   field A equal "TEST"  and status of the record equals "Working"  and it  creates a task .               But this one is not getting fired.
 
So my question is , Is it even valid what I am doing?  If it is what is that I am doing wrong.
 
 
Thanks for your help.