Skip to Content
author's profile photo Former Member
Former Member

DI Server Error, please help.

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??

Add comment
10|10000 characters needed characters exceeded

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Aug 02, 2006 at 11:29 AM

    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?

    Add comment
    10|10000 characters needed characters exceeded