on 08-02-2006 11:07 AM
I'm developing a class to use di server methods, when using AddObject the new Object is created but the response says that "i can't duplicate the primary key".
Example:
I send this
[OCRD] , '1). [ODBC SQL Server Driver][SQL Server]Infracción de la restricción PRIMARY KEY 'OCRD_PRIMARY'. No se puede insertar una clave duplicada en el objeto 'OCRD'...
I think is all right but...
That's not all same with RemoveObject, the object is removed but the response says "No record founds".
What's the matter with this??
Are you sure that the object is really created? I guess that it maybe is not created, because you had an old object with the same code (222), and you mistakenly think the old object is the new object. Or am I wrong?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hehe, you're wrong, i'm using a demo database with a few data, i've checked it in SAP and SQL Server... I don't mind very much that RemovedObject response was "No Record Founds" (the object is removed) but the adding is a problem, I can't check if it's correct or the object was really there before with that response. I thought that it was a kind of bug in the data manipulation methods.
This is the version of DI Server: 6.80.123.0 (I think)
I don't understand, do you talk about the values in the soap response?
<?xml version="1.0"?>
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Body>
<env:Fault>
<env:Code>
<env:Value>
env:Receiver
</env:Value>
<env:Subcode>
<env:Value>-1</env:Value>
</env:Subcode>
</env:Code>
<env:Reason><env:Text xml:lang="en">[OCRD] , '1). [ODBC SQL Server Driver][SQL Server]Infracción de la restricción PRIMARY KEY 'OCRD_PRIMARY'. No se puede insertar una clave duplicada en el objeto 'OCRD'.
2). [ODBC SQL Server Driver][SQL Server]Se terminó la instrucción.'
User | Count |
---|---|
89 | |
7 | |
7 | |
4 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.