You need to sign in to do that
Don't have an account?
SATHISH REDDY.
System.EmailTemplateRenderException: UNKNOWN_EXCEPTION: StringPlusClobField: clob inconsistent with varchar, and unable to clean varchar
Hi,
I am seeing this error in the recent times when clicked on an image on VF page which calls the following method previewEmail(). (This error was never seen befoere since the past 2 years). Also please find the error message screen shots received by multiple users while clicking the image. This error is inconsistent & hard to replicate.
Error Line as per logs - "emailBody = Messaging.renderStoredEmailTemplate(templateId, con.Id, accId);"
for User 2:
Any help is really appreciated.
Thanks,
Sathish
I am seeing this error in the recent times when clicked on an image on VF page which calls the following method previewEmail(). (This error was never seen befoere since the past 2 years). Also please find the error message screen shots received by multiple users while clicking the image. This error is inconsistent & hard to replicate.
Error Line as per logs - "emailBody = Messaging.renderStoredEmailTemplate(templateId, con.Id, accId);"
public PageReference previewEmail(){ Id accId = ApexPages.currentPage().getParameters().get('accId'); Messaging.SingleEmailMessage emailBody; Id templateId = [SELECT DeveloperName,Id,IsActive,Name FROM EmailTemplate where DeveloperName =: 'Account_Mass_Info'].Id; string[] sendingTo = new String[]{}; for (Email_to_users_List__c cs : Email_to_users_List__c.getall().values()){ sendingTo.add(cs.Email_List__c); } Contact con = new Contact(); con.FirstName = 'Test'; con.LastName = 'Contact'; con.Email = 'no-reply@organization.com'; con.Title = 'Test Title'; insert con; /*Line 271*/ emailBody = Messaging.renderStoredEmailTemplate(templateId, con.Id, accId); emailWrap = new emailWrapper(sendingTo, emailBody.getHTMLBody()); //Use Delete to delete the 'Test Contact' Delete con; Return null; }Error Log:
01:10:45.0 (760618096)|EXCEPTION_THROWN|[271]|System.EmailTemplateRenderException: UNKNOWN_EXCEPTION: StringPlusClobField: clob inconsistent with varchar, and unable to clean varchar 01:10:45.0 (760973008)|SYSTEM_MODE_EXIT|false 01:10:45.0 (761229722)|FATAL_ERROR|System.EmailTemplateRenderException: UNKNOWN_EXCEPTION: StringPlusClobField: clob inconsistent with varchar, and unable to clean varchar Class.AccListMassUpdateStatusTABController_AC.previewEmail: line 271, column 1for User 1:
for User 2:
Any help is really appreciated.
Thanks,
Sathish
Seems, nothing wrong with the code.
May I suggest you please reach out to the Salesforce support team for a better assistance on the above issue.
You may reach the support team at the below email address.
- support@salesforce.com
Thanks,Nagendra