Skip to content

Commit

Permalink
Import simple NodeSet2 file is incomplete #510
Browse files Browse the repository at this point in the history
- possibility to compile ModelDesign and generate NodeSet file (round trip test) 👎

Error generated by the ModelCompiler

At Build: 851392402 Focus:Diagnostic, ErrorID: P0-0003010000 Info: It is diagnostic information;
At Build: 851392402 Focus:Diagnostic, ErrorID: P0-0003010000 Info: It is diagnostic information; !ERROR!
The following has occurred:
The BaseType reference for node TrailerType is not valid: VehicleType.
   at Opc.Ua.ModelCompiler.ModelCompilerValidator.FindNode(XmlQualifiedName symbolicId, Type requiredType, String sourceName, String referenceName)
   at Opc.Ua.ModelCompiler.ModelCompilerValidator.ImportType(TypeDesign type)
   at Opc.Ua.ModelCompiler.ModelCompilerValidator.Import(NodeDesign node, NodeDesign parent)
   at Opc.Ua.ModelCompiler.ModelCompilerValidator.Validate2(IList`1 designFilePaths, String identifierFilePath, Boolean generateIds)
   at Opc.Ua.ModelCompiler.ModelGenerator2.ValidateAndUpdateIds(IList`1 d
  • Loading branch information
mpostol committed Mar 18, 2021
1 parent 0202b71 commit f496898
Showing 1 changed file with 29 additions and 29 deletions.
Original file line number Diff line number Diff line change
@@ -1,55 +1,55 @@
<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/xsl" href="XMLstylesheet"?>
<ModelDesign xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" TargetNamespace="http://tricycletypev1/" TargetVersion="" TargetPublicationDate="2021-03-18T00:00:00+01:00" xmlns="http://opcfoundation.org/UA/ModelDesign.xsd">
<?xml-stylesheet type="text/xsl" href="OPCUAModelDesign.xslt"?>
<ModelDesign xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" TargetNamespace="http://tricycletypev1/" TargetVersion="" TargetPublicationDate="2021-03-18T00:00:00+01:00" xmlns="http://opcfoundation.org/UA/ModelDesign.xsd">
<Namespaces>
<Namespace Name="Name0" Prefix="Prefix0" InternalPrefix="http://opcfoundation.org/UA/" XmlNamespace="http://opcfoundation.org/UA/" XmlPrefix="Prefix1" FilePath="" Version="1.04.8" PublicationDate="20.11.2020">http://opcfoundation.org/UA/</Namespace>
<Namespace Name="Name2" Prefix="Prefix2" InternalPrefix="http://tricycletypev1/" XmlNamespace="http://tricycletypev1/" XmlPrefix="Prefix3" FilePath="" Version="1.00" PublicationDate="25.11.2020">http://tricycletypev1/</Namespace>
<Namespace Name="Name0" Prefix="Prefix0" InternalPrefix="http://opcfoundation.org/UA/" XmlNamespace="http://opcfoundation.org/UA/" XmlPrefix="Prefix1" FilePath="">http://opcfoundation.org/UA/</Namespace>
<Namespace Name="Name2" Prefix="Prefix2" InternalPrefix="http://tricycletypev1/" XmlNamespace="http://tricycletypev1/" XmlPrefix="Prefix3" FilePath="">http://tricycletypev1/</Namespace>
</Namespaces>
<DataType xmlns:q1="http://tricycletypev1/" SymbolicName="q1:TireEnum" xmlns:q2="http://opcfoundation.org/UA/" BaseType="q2:Enumeration">
<Children>
<Property SymbolicName="q2:EnumStrings" DataType="q2:LocalizedText" ValueRank="Array">
<DefaultValue>
<uax:ListOfLocalizedText xmlns:uax="http://opcfoundation.org/UA/2008/02/Types.xsd">
<uax:LocalizedText>
<uax:Locale>en-us</uax:Locale>
<uax:Text>Mud</uax:Text>
</uax:LocalizedText>
<uax:LocalizedText>
<uax:Locale>en-us</uax:Locale>
<uax:Text>Ice</uax:Text>
</uax:LocalizedText>
<uax:LocalizedText>
<uax:Locale>en-us</uax:Locale>
<uax:Text>Sand</uax:Text>
</uax:LocalizedText>
</uax:ListOfLocalizedText>
<ListOfLocalizedText xmlns="">

en-us
Mud


en-us
Ice


en-us
Sand

</ListOfLocalizedText>
</DefaultValue>
</Property>
</Children>
<ClassName />
<Fields>
<Field Name="Mud" Identifier="0" BitMask="" ArrayDimensions="" />
<Field Name="Ice" Identifier="1" BitMask="" ArrayDimensions="" />
<Field Name="Sand" Identifier="2" BitMask="" ArrayDimensions="" />
<Field Name="Mud" Identifier="0" ArrayDimensions="" />
<Field Name="Ice" Identifier="1" ArrayDimensions="" />
<Field Name="Sand" Identifier="2" ArrayDimensions="" />
</Fields>
</DataType>
<DataType xmlns:q3="http://tricycletypev1/" SymbolicName="q3:TriCycleDataType" xmlns:q4="http://opcfoundation.org/UA/" BaseType="q4:Structure">
<ClassName />
<Fields>
<Field Name="weight" BitMask="" DataType="q4:Float" ArrayDimensions="" />
<Field Name="wheel" BitMask="" DataType="q3:WheelDataType" ArrayDimensions="" />
<Field Name="Model" BitMask="" DataType="q4:String" ArrayDimensions="" />
<Field Name="weight" DataType="q4:Float" ArrayDimensions="" />
<Field Name="wheel" DataType="q3:WheelDataType" ArrayDimensions="" />
<Field Name="Model" DataType="q4:String" ArrayDimensions="" />
</Fields>
</DataType>
<DataType xmlns:q5="http://tricycletypev1/" SymbolicName="q5:WheelDataType" xmlns:q6="http://opcfoundation.org/UA/" BaseType="q6:Structure">
<Description>Wheel datatype.</Description>
<ClassName />
<Fields>
<Field Name="tickness" BitMask="" DataType="q6:Float" ArrayDimensions="" />
<Field Name="diameter" BitMask="" DataType="q6:Float" ArrayDimensions="" />
<Field Name="pressure" BitMask="" DataType="q6:Float" ArrayDimensions="" />
<Field Name="TireType" BitMask="" DataType="q5:TireEnum" ArrayDimensions="" />
<Field Name="raysLen" BitMask="" DataType="q6:Int32" ArrayDimensions="" />
<Field Name="tickness" DataType="q6:Float" ArrayDimensions="" />
<Field Name="diameter" DataType="q6:Float" ArrayDimensions="" />
<Field Name="pressure" DataType="q6:Float" ArrayDimensions="" />
<Field Name="TireType" DataType="q5:TireEnum" ArrayDimensions="" />
<Field Name="raysLen" DataType="q6:Int32" ArrayDimensions="" />
</Fields>
</DataType>
<ObjectType xmlns:q7="http://tricycletypev1/" SymbolicName="q7:HumanType">
Expand Down

0 comments on commit f496898

Please sign in to comment.