You need to sign in to do that
Don't have an account?
Dinesh Voonna 17
String length exceeds maximum: 6000000
Hi,
I am getting this Error "String length exceeds maximum: 6000000" while I am converting Body of an attachment to String.
Please find my code and Screen shot.
Please help me, how to fix this error.
Code:-
reportAttachment = [SELECT Id, Name, Body, ContentType FROM Attachment WHERE ParentId = :idReport];
public string getReportBody() {
return reportAttachment.get(0).Body.toString();
}
Screen Shot:-
I am getting this Error "String length exceeds maximum: 6000000" while I am converting Body of an attachment to String.
Please find my code and Screen shot.
Please help me, how to fix this error.
Code:-
reportAttachment = [SELECT Id, Name, Body, ContentType FROM Attachment WHERE ParentId = :idReport];
public string getReportBody() {
return reportAttachment.get(0).Body.toString();
}
Screen Shot:-
Please look this, if this(http://www.ceus-now.com/string-length-exceeds-maximum-6000000/) is helpful for you.
Thanks for the Article. But I don't want to use third party tools. Using Salesforce functionality, can it be possible?
This is the limitation of Salesforce. The largest amount of text that can be displayed in one textarea element is 6 million characters.