Database Constraint Violated SQL Error for Great Plains

  • Hi there. We're doing a save on a MS Great Plains with SQL Server screen and get the following error:

    "A save operation on table 'WS_Time_Sheet_TRX_WORK' failed because a database constraint was violated."

    If I hit More Info it says:

    [Microsoft][ODBC SQL Server Driver][SQL Server]INSERT statement conflicted with COLUMN FOREIGN KEY constraint 'FK_WS10702_UPR00100'. The conflict occurred in database 'NSP', table 'U00100PR', column 'EMPLOYID'.

    I know these messages probably make perfect sense to you guys, but I'm a newbie. Can you point me in the right direction? My thinking is that maybe I should force the foreign key constraint using the "WITH NOCHECK" option or maybe the wrong data type is mapped between the two tables sharing the Foreign Key and the key should be deleted and recreated.

    Any help you can provide would be most appreciated! Assume that I'm a newbie and that I know very little. You won't hurt my feelings if you "dumb it down" so I can understand where to begin! lol I'm not even entirely sure I know where to look to edit the connection in the first place.

  • I don't know if I can help with your particular problem ...   but I do know that I've gotten GP help (both GP Application and Backend DB help) on this Microsoft Forum: http://www.microsoft.com/Businesssolutions/Community/Newsgroups/dgbrowser/en-us/default.mspx?dg=microsoft.public.greatplains&lang=en&cr=US

    hope that helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply