Skip to Content
author's profile photo Former Member
Former Member

Data Hub inbound IDOC Error

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Nov 22, 2016 at 06:19 PM

    PFA the log file.link text


    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 25, 2016 at 06:12 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 01, 2016 at 06:08 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.