Help approving a template with HTML verification errors (duplicate 'ID') | Community
Skip to main content
February 8, 2016
Solved

Help approving a template with HTML verification errors (duplicate 'ID')

  • February 8, 2016
  • 4 replies
  • 4641 views

I've built a new newsletter template that contains lots of "div class ="mktEditable" id=""" fields which work during testing. But when I attempt to approve the template, I get an error message that it cannot be approved because of HTML verification errors (duplicate 'ID'). I've used the "validate html" feature and found a few issues, but nothing related to the ID field.

I've double and triple checked that there are no id= fields that are duplicated.

Or is the duplicate 'id' error something related to something different?

Thanks,
Courtney

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Grégoire_Miche2

Hi Courtney,

In addition to search for all the ID=, search also for all the mktEditable classes. I have seen this error happening with missing IDs.

Also, remove all unecessary IDs (the ones that are not placed on a mktEditable tag) and avoid css styles on ID's, prefer classes.

-Greg

4 replies

Kenny_Elkington
Adobe Employee
Adobe Employee
February 8, 2016

Do you have any duplicate name= parameters?

Grégoire_Miche2
Grégoire_Miche2Accepted solution
Level 10
February 9, 2016

Hi Courtney,

In addition to search for all the ID=, search also for all the mktEditable classes. I have seen this error happening with missing IDs.

Also, remove all unecessary IDs (the ones that are not placed on a mktEditable tag) and avoid css styles on ID's, prefer classes.

-Greg

February 9, 2016

Thank you! I went through and made sure that there were no mktEditable classes that didn't have associated IDs.

I did find that the HTML includes id="backgroundTable" within many of the table settings, meaning it was used multiple times.

That worked - I was able to approve the template.

Thanks again.

May 31, 2016

I'm still getting the same error message after following all your suggestions.

Does anyone have other ideas? Here's my code: pastebin.com/6zrPhPW7

Thanks!

pavel_plachky
Level 5
June 1, 2016

Hi Flora,

I am not sure I can help you with your ID question, but looking at the end of the HTML you posted, I noted two things that you should resolve:

1. having JavaScript in HTML email is going to flag errors in email clients. You should not use JavaScript in emails.

2. The unsubscribe link has a specific value for Marketo token, which means it will unsubscribe always the same person. You should replace the string

     mkt_tok=3RkMMJWWfF9wsRomrfCcI63Em2iQPJWpsrB0B%2FDC18kX3RUvJLSafkz6htBZF5s8TM3DWVVIXqBJ4kEAQrA%3D

with

     mkt_tok=##MKT_TOK##

Best,

Pavel