[x] I have verified that I am running the latest version of the COMET Web Services
[x] I have searched open and closed issues to ensure it has not already been reported
Description
Seeding fails when an RDL contains a Sampled Function ParameterType. Seeding sould support all types.
Error:
23503: insert or update on table "ParameterBase" violates foreign key constraint "ParameterBase_FK_ParameterType"
DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.
Steps to Reproduce
Add a SampleFunctionParameterType to the SiteRdl
Create a parameter on an element that uses thieSampledFunctionParameterType
Create an Annex.C3 file from COMET-IME using model version 1.0.0 (default ecss)
Import to a webserver using /Data/Exchange route
Solution
Check if a referenced object's classtype has the correct version.
SampledFunctionParameter is a version 1.2.0 object, while it is derived from ParameterType, which is a 1.0.0 objecttype.
So in case of a Parameter set on an ElementDefinition, we need to remove the Parameter based on the fact that the ClassKind of the referenced object has the wrong version.
Other solution
Make sure that the export to a specific version is not allowed when higher objects instances that are referenced have a version higher that the selected model export version.
Prerequisites
Description
Seeding fails when an RDL contains a Sampled Function ParameterType. Seeding sould support all types.
Error: 23503: insert or update on table "ParameterBase" violates foreign key constraint "ParameterBase_FK_ParameterType"
DETAIL: Detail redacted as it may contain sensitive data. Specify 'Include Error Detail' in the connection string to include this information.
Steps to Reproduce
Solution Check if a referenced object's classtype has the correct version. SampledFunctionParameter is a version 1.2.0 object, while it is derived from ParameterType, which is a 1.0.0 objecttype. So in case of a Parameter set on an ElementDefinition, we need to remove the Parameter based on the fact that the ClassKind of the referenced object has the wrong version.
Other solution Make sure that the export to a specific version is not allowed when higher objects instances that are referenced have a version higher that the selected model export version.
System Configuration
NA