admin-shell-io / aasx-package-explorer

C# based viewer / editor for the Asset Administration Shell
Other
143 stars 62 forks source link

Error while checking model contents. Aborting #696

Open jaalvarado20 opened 8 months ago

jaalvarado20 commented 8 months ago

Hi,

Is there a problem with "Check, validate and fix" option? Whe i press the button, this messasge appears: "error while checking model contents. Aborting"

To Reproduce Steps to reproduce the behavior:

  1. Create an AAS
  2. Create a submodel
  3. Save
  4. Go to File option, then "check, validate and fix" option
  5. See error

This message appears in log: "Error: Checking model contents: Object reference not set to an instance of an object. Object reference not set to an instance of an object. at at Extensions.ExtendSubmodel.Validate(Submodel submodel, AasValidationRecordList results) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxCsharpLibrary\Extensions\ExtendSubmodel.cs:line 116 at Extensions.ExtendIReferable.Validate(IReferable referable, AasValidationRecordList results) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxCsharpLibrary\Extensions\ExtendIReferable.cs:line 173 at Extensions.ExtendEnvironment.ValidateAll(Environment environment) in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxCsharpLibrary\Extensions\ExtendEnvironment.cs:line 45 at AasxPackageExplorer.MainWindow.CommandBinding_CheckAndFix() in D:\a\aasx-package-explorer\aasx-package-explorer\src\AasxPackageExplorer\MainWindow.CommandBindings.cs:line 411."

Expected behavior A clear and concise description of what you expected to happen.

Screenshots image image

Thanks

PratikTarpara commented 8 months ago

Even I face the same error. I also tried some examples https://admin-shell-io.com/samples/ from this website, and it also shows the same error.