Skip to Content
0
Mar 06, 2018 at 03:58 PM

Upload products with translations with CUAN_IMPORT_SRV

133 Views

Dear,

I'm struggling to create products in hybris marketing via CUAN_IMPORT_SRV and immediately add their translated Name and Description.

(I use hybris marketing onpremise version 1702)

I'm trying the following load via odata but this gives me an error:

{
          "Id" : "",
          "Timestamp" : "2017-07-17T12:00",
          "UserName" : "VVINCKJO",
          "SourceSystemType" : "EXT",
          "SourceSystemId" : "ANY",
          "Products" : [
 {
               "IdOrigin" : "SAP_HYBRIS_PRODUCT",
               "Id" : "TESTLANGU5",
               "Name" : "TESTLANGU5_ENG",
               "Description" : "Language5 Test English",
               "Language":"EN",
               "ImageUrl" : "",
               "CategoryId" : "LVT",
               "HierarchyId" : "FLOORTYPE",
               "ZZ1_Brand_MPR" : "TST"
 },
  {
               "IdOrigin" : "SAP_HYBRIS_PRODUCT",
               "Id" : "TESTLANGU5",
               "Name" : "TESTLANGU5_DUT",
               "Description" : "Language5 Test Nederlands",
               "Language":"NL"
 } ,
  {
               "IdOrigin" : "SAP_HYBRIS_PRODUCT",
               "Id" : "TESTLANGU5",
               "Name" : "TESTLANGU5_GER",
               "Description" : "Language5 Test German",
               "Language":"DE"
 }
 ]
}

error-excerpt:

<code>CUAN_PRODUCT/052</code>


<message>Product SAP_HYBRIS_PRODUCT TESTLANGU5 multiple times in one request; resend without duplicates</message>

So I'm wondering how I can maintain a product AND his different translated name/description.

(If I do the executions one by one, so one load with only EN, then with NL and then with DE, it does work, but that way of working is impossible to inteface as we have many products and many languages)

Can anyone help?

Kr,

Joyca