I am working on a SSIS(ETL proces) where I have a datavault. The datavault contains HUBS LINKS and SATS. The whole proces is almost working except a few SATS. One of them is the CONSIGNMENT table. It says this: "The INSERT statement conflicted with the FOREIGN KEY constraint "FK_SAT_CONS_REFERENCE_HUB_CONS". The conflict occurred in database "anbc_datavault", table "dbo.HUB_CONSIGNMENT", column 'HUB_CONSIGNMENT_ID'.".
I checked it in SQL but everything is working. The HUB_CONSIGNMENT_ID, which is in the HUB_CONSIGNMENT table(PK there), has a reference to the SATS table. enter image description here
I don't know how I can fix this problem.
Anyone who can help? Thanks!
I deleted the whole database and created it again with the sql script. I checked also if there was something wrong but that wasn't the case. I am a student that learns the ETL process.