I've been trying to paste some email code into the edit section, and I cannot save. I am not getting any error code really, just a message that says "An unexpected error has occurred". I called sales force, and they said it was probably an invalid character from pasted code. However, I hand coded the email myself, and I have never had this issue before. Has anyone had this problem? Does anyone have suggestions as to what may have caused this?

I've narrowed it down to this bit of code.

            <table border="0" cellpadding="0" cellspacing="0" class="columns-container" width="100%" bgcolor="#e5edca">
                <td class="force-col" valign="top">

                  <!-- ### COLUMN 2 ### -->
                  <table border="0" cellspacing="0" cellpadding="0" align="center" width="500" class="col-2" id="last-col-2">
                      <td class="center-text" align="left" valign="top" style="font-size:13px; line-height: 20px; color: #666666;letter-spacing: 1px;font-family: Verdana, sans-serif;">
                        <br class="hideme">
                        <div style="font-size: 15px;line-height: 15px;">Just a few more points to earn your <strong>$5</strong> voucher! Get <strong>$5</strong> for your first <strong>500</strong> points earned and <strong>$1</strong> for every <strong>100</strong> points after.</div>

  • Without seeing the email its hard to say, but I've had issues where quotes (") have jacked up things when copying and pasting stuff.
    – EricSSH
    Apr 20 '16 at 16:53
  • Like quotes in a <p> tag or <span> or something? Apr 20 '16 at 17:00
  • 2
    Copy the email into notepad, and then try.. It may get rid of any of the weird formatting
    – EricSSH
    Apr 20 '16 at 17:09
  • I'm on a mac, so no notepad unfortunately. I'm using atom right now. Apr 20 '16 at 17:14
  • @KathrynCrawford - Same thing if you copy and paste into textedit then copy and paste into salesforce
    – Eric
    Apr 20 '16 at 17:29

After narrowing it down to that one table, I ended up rewriting the div with text in it by hand. I guess I may have copied that text block and something weird got copied over. Guess I learned my lesson about copying and pasting from photoshop!

  • a non UTF-8 char could have done it
    – cropredy
    Apr 21 '16 at 4:24
  • Yeah, that's true. Whatever it was, it wasn't visible to my eye. So weird. Apr 21 '16 at 21:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.