Smart tag training for custom tags are failing

Remove the legacy cloud configuration if you encounter issues with Smart tag training for custom tags. The legacy cloud configuration interferes with the out-of-the-box integration, causing the SimilaritySearchException error and thus leading to failed training.

Description description


Adobe Experience Manager as a Cloud Service


You follow the steps in [ 1] to enable Smart tagging (Smart content service) creating an AIO project and also a Legacy cloud configuration in AEM.

After completing the smart tagging integration, you try creating a Smart Tag training for your custom tags - [ 2] but every training fail with an error [ 3] present in the logs.

[ 1]  Custom Smart Tags for images

[ 2]  Train the model for your custom tags

[ 3]

ERROR[ sling-threadpool-39aa0b87-e4ff-4521-b2c7-fce7134e4e4d-(apache-sling-job-thread-pool)-34-Granite Workflow External Process Polling Queue(com/adobe/granite/workflow/external/polling/event)] Error while checking for training status for jobId 64df73a9f768e24a117590e7 Service returned an error: HTTP/1.1 403 Forbidden
at []
at []
at []
at com.adobe.granite.workflow.core.util.WEPProxyHolder.hasFinished( [ com.adobe.granite.workflow.core:2.1.100]
at com.adobe.granite.workflow.core.job.ExternalProcessPollingHandler.process( [ com.adobe.granite.workflow.core:2.1.100]
at$JobConsumerWrapper.process( []
at []
at$100( []
at$ []
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(
at java.base/java.util.concurrent.ThreadPoolExecutor$
at java.base/
Caused by: Service returned an error: HTTP/1.1 403 Forbidden

Resolution resolution

The documentation that you followed to integrate AEM with Smart Content is for AEM on premise version 6.5.

For AEM as a Cloud Service, there is no need to manually configure the integration (creation of AIO project and legacy cloud config). For AEMaaCS, it works out of the box without any cloud configuration being added manually.

After removing the legacy cloud configuration, the smart training for custom tags should complete successfully.


The legacy cloud configuration created by the customer interfered with the OOTB integration causing the SimilaritySearchException error and leading thus to failed trainings.

The legacy cloud configurations are located under /etc/cloudconfigs. In a Production environment, there is no access to crx/de to remove it directly. Therefore, in AEMaaCS, for a production environment the legacy cloud configurations must be removed through a deployment.