Open JBlezi opened 3 weeks ago
Hi @JBlezi
Thanks for raising this issue. Could you also please update the AASXPackageExplorer version?
I just added the version of AASXPackageExplorer under Basyx @mdanish98
Hi @JBlezi Thanks for updating the version. We are working on this. We will update here as soon as the analysis is completed.
Hi,
The issue is reproducible at our end. We need to analyse this issue further more in order to find the root cause. Below is our analysis for this issue:
Reproduction Steps:
ExampleV3_.aasx
104125_AAS.aasx
Error: Unhandled exception in AasxPackageExplorer v1.0.0.0: A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)) A Task's exception(s) were not observed either by Waiting on the Task or accessing its Exception property. As a result, the unobserved exception was rethrown by the finalizer thread. (PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360)) InnerException: PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360) InnerException: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360) InnerException: While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360 at .Inner message: PackageCentral: while performing load from C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx at \PackageCentral.cs:line 83 gave: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360) Inner message: One or more errors occurred. (While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360) Inner message: While opening aasx C:\Users\user\AppData\Local\Temp\tmp4692.aasx from source local file: C:\Users\user\Downloads\Murrelektronik_10415_AAS.aasx buffered to: C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 494 gave: While reading the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \AdminShellPackageEnv.cs:line 484 gave: While reading spec from the AASX C:\Users\user\AppData\Local\Temp\tmp4692.aasx at \xmlization.cs:line 20625 gave: The required property PreferredName has not been given in the XML representation of an instance of class DataSpecificationIec61360 at: conceptDescriptions/[10]/embeddedDataSpecifications/[0]/dataSpecificationContent/dataSpecificationIec61360
Both the AASX files are attached here. 10415.zip ExampleV3.zip
Describe the bug When downloading an AASX from the basyx docker aas-environment-v3 using the aas-web-ui it cannot be viewed in the AasxPackageExplorer. The issue seems to be the addition of a valueId tag, that creates the error.
After I manually deleted the valueId tag, the shell can be viewed in the AasxPackageExplorer without a problem.
This is the error in the AasxPackageExplorer logs:
To Reproduce
Expected behavior Downloaded AASX should be viewable after download without any further modifications
BaSyx (please complete the following information):
Screenshots If applicable, add screenshots to help explain your problem.
Used Asset Administration files (.aasx/.json/.xml) Any file
BaSyx configuration
System (please complete the following information):
Additional context Add any other context about the problem here.