Skip to Content
0

Error with Odata service API_MKT_PRODCAT_HIERARCHY_SRV

Oct 05, 2017 at 03:49 PM

97

avatar image

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

10 |10000 characters needed characters left 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)
0

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Krishnendu Laha Oct 16, 2017 at 01:18 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded