cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a Business Partner from XML

Former Member
0 Kudos

I have a problem creating a Business Partner from an XML

First I did get the XML from an existing one. Deleted the DocEntry element but I always get this error :

-5002 : Employee is not a Technician [OCRD.DfTcnician] , '0'

Even if I go to this element and put NOTHING, I get the error anyway

What that means ?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Yeah, I succeeded. I had to get rid of dtfncien element completly and DocEntry element too and the bp was created

Would have been so much useful to get an EMPTY xml representation of an object so we juste have to fill the needed properties to an empty one and create the object afterward.

According to various threads, we have to GetAsXML() then, change whatever needs to be changed and then we create the object from this xml but there are a lot to get rid of sometimes in these objects