0

I am trying to update records in table tciSTran that are present in the table tarRecurInvcLineDS

Here is the query I wrote...

 update [mas500_test_app].[dbo].[tciSTaxTran] 
 set STaxSchdKey = 310
 where STaxTranKey in
 (select STaxTranKey  from [mas500_test_app].[dbo].[tarRecurInvcLineDs] 

I'm getting this error

Unable to update the tciSTaxTran record because it is trying to reference a record in tciSTaxSchedule that does not exist.

1 Answer 1

1

Seems you have a foreign key between tciSTaxTran.STaxSchdKey and the tciSTaxSchedule table. Does the tciSTaxSchedule table have a row with a primary key of 310?

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.