Hi Everyone,
I am here again in need of your help. I am currently assigned to do a maintenance of another module. The last one, I was able to do some work around. This time it is totally different.
Here is the scenario, this module uploads one of more text files and checks on duplicate entries. In usual file uploads it will do fine, store the duplicates in the database and to a text file. But in some cases, it just skips the text file encountering "SQLSTATE = 23000 Microsoft OLE DB Provider for SQL Server Violation of PRIMARY KEY constraint".
I was asked to do to make this error go away (if possible) and have the valid and duplicate contents stored in the database as it normally should. I believe this happens whenever a valid row already existed in the database.
I can provide the code/script of the previous programmer if that is needed because I'm at lost here. I might need to put something on some datawindow event, error event perhaps?
Thanks in advance.
frey
I am here again in need of your help. I am currently assigned to do a maintenance of another module. The last one, I was able to do some work around. This time it is totally different.
Here is the scenario, this module uploads one of more text files and checks on duplicate entries. In usual file uploads it will do fine, store the duplicates in the database and to a text file. But in some cases, it just skips the text file encountering "SQLSTATE = 23000 Microsoft OLE DB Provider for SQL Server Violation of PRIMARY KEY constraint".
I was asked to do to make this error go away (if possible) and have the valid and duplicate contents stored in the database as it normally should. I believe this happens whenever a valid row already existed in the database.
I can provide the code/script of the previous programmer if that is needed because I'm at lost here. I might need to put something on some datawindow event, error event perhaps?
Thanks in advance.
frey