There can be many causes for the wrong HTML being served to Campaign.
- A Public URL could be configured in the AEM Campaign Integration - Configuration which goes to the site via CDN, Load Balancer, or Dispatcher. Something could be broken in any layer of the architectural stack then - CDN cache problem, Load Balancer pointing to wrong dispatchers, Dispatcher configured incorrectly or failing, AEM Publish instances failing with errors or wrong code.
- If it is serving content directly from a publish instance, then it could be that the publish instance is misconfigured, experiencing errors, or the wrong code is installed, etc.
-
Check the Public URL in the AEM Campaign Integration OSGi configuration [1], the Public URL is the URL the workflow uses to retrieve the HTML that is sent to Adobe Campaign. If this field is populated, then copy the URL to the clipboard:
[1] http://host:port/system/console/configMgr/com.day.cq.mcm.campaign.impl.IntegrationConfigImpl
-
In most cases, you would find that HTML is failing to display properly in the same way as you view in Campaign. This is the URL that is retrieved and sent to Adobe Campaign by the workflow. Viewing this URL allows you to debug if the problem is a CDN caching, Load Balancing, Dispatcher Caching, or AEM publish instance or code issue (i.e. wrong code deployed on the publish instance).