aasx-package-explorer icon indicating copy to clipboard operation
aasx-package-explorer copied to clipboard

Error while checking model contents. Aborting

Open jaalvarado20 opened this issue 11 months ago • 1 comments

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

jaalvarado20 avatar Mar 04 '24 11:03 jaalvarado20

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.

PratikTarpara avatar Mar 08 '24 11:03 PratikTarpara