When creating a new table, receive the following error:
Error Message (10:55:35) Cannot execute a stored procedure.
The SQL database has issued an error.
Info Message (10:55:35) SQL error description: [Microsoft][SQL Server Native Client 10.0][SQL Server]The UPDATE statement conflicted with the FOREIGN KEY constraint "FK_ModelElementData_HasModelId_LayerId". The conflict occurred in database "VPS_AX62_DEV_model", table "dbo.Model".
Info Message (10:55:35) SQL statement: { CALL [VPS_AX62_DEV_model].[dbo].[XU_Update](?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?) }
Actual Vs. Expected Result:
To solve the error with the model store data to be able to create new objects without error.
Symptoms that led to submission of this issue:
This environment was upgraded from R2 CU6 to R2 CU7. As part of the upgrade, there were missing table added as per the following blog entry:
ekprogramming.blogspot.co.uk/.../import-model-store-error-ax-2012-r2-cu7.html
We needed to create these table to proceed, and then populate ModelOperation with the default values to be able to import new models.
We have then installed another VAR layer model into this environment which did contain some conflicts due to objects already existing in the same layer in a different model. The option to push this model in was taken, and then the conflicts were addressed as part of the auto created VAP layer model.
The system compiles, CIL compiles and synchronises without issues.
However, when starting new development in the CUS layer (of which there were no previous customisations), the error described above occurs.