Activity Forums Salesforce® Discussions Getting error of 'BLOB is not a valid UTF-8 string'.

  • Ravi

    Member
    April 30, 2016 at 9:23 am

    Hi Nitish,

    The Blob type only supports UTF-8 encoded strings, you must ensure that the file your uploading complies with this encoding, otherwise you will get this error in cases where you have special characters.

  • Suyash

    Member
    April 30, 2016 at 10:26 am

    Hi Nitish,

    This error was too faced by me when I was writing the email service class.
    First ensure that your file is  encoded in UTF-8 encoding.
    Second if you are splitting your file which was my case check it split in right way as some times extra ",(comma)" creates this type of error.

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos