You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are experiencing a problem with Model Compiler. When attempting to run Opc.Ua.ModelCompiler.exe compile or compile-nodesets command, the compiler stops and outputs an error: "[FormatException] String '' was not recognized as a valid DateTime."
The problem seems to happen in ValidateModel function in ModelDesignValidator.cs file. More accurately the line: DateTime? pd = (ns.PublicationDate != null) ? DateTime.Parse(ns.PublicationDate, null, DateTimeStyles.None) : null; fails to convert the DateTime.
When running in debugger, the ns.PublicationDate is shown in following format, which apparently is not valid UTC time format.
The problem is somehow related to executing environment, because on some of our laptops the Model Compiler is working fine.
The text was updated successfully, but these errors were encountered:
We are experiencing a problem with Model Compiler. When attempting to run Opc.Ua.ModelCompiler.exe compile or compile-nodesets command, the compiler stops and outputs an error: "[FormatException] String '' was not recognized as a valid DateTime."
The problem seems to happen in ValidateModel function in ModelDesignValidator.cs file. More accurately the line: DateTime? pd = (ns.PublicationDate != null) ? DateTime.Parse(ns.PublicationDate, null, DateTimeStyles.None) : null; fails to convert the DateTime.
When running in debugger, the ns.PublicationDate is shown in following format, which apparently is not valid UTC time format.
The problem is somehow related to executing environment, because on some of our laptops the Model Compiler is working fine.
The text was updated successfully, but these errors were encountered: