There are actually NO rows in the SITE_PERMISSION table and only two rows in the ACCESS table. I am not sure why there would be a primary key violation when there are no rows to index.
create table SITE_PERMISSION
(
ACCESS_NAME VARCHAR(100) not null,
SITE_NAME VARCHAR(5) not null,
IDS_PERMISSION_ID INTEGER not null,
constraint SITE_PERMISSION_PK
primary key (ACCESS_NAME, SITE_NAME, IDS_PERMISSION_ID),
constraint ACCESS_NAME_FK
foreign key (ACCESS_NAME) references ACCESS,
constraint IDS_PERMISSION_ID_FK
foreign key (IDS_PERMISSION_ID) references IDS_PERMISSIONS,
constraint SITE_NAME_FK
foreign key (SITE_NAME) references SITE
);
Any ideas on why this error is occuring?