Open ZiqiangXu11 opened 7 months ago
@ZiqiangXu11 Sorry for the long response. I guess the problem occures because of the bug in submodel-template aasx file referenced here: https://github.com/eclipse-aaspe/aaspe/issues/161
There is a tool which can fix the problem: https://github.com/LukasBenner/AASFix
@zrgt Hi, thanks for looking into this issue. After fixing the AID submodel template by AASFix, error still happened when open it by AASManager.
Traceback (most recent call last):
File "basyx\aas\adapter\xml\xml_deserialization.py", line 287, in _failsafe_construct
File "basyx\aas\adapter\xml\xml_deserialization.py", line 722, in construct_submodel_element
File "basyx\aas\adapter\xml\xml_deserialization.py", line 959, in construct_submodel_element_list
File "
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "basyx\aas\adapter\xml\xml_deserialization.py", line 287, in _failsafe_construct File "basyx\aas\adapter\xml\xml_deserialization.py", line 722, in construct_submodel_element File "basyx\aas\adapter\xml\xml_deserialization.py", line 931, in construct_submodel_element_collection File "basyx\aas\adapter\xml\xml_deserialization.py", line 333, in _failsafe_construct_multiple File "basyx\aas\adapter\xml\xml_deserialization.py", line 291, in _failsafe_construct ValueError: Failed to construct {https://admin-shell.io/aas/3/0}submodelElementList on line 235 using construct_submodel_element!
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "basyx\aas\adapter\xml\xml_deserialization.py", line 287, in _failsafe_construct File "basyx\aas\adapter\xml\xml_deserialization.py", line 722, in construct_submodel_element File "basyx\aas\adapter\xml\xml_deserialization.py", line 931, in construct_submodel_element_collection File "basyx\aas\adapter\xml\xml_deserialization.py", line 333, in _failsafe_construct_multiple File "basyx\aas\adapter\xml\xml_deserialization.py", line 291, in _failsafe_construct ValueError: Failed to construct {https://admin-shell.io/aas/3/0}submodelElementCollection on line 171 using construct_submodel_element!
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "basyx\aas\adapter\xml\xml_deserialization.py", line 287, in _failsafe_construct File "basyx\aas\adapter\xml\xml_deserialization.py", line 1033, in construct_submodel File "basyx\aas\adapter\xml\xml_deserialization.py", line 333, in _failsafe_construct_multiple File "basyx\aas\adapter\xml\xml_deserialization.py", line 291, in _failsafe_construct ValueError: Failed to construct {https://admin-shell.io/aas/3/0}submodelElementCollection on line 47 using construct_submodel_element!
The above exception was the direct cause of the following exception:
Traceback (most recent call last): File "aas_editor\widgets\treeview_pack.py", line 496, in openPack File "aas_editor\package.py", line 35, in init File "aas_editor\package.py", line 84, in _read File "basyx\aas\adapter\aasx.py", line 151, in read_into File "basyx\aas\adapter\aasx.py", line 194, in _read_aas_part_into File "basyx\aas\adapter\aasx.py", line 224, in _parse_aas_part File "basyx\aas\adapter\xml\xml_deserialization.py", line 1471, in read_aas_xml_file File "basyx\aas\adapter\xml\xml_deserialization.py", line 1438, in read_aas_xml_file_into File "basyx\aas\adapter\xml\xml_deserialization.py", line 333, in _failsafe_construct_multiple File "basyx\aas\adapter\xml\xml_deserialization.py", line 291, in _failsafe_construct ValueError: Failed to construct {https://admin-shell.io/aas/3/0}submodel on line 27 using construct_submodel!
@ZiqiangXu11
Unfortunately the bug is still on the side of submodel-template. It violates some constraint and that'why AAS Manager can not construct the submodel.
I have already opened the issue for the template here: https://github.com/admin-shell-io/submodel-templates/issues/62
Probably you can fix the problem following these steps:
\aasx\AAS_Template_for_AID\AAS_Template_for_AID.aas.xml
in archive
Contact Details
ziqiang.xu@omron.com
What happened?
When open published IDTA 02017-1-0_Template_Asset Interfaces Description.aasx from IDTA, an error happened.
Relevant log output