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.
RCA:
The legacy cloud configuration created by the user 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.