General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]The INSERT statement conflicted with the FOREIGN KEY constraint FK_AP7INVOICES_AP7SALESTAXITEMSID". The conflict occurred in database "KCSFEDB", table "dbo.AP7SALESTAXITEMS", column 'AP7S

When attempting to save an invoice in a Canadian database where the GST tax was removed from the Invoice tab an Error occurs:
General ODBC Error: [Microsoft][ODBC SQL Server Driver][SQL Server]The INSERT statement conflicted with the FOREIGN KEY constraint "FK_AP7INVOICES_AP7SALESTAXITEMSID". The conflict occurred in database "KCSFEDB", table "dbo.AP7SALESTAXITEMS", column 'AP7SALESTAXITEMSID'.
Native error:547
[Microsoft][ODBC SQL Server Driver][SQL Server]The statement has been terminated.
Native error:362
The Vendor has a default distribution set that utilizes GST.  As an alternative solution, we can remove the default GST to save the invoice:

1. Vendor > Distribution > remove the GST TAX ID to BLANK.
2. Save the changes.
3. Re-create the Invoice.

Environment

 7.82.104, patch 35

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.