Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Custom Polling Importer on AEM 6.3 with archetype 11

Avatar

Level 1

I have followed this link to create a custom polling importer :

Adobe Experience Manager Help | Creating Custom Data Importer Services for Adobe Experience Manager

I have followed all the steps correctly on both AEM 6.2 with archetype 10 and AEM 6.3 with archetype 11.

But the service seems to get called fine in AEM 6.2 archetype10 but not on AEM 6.3. archetype11.

AEM 6.2 with Archetype 10

Error.log file

*****************************************************************************************************

  1. 12.08.2017 14:59:46.747 *INFO* [sling-oak-observation-49] com.day.cq.polling.importer.impl.PollingImporterImpl addResource: Registering PollConfig PollConfig(/content/poll/jcr:content): scheme=myimporter,source=myDataSource,target=/content/poll/jcr:content,interval=1800s,enabled=true
  2. 12.08.2017 14:59:46.748 *INFO* [sling-oak-observation-49] com.day.cq.cq-polling-importer Service [PollConfig(/content/poll/jcr:content): scheme=myimporter,source=myDataSource,target=/content/poll/jcr:content,interval=1800s,enabled=true,5078, [java.lang.Runnable]] ServiceEvent REGISTERED
  3. 12.08.2017 14:59:46.767 *INFO* [sling-default-22-myDataSource.5078] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Importing data from myimporter:myDataSource to /content/poll/jcr:content as polling-importer-service by uk.co.three.rebus.three_rebus.core.SimpleDSComponent@32f2dd0b
  4. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent Date : Sat Aug 12 14:59:46 IST 2017
  5. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent scheme : myimporter
  6. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent datasource : myDataSource
  7. 12.08.2017 14:59:46.768 *INFO* [sling-default-22-myDataSource.5078] uk.co.three.rebus.three_rebus.core.SimpleDSComponent target : /content/poll/jcr:content

  ********************************************************************************************************************

AEM 6.3 with Archetype 11

Error.log file

******************************************************************************

  1. 12.08.2017 15:11:59.760 *WARN* [sling-cq-polling-importer-10-http://localhost:4502/content/Commercial.xml.4240] com.day.cq.polling.importer.impl.PollingImporterImpl importData: Cannot import from PollConfig(/content/Poll/jcr:content): scheme=myimporter,source=http://localhost:4502/content/Commercial.xml,target=/content/Poll/jcr:content,interval=300s,enabled=... No importer for scheme myimporter registered

**********************************************************************************

Is this issue because of the Archetype version or because of AEM version? What could possibly be wrong? Please Help.

1 Accepted Solution

Avatar

Correct answer by
Employee
3 Replies

Avatar

Level 10

I recommend using Arch 10 on AEM 6.3 if it works. Sometime newer commands -- like this one -- still has issues. Use the stable version.

Avatar

Correct answer by
Employee

Avatar

Level 10

Thanks Feike - great community contribution!