I have created relationships of one-to-many, one-to-one, and many-to-many in the data model. The entity diagram is correctly visible on the Service Studio screen. However, when I attempt to publish it, I encounter the following error. Could you please assist me in resolving this issue?
Error-
Inconsistent database table and entity definitions: 'AutoNumber' column 'OSUSR_roa_Employee.ID' exists in database, but there is no corresponding attribute in entity 'Employee'.
Database Upgrade Error-
Could not create / change primary key in 'OSUSR_ROA_EMPLOYEE' table. Inconsistent database table and entity primary key definitions.
Hi Azad,
Please delete table employee and recreate it .
Hope that will help you.
Regards,
Amreen
It looks like you have renamed the ID attribute of employee table which makes it inconsistent with DB.Rename the EmployeeId attribute to ID of employee table or recreate the table.
RegardsKrishnanand Pathak
I had the same problem, I have also renamed it to EmployeeId, according with the tutorial "Modeling Data 1-to-1 Relationships Exercise".
I erased the entity and have done it again having not changed the Id name and it is ok now.