cancel
Showing results for 
Search instead for 
Did you mean: 

Getting error during publication - Datahub to Hybris

Former Member
0 Kudos

I am getting the following error when i try to replicate materials from SAP ECC to Hybris.

 de.hybris.platform.servicelayer.exceptions.SystemException: java.lang.IllegalStateException: 
 Failed to communicate to http://localhost:8080/datahub/v1/core-publications/1

It also gives the following MISSING_REFERENCE error

 <canonicalItemPublicationStatusList>
 <targetSystemPublicationId>1</targetSystemPublicationId>
 <targetSystemName>HybrisCore</targetSystemName>
 <canonicalItemId>1</canonicalItemId>
 <status>FAILURE</status>
 <statusDetail>MISSING_REFERENCE</statusDetail>
 </canonicalItemPublicationStatusList>

Materials are not getting published to hybris.

What might be the reason for this?

Also i wanted to know how to make these missing references null if they are not found, so that the products will get published with some attributes as null and i can carry on with order creation.

former_member224482
Active Contributor
0 Kudos

Could you attach the content of canonicalItemId 1 using http://localhost:8080/datahub-webapp/v1/canonical-items/1

Former Member
0 Kudos

When i type -> http://localhost:8080/datahub-webapp/v1/canonical-items/1

I get -> 404 Not Found

former_member224482
Active Contributor
0 Kudos

What version are you using ? Could you consider upgrading ?

The URL provided is a feature of 5.5.0. https://wiki.hybris.com/display/release5/The+Data+Hub+API

Former Member
0 Kudos

I am using 5.4.0

former_member224482
Active Contributor
0 Kudos

Version 5.5.1 has been released. There is a feature which provide the missing information for the error message mentioned above.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The sampleconfig folder for datahub in 5.5.1 has: datahub.server.url=http://localhost:9001/datahub-webapp/v1

Former Member
0 Kudos

Thanks for this. I was pulling my hair out trying to find that property.

Where is this sampleconfig folder located?

Former Member
0 Kudos

Nevermind, looks like they did away with that folder sometime between 5.5.1 and 5.7. I was able to find the properties for datahub defined in the build.gradle files for the datahub, and sap_* recipes in installer/recipes.