Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 2806

Service Layer / error when creating supplier

$
0
0

Hi,

 

I am developping an application to create customers and suppliers from external data using B1H Service Layer.

 

Creating customer works fine but creation of suppliers failed :

 

{

   "error" : {

      "code" : -5002,

      "message" : {

         "lang" : "en-us",

         "value" : "An account with the same code already exists  [OCRD.CardCode] , '1061'"

      }

   }

}

 

Problem no carcode exist with this code in database.

 

Json used :

 

{"CardCode":"1061","CardName":"HORO QUARTZ","CardType":"cSupplier","Currency":"EUR","CompanyPrivate":"cCompany","LanguageCode":"22",

"DebitorAccount":"40190000"}

 

Has someone idea about the cause ?

 

Thank you


Viewing all articles
Browse latest Browse all 2806

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>