cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Debmas (B2BUnit) Import from SAP ERP in to Hybris 6.7.0.3 via Datahub 6.7

0 Kudos
695

Debmas (B2BUnit) Import from SAP ERP in to Hybris 6.7.0.3 via Datahub 6.7

IDOCTYP > DEBMAS07 && MESTYP > ZHYBRIS_CUST

  1. After the target items are published, No B2BUnits are stored in to Hybris - 6.7.0.3

  2. There was no exceptions at both DH & Hybris

  3. Experts please help me to fix this issue.

==============================================================

Hybris Log:

INFO [hybrisHTTP11] [ItemImportController] Received request PUT: /import/pools/SAPCUSTOMER_INBOUND_POOL/publications/2 INFO [hybrisHTTP11] [ItemImportController] resultCallbackUrl: http://localhost:8080/datahub-webapp/v1/core-publications/2

==============================================================

Data Hub Log:

2019-07-29 13:17:21,288 [INFO] [c.h.d.s.i.PublicationActionHandler] Publishing to HybrisCore 2019-07-29 13:17:21,363 [INFO] [c.h.d.c.a.i.CoreAdapterService] Creating impex for export to: http://localhost:9001/datahubadapter 2019-07-29 13:17:21,363 [INFO] [c.h.d.s.i.AsynchronousEventPublicationService] Firing data hub event : TargetSystemPublicationStartedEvent{publicationId=1, poolId=9301} 2019-07-29 13:17:21,409 [DEBUG] [c.h.d.r.j.i.DefaultTargetItemJpaRepository] Found 0 SalesVariantAttributes items for [SubTargetSystemPublicationEntity{id=2, status=IN_PROGRESS, publicationType=INSERT, publicationAction=PublicationActionEntity{id=1, pool=DataHubPoolEntity{id=9301, name=SAPCUSTOMER_INBOUND_POOL}}, targetSystem=TargetSystemEntity{id=1, targetSystemName='HybrisCore', targetSystemType='HybrisCore'}}] publications and DefaultDataHubIdBasedPageRequest{lastProcessedId=0, pageSize=10000} 2019-07-29 13:17:21,449 [DEBUG] [c.h.d.r.j.i.DefaultTargetItemJpaRepository] Found 0 BaseVariantAttributes items for [SubTargetSystemPublicationEntity{id=2, status=IN_PROGRESS, publicationType=INSERT, publicationAction=PublicationActionEntity{id=1, pool=DataHubPoolEntity{id=9301, name=SAPCUSTOMER_INBOUND_POOL}}, targetSystem=TargetSystemEntity{id=1, targetSystemName='HybrisCore', targetSystemType='HybrisCore'}}] publications and DefaultDataHubIdBasedPageRequest{lastProcessedId=0, pageSize=10000} 2019-07-29 13:17:21,487 [DEBUG] [c.h.d.r.j.i.DefaultTargetItemJpaRepository] Found 0 SalesProductAttributes items for [SubTargetSystemPublicationEntity{id=2, status=IN_PROGRESS, publicationType=INSERT, publicationAction=PublicationActionEntity{id=1, pool=DataHubPoolEntity{id=9301, name=SAPCUSTOMER_INBOUND_POOL}}, targetSystem=TargetSystemEntity{id=1, targetSystemName='HybrisCore', targetSystemType='HybrisCore'}}] publications and DefaultDataHubIdBasedPageRequest{lastProcessedId=0, pageSize=10000} 2019-07-29 13:17:21,534 [DEBUG] [c.h.d.r.j.i.DefaultTargetItemJpaRepository] Found 0 BaseProductAttributes items for [SubTargetSystemPublicationEntity{id=2, status=IN_PROGRESS, publicationType=INSERT, publicationAction=PublicationActionEntity{id=1, pool=DataHubPoolEntity{id=9301, name=SAPCUSTOMER_INBOUND_POOL}}, targetSystem=TargetSystemEntity{id=1, targetSystemName='HybrisCore', targetSystemType='HybrisCore'}}] publications and DefaultDataHubIdBasedPageRequest{lastProcessedId=0, pageSize=10000} 2019-07-29 13:17:21,537 [WARN] [c.h.d.c.a.i.CoreAdapterService] Impex storage no longer supported 2019-07-29 13:17:21,539 [INFO] [c.h.d.c.c.i.DefaultExportClient] Authenticating publish to HybrisCore 2019-07-29 13:17:21,800 [INFO] [c.h.d.c.c.i.DefaultExportClient] Exporting 2 publication to HybrisCore 2019-07-29 13:17:21,858 [INFO] [c.h.d.c.c.i.DefaultExportClient] Status of the response from publish to target system: HybrisCore, 200

==============================================================

View Entire Topic
0 Kudos

Hello ,

Thanks for your reply for this issue.

Yes as per your reply,

The RawItems are loaded properly, I mean its processed successfully.

The Raw Item is converted in to respective Canonical Items with out any issues, I mean the composition process is success.

Then the Target Items also published, no issues at publicationerror table, but the publicationaction table still shows the below data

2019-07-30 21:20:14 9301 1 2019-07-30 21:20:14 2019-07-30 21:20:14 IN_PROGRESS PublicationAction

But, at hybris platform side the below log info displayed from ItemImportController such as

INFO [hybrisHTTP33] [ItemImportController] Received request PUT: /import/pools/SAPCUSTOMER_INBOUND_POOL/publications/2 INFO [hybrisHTTP33] [ItemImportController] resultCallbackUrl: http://localhost:8080/datahub-webapp/v1/core-publications/2

after that no logs / messages in the console log.

The TaskExecutor-master should be published this data at hybris side via ImpexDataImportClient and DefaultImportService supposed to call to initiate cronjob to push the data in to hybris db. which was not happened.

Slava
Product and Topic Expert
Product and Topic Expert
0 Kudos

The publication is stuck IN_PROGRESS. Based on the log output we can say hybris received data but then something happened and it never processed them and never reported the publication status back to DataHub. All subsequent publications are queued in DataHub and won't process until the first one completes. This answer has more references about this problem and how to deal with it: https://answers.sap.com/questions/12772402/datahub-publication-stuck-in-in-progress.html?childToView...