Skip to Content
0
Former Member
Aug 03, 2016 at 08:00 AM

INVALID_PRIMARY_KEY during DataHub Composition

315 Views

Hi All,

I'm trying to replicate the PRODUCT master data (MATMAS) in Hybris using DataHub. IDOC is generated fine and is loaded as well but it fails in the Composition phase with error INVALID_PRIMARY_KEY for CanonicalProduct & CanonicalVariant. I understand its missing some field value that is treated as a primary field by DataHub but I've checked that for CanonicalProduct, main fields are productID, createdSystem & creation system which are all filled up. Even then I get this. Also I just noticed that some of my Composition resulted in SUCCESS but I don't think I did anything different in generating the IDOC.

For the ones that resulted in SUCCESS are failing during Publication and is throwing null pointer excepted with itemType as null.

I've tried removing the PCM* jars or the sapidocoutboundadapter jar as mentioned in another threads but no help.

Can anyone please suggest on the above on what could be wrong and what can be done to fix it?

Prompt response would be appreciated as I've already been struggling with this for over 2 days now. Please let me know if any more information is required from my side.

Best Regards, Gourav