You need to sign in to do that
Don't have an account?
Millie Wise
Error message when emailing invoice
When I click "email PDF" on the sales invoice I receive an error message:
SIN003349 - SendEmail failed. First exception on row 0; first error: STRING_TOO_LONG, Content Type: data value too large: application/pdf; name="=?ISO-8859-1?B?QlNIIEV2IEFsZXRsZXJpIFNhbmF5aSB2ZSBUaWM=?= =?ISO-8859-1?B?YXJldCBBLj8uIEludm9pY2VTSU4wMDMzNDkucGRm?=" (max length=120): [ContentType]
SIN003349 - SendEmail failed. First exception on row 0; first error: STRING_TOO_LONG, Content Type: data value too large: application/pdf; name="=?ISO-8859-1?B?QlNIIEV2IEFsZXRsZXJpIFNhbmF5aSB2ZSBUaWM=?= =?ISO-8859-1?B?YXJldCBBLj8uIEludm9pY2VTSU4wMDMzNDkucGRm?=" (max length=120): [ContentType]
We even wrote some code to test the string length in its encoded form, and make sure that doesn't go over 100 characters, yet we still receive the error. I'd be super stoked if you figured this one out! Thanks! I'll also try and post here if I make any headway.
Here is our apex to attempt to keep the string name small, which may/may not help you: