SAP Knowledge Base Article - Preview

2478532 - DataHub - error when using y2ysync - java.lang.IllegalArgumentException: CustomerCanonical is not a valid canonical type

Symptom

When using y2ysync to transfer customers from Commerce to yMarketing you can get these exceptions in DataHub (depending on the version used):

1. For 6.2 and 6.3:

[DEBUG] [c.h.d.p.i.NamedPoolStrategy] Searching for pool by name YMKT_HYBRIS_OUTBOUND_POOL for feed 9307 - YMKT_HYBRIS_OUTBOUND_FEED
[ERROR] [c.h.d.r.r.m.BaseExceptionMapper] An exception intercepted
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException: CustomerCanonical is not a valid canonical type
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1629) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[na:1.8.0_131]
Caused by: java.lang.IllegalArgumentException: CustomerCanonical is not a valid canonical type
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:125) ~[guava-17.0.jar:na]
    at com.hybris.datahub.service.impl.DefaultCanonicalItemService.findItemsByIntegrationKey(DefaultCanonicalItemService.java:164) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at com.hybris.datahub.service.impl.DefaultItemDeletionService.lambda$findItemsByIntegrationKey$0(DefaultItemDeletionService.java:159) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at com.hybris.datahub.service.impl.DefaultItemDeletionService.inTransaction(DefaultItemDeletionService.java:240) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at com.hybris.datahub.service.impl.DefaultItemDeletionService.findItemsByIntegrationKey(DefaultItemDeletionService.java:157) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at com.hybris.datahub.service.impl.DefaultItemDeletionService.deleteByIntegrationKey(DefaultItemDeletionService.java:98) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at com.hybris.datahub.service.impl.DefaultCanonicalItemService.deleteByIntegrationKey(DefaultCanonicalItemService.java:361) ~[datahub-service-6.2.0.4-RC1.jar:6.2.0.4-RC1]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteByIntegrationKey(DefaultCsvImportFacade.java:177) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.lambda$deleteInTx$5(DefaultCsvImportFacade.java:171) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.2.7.RELEASE.jar:4.2.7.RELEASE]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteInTx(DefaultCsvImportFacade.java:171) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteCanonicalItems(DefaultCsvImportFacade.java:161) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.importCsv(DefaultCsvImportFacade.java:90) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at de.hybris.datahub.y2ysync.rest.resources.Y2YSyncImportResource$ChunkProcessingTask.run(Y2YSyncImportResource.java:182) ~[y2ysync-datahub-ext-6.2.0.0-RC2.jar:na]
    at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) ~[na:1.8.0_131]
    ... 5 common frames omitted

2. For 6.0 and 6.1:

[DEBUG] [c.h.d.p.i.NamedPoolStrategy] Searching for pool by name YMKT_HYBRIS_OUTBOUND_POOL for feed 9307 - YMKT_HYBRIS_OUTBOUND_FEED
[ERROR] [c.h.d.r.r.m.BaseExceptionMapper] An exception intercepted
java.util.concurrent.CompletionException: java.lang.IllegalArgumentException
    at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:273) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:280) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1629) ~[na:1.8.0_131]
    at java.util.concurrent.CompletableFuture$AsyncRun.exec(CompletableFuture.java:1618) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1056) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1692) ~[na:1.8.0_131]
    at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:157) ~[na:1.8.0_131]
Caused by: java.lang.IllegalArgumentException: null
    at com.google.common.base.Preconditions.checkArgument(Preconditions.java:111) ~[guava-17.0.jar:na]
    at com.hybris.datahub.service.impl.DefaultCanonicalItemService.deleteByIntegrationKey(DefaultCanonicalItemService.java:371) ~[datahub-service-6.1.0.4-RC1.jar:6.1.0.4-RC1]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteByIntegrationKey(DefaultCsvImportFacade.java:153) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.lambda$deleteInTx$1(DefaultCsvImportFacade.java:147) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133) ~[spring-tx-4.1.5.RELEASE.jar:4.1.5.RELEASE]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteInTx(DefaultCsvImportFacade.java:147) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.deleteCanonicalItems(DefaultCsvImportFacade.java:137) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at de.hybris.datahub.y2ysync.facade.impl.DefaultCsvImportFacade.importCsv(DefaultCsvImportFacade.java:82) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at de.hybris.datahub.y2ysync.rest.resources.Y2YSyncImportResource$ChunkProcessingTask.run(Y2YSyncImportResource.java:182) ~[y2ysync-datahub-ext-6.1.0.0-RC6.jar:na]
    at java.util.concurrent.CompletableFuture$AsyncRun.run(CompletableFuture.java:1626) ~[na:1.8.0_131]
    ... 5 common frames omitted


Read more...

Environment

SAP Hybris Commerce 6.0

SAP Hybris Commerce 6.1

SAP Hybris Commerce 6.2

SAP Hybris Commerce 6.3

Product

SAP ERP 6.0

Keywords

KBA , CEC-COM-HUB , SAP Commerce Data Hub , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP ONE Support launchpad (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.