Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when loading files from AASX-Server #188

Open
foprs opened this issue Mar 18, 2024 · 2 comments
Open

Error when loading files from AASX-Server #188

foprs opened this issue Mar 18, 2024 · 2 comments
Assignees
Labels
Needs: Author Feedback Waiting for information/ feeadback from issue's author Needs: Triage Needs sorting

Comments

@foprs
Copy link

foprs commented Mar 18, 2024

Describe the bug
We have established a connection with a local AASX-Server (via AASX File Repository/Connect HTTP/REST....)
When loading a aasx-file (double click on the file in the AASPE) from the server, AASPE throws an error. It is the same error independent from the file. When loading the same file directly into the AASPE no error is there (test file is attached below).

Expected behavior
Loading the file without error into AASPE

Screenshots
image

image

image
test.zip

Desktop (please complete the following information):

  • Windows 11
  • ASSX-Server adminshellio/aasx-server-blazor-for-demo:main / publised 4 days before 18.03.24
  • AASPE 2024-03-05
@juileetikekar juileetikekar self-assigned this Mar 19, 2024
@juileetikekar juileetikekar added Needs: Author Feedback Waiting for information/ feeadback from issue's author Needs: Triage Needs sorting labels Mar 19, 2024
@juileetikekar
Copy link
Contributor

Hi @foprs,

We could not reproduce the provided exception stack trace (Screenshot 1, highlighted lines) with the attached AASX File. Also the file name from the exception does not match with the provided one.

image

However, from high-level analysis it seems, that an empty "valueId" was modelled for a submodel element. This means, the valueId (of type reference) consists of a type but no keys.

Could you please check for any such occurrances in the modelled file? If yes, please add at least one key or delete the valueId itself. Also, if possible, could you please share the exact file for us to reproduce the exact issue?

@foprs
Copy link
Author

foprs commented Mar 19, 2024

I did some tests with reduced models. In the attachment there is "test_aas_a.aasx" and "test_aas_b.aasx". When loading "test_aas_b.aasx" an error occurs.

image

The difference between the both model lies in the last concept description "TimeSeries". The Data Specification record has not been created in "test_aas_a". In "test_aas_b" the record has been created but no reference is set.

In general I am questioning that there is made a difference between opening a aasx directly and loading via the server.
I would think that the server is there to work collaboratively on asset shells. There will be drafts that should be loadable also when not all references (key, values) are set.

Question

  1. What is checked when loading from the server in difference to loading the file directly into the AASPE?
  2. Why is this differentiation made?

test_aas_a.zip
test_aas_b.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Waiting for information/ feeadback from issue's author Needs: Triage Needs sorting
Projects
None yet
Development

No branches or pull requests

2 participants