‘Service url is missing’ error in AEM Smart Tagging

This article explains how to address the Service url is missing error in Adobe Experience Manager (AEM) Smart Tagging by ensuring the sling:resourceType property is correctly set in the Smart Content configuration.

Description description

Environment

Adobe Experience Manager (AEM) LTS (Long Term Support)

Symptoms

  • Smart Tagging fails to tag assets as expected.
  • The following warning appears in the AEM logs when attempting to auto-tag assets:
com.day.cq.dam.similaritysearch.internal.workflow.process.AutoTagAssetProcess Failed to auto-tag :/content/dam/.../renditions/original
com.day.cq.dam.similaritysearch.internal.SimilaritySearchException: Service url is missing. Please verify smart-tagging configurations.

Cause

The sling:resourceType property in the Smart Content configuration node is set incorrectly (for example, to cq/cloudserviceconfigs/components/servicepage instead of dam/components/smarttaggingservicepage). As a result, AEM does not recognize the configuration as valid, and the AutoTagAssetProcess cannot resolve the service URL, even though the property exists.

Resolution resolution

To fix the Service url is missing error, follow these steps:

  1. In your AEM environment, navigate to the Smart Content configuration node in the repository:
    • Path: /conf/global/settings/cloudconfigs/smarttags//jcr:content
  2. Check the value of the sling:resourceType property.
  3. If sling:resourceType is set to cq/cloudserviceconfigs/components/servicepage (or any value other than dam/components/smarttaggingservicepage), update it to dam/components/smarttaggingservicepage
  4. Save the changes.
  5. Ensure the configuration is properly activated (published) if your environment requires activation for changes to take effect.
  6. Re-run the Smart Tagging workflow on affected assets to validate that tagging now works as expected.
  7. Monitor the AEM logs to confirm that the Service url is missing error no longer appears and that assets are being tagged.
recommendation-more-help
experience-cloud-kcs-help-kbarticles