cancel
Showing results for 
Search instead for 
Did you mean: 

Data Hub inbound IDOC Error

Former Member
0 Kudos

Hi,

While importing product link textfrom a sample IDOC to hybris using DataHub, I am getting following error:- java.lang.RuntimeException: Unexpected IDOC received. Cannot process this. I have attached the idoc xml file. I have not yet set up the SAP-ERP to fire idocs. IDOC file is given as input via the rest client (PostMan), URL being - http://localhost:8080/datahub-webapp/v1/idoc/receiver (POST)

Could you please help me understand why this error is coming?

Thanks & Regards, Anitha

former_member224482
Active Contributor
0 Kudos

Could you attach the complete Tomcat standard output log file ?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks, I am able to parse the IDOC. The issue now is that the product is getting inserted into default catalog, though I've specified in target.xml to add to 'powertoolsProductCatalog'.

However, there is an exception while transforming the canonical to target item - 2016-11-30 17:08:02,559 [ERROR] [c.h.d.s.s.i.CompilableSpelExpressionProcessor] No reference canonical item found with a type: CanonicalProductSalesAreaToCatalogMapping, and conditions: [] 2016-11-30 17:08:02,571 [ERROR] [c.h.d.s.p.i.DefaultCanonicalToTargetItemConverterService] Failed to create a target item from CanonicalItem{id='3', integrationKey='ECDCLNT200|20205661|1101_H1', status=SUCCESS, dataPool='DataHubPoolEntity{id=0, name=GLOBAL}', fields='{salesKey=1101_H1, productID=20205661, blockedFrom=00000000, pricingGroup=, creationSystem=ECDCLNT200, salesOrganization=1101, deliveryUnitQuantity=0.000, unit=, deliveryUnitUoM=null, blocked=null, plant=E103, minOrderQuantity=0.000, distributionChannel=H1}'} com.hybris.datahub.service.spel.TransformationExpressionException: Could not transform by expression resolve('CanonicalProductSalesAreaToCatalogMapping','SAPCONFIGURATION_POOL').catalogVersion

Also, I am not able to insert an entry into 'SAP Administration configuration' tab in Backoffice. Don't see any 'Send to Data Hub' button'.

Kindly help to resolve the issue at the earliest.

Thanks and Regards, Anitha

Former Member
0 Kudos

Thanks Robin. I could resolve the earlier error. Now, error is while composition (INVALID_PRIMARY_KEY) -

2016-11-24 18:00:26,753 [DEBUG] [c.h.d.c.i.CompositionChainRunnerStrategy] Integration Key generation for canonical item CanonicalItem{id='null', integrationK ey='null', status=ERROR, dataPool='DataHubPoolEntity{id=0, name=GLOBAL}', fields='{division=null, unit=Piece, GTIN=12345678912, productID=10001, blocked=null, isConfigurable=null, baseProductID=null, name={en=Demo product of powertool catalog}, blockedFrom=00000000, creationSystem=null, creationDate=20150904}'} failed.

The jars that I have in WEB-INF/lib are - sapidocintegration-6.1.0.0-RC4, saperpproduct-target-6.1.0.0-RC4, saperpproduct-raw-6.1.0.0-RC4, saperpproduct-canonical-6.1.0.0-RC4, sapcoreconfiguration-6.1.0.0-RC4, product-canonical-6.1.0.0-RC4

Regards, Anitha

former_member224482
Active Contributor
0 Kudos

Your custom made MATMAS IDOC XML has commented out the EDI_DC40-SNDPRN value in the XML which is used to populate creationSystem=null.

Please try to use standard scenarios to avoid getting errors like these.

Former Member
0 Kudos

PFA the log file.link text

former_member224482
Active Contributor
0 Kudos

Could you attach the complete Tomcat standard output log file ?