Error while Exporting Experience Fragment to Adobe Target
Hi Everyone,
We are using AEM as Clouse service for our website and I have integrated Adobe Target and Adobe Launch as Cloud Service. I configure A/B Testing and it works fine, so the configuration is done correctly.
However, when I am trying to export Experience Fragment to Adobe Target, it throws error like this -

Error log shows this message -
02.10.2023 00:09:56.537 [cm-p91922-e816739-aem-author-748f7d7ff5-bj77q] *WARN* [sling-cq-polling-importer-10-/conf/<my-app>/settings/cloudconfigs/target] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Failed to import PollConfig(/conf/<my-app>/settings/cloudconfigs/target/jcr:content/segmentsPollConfig): scheme=adobe-target-segments,source=/conf/<my-app>/settings/cloudconfigs/target,target=/etc/segmentation/adobe-target/<client-code>,interval=1200s,enabled=true
java.lang.NullPointerException: null
at com.day.cq.analytics.testandtarget.impl.SegmentImporter.importData(SegmentImporter.java:159) [com.adobe.cq.cq-target-integration:1.4.46]
at com.day.cq.polling.importer.impl.PollingImporterImpl.importData(PollingImporterImpl.java:561) [com.day.cq.cq-polling-importer:5.12.6]
at com.day.cq.polling.importer.impl.PollingImporterImpl.access$000(PollingImporterImpl.java:72) [com.day.cq.cq-polling-importer:5.12.6]
at com.day.cq.polling.importer.impl.PollingImporterImpl$1.run(PollingImporterImpl.java:463) [com.day.cq.cq-polling-importer:5.12.6]
at org.apache.sling.commons.scheduler.impl.QuartzJobExecutor.execute(QuartzJobExecutor.java:349) [org.apache.sling.commons.scheduler:2.7.12]
at org.quartz.core.JobRunShell.run(JobRunShell.java:202) [org.apache.sling.commons.scheduler:2.7.12]
After some research, I tried multiple things. I have tried with both Editor and Approver access on API credentials. I checked that cloud configs are created in this path : apps/conf/<my-app>/settings/cloudconfigs/target , as shown below :

One thing that I figured out might be causing it is, that I cannot see Target Workspace under Cloud Configurations in Folder properties (as described here in Step 4 - https://experienceleague.adobe.com/docs/experience-manager-65/administering/integration/experience-fragments-target.html?lang=en) :

Please let me know if I am missing anything here.
Many thanks in advance !
Best Regards,
Rupal


