Removing a specific MetaField which is not associated with any MetaClass anymore results in an exception:
System.Data.SqlClient.SqlException (0x80131904): The DELETE statement conflicted with the REFERENCE constraint "FK_ecfVersionProperty_MetaField". The conflict occurred in database ".........", table "dbo.ecfVersionProperty", column 'MetaFieldId'.
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at Mediachase.MetaDataPlus.Configurator.MetaDataPlusDatabase.StoredProcedure.ExecuteNonQuery(MetaDataContext context)
Tried both in Commerce Manager and through API.
MetaField is really referenced in ecfVersionProperty table, but can't really understand the reason for it as the property has been removed in code and removed from all variants.
Hi,
Using Commerce 13.34.
Removing a specific MetaField which is not associated with any MetaClass anymore results in an exception: