Skip to Content

Error with Odata service API_MKT_PRODCAT_HIERARCHY_SRV

Dear Experts,

When testing the service "API_MKT_PRODCAT_HIERARCHY_SRV" through Postman add on in Hybris Marketing Cloud, I am getting "Internal 500" error (An unknown internal server error occurred during the data services).

As API_MKT_PRODCAT_HIERARCHY_SRV should be executed in Batchmode, I have executed in Batchmode, following is the header:

Authorization:Basic <Technical User Name and passoword>==
x-csrf-token:<Token Number>==
Content-Type:multipart/mixed; boundary=batch

Below is the example of JSON file:

{  
   "Sap-Cuan-SequenceId":"001",
   "Sap-Cuan-RequestTimestamp":"/Date(1494623520000)/",
   "Sap-Cuan-SourceSystemType":"Sourcesystem",
   "Sap-Cuan-SourceSystemId":"ID",	
   "ProductHierarchies": [  
      {  
         "ProductHierarchyID":"Hierarchie1",
         "ProductHierarchyNames" : [
        	{
                "ProductHierarchyID":"Hierarchie1",
		"Language" : "DE",
        	"Name" : "USA",
        	"Description" : "USA"
        	}
         ]
     }
   ]
}

Could you please have a look and let me know if any possible solution?

Thanks,

Krish

Add comment
10|10000 characters needed characters exceeded

  • Former Member

    Hi Krish,

    can you please try format JSON (application/json) instead of text.

    Thanks and regards,

    Dinesh.

    json-format.jpg (20.1 kB)
  • Hi Dinesh,

    I have tried also but it is not working and returning same error. Now I am not sure whether this Odata API (new in 1708) can be used to Import data, may be after the system is Live, it can be used only to merge the relevant data.

    Thanks,

    Krish

  • Get RSS Feed

1 Answer

  • Best Answer
    Oct 16, 2017 at 01:18 PM

    Ok, I got the answer. It was with Odata V4.0 to do. I have written a blog post with my findings: New API

    Thanks,

    Krish

    Add comment
    10|10000 characters needed characters exceeded