40
Views
3
Comments
Modeling Data Relationships Exercise
Service Studio Version
11.54.54 (Build 63219)

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.


error.png
2021-10-17 12-36-16
Amreen Shaikh

Hi Azad,

Please delete table employee and recreate  it .

Hope that will help you.

Regards,

Amreen


2023-04-16 15-25-31
Krishnanand Pathak

Hi Azad,


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.


Regards
Krishnanand Pathak


2025-08-26 20-32-16
xFil

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.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.