on 11-22-2016 10:13 AM - last edited on 02-04-2024 5:10 AM by postmig_api_4
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
PFA the log file.link text
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.