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 during creation: Please check your inputs! #568

Closed
AlexD0302 opened this issue Mar 13, 2024 · 8 comments
Closed

Error during creation: Please check your inputs! #568

AlexD0302 opened this issue Mar 13, 2024 · 8 comments
Labels
bug Something isn't working

Comments

@AlexD0302
Copy link

Hello,
I have sometimes the error that when I want to edit an existing component the
Error message: "Error during creation: Please check your inputs!" appears.

If I delete all "incorrect" fields, I jump back to the "Common" tab and it is still not possible to save. the changes

Does anyone have the same problem or am I doing something wrong?

@AlexD0302 AlexD0302 added the bug Something isn't working label Mar 13, 2024
@jbtronics
Copy link
Member

What are the fields which are invalid and what message does they show?

@AlexD0302
Copy link
Author

I mean the following fields (this is just a example and many more Parts have this strange behavior)

image

Even if i delete the marked fields, the error will appear again and shows that now an other field isn't correct.

@eleinfroot
Copy link

Sorry, my english is poor :)
When i update part from information provider, saving changes is OK, but if i try to change anything after, then i got same errors as above. Workaround, not solution: delete all parameters, purchase informations and attachments and save changes. Then again update from info providers and save.

@jbtronics
Copy link
Member

You have to delete the duplicate parameters (the ones marked red), before saving. Then the duplicate error message should disappear

@jbtronics
Copy link
Member

What part provider do You use? And what part is it?

I guess the provider returns some duplicate fields (which is not allowed).

@eleinfroot
Copy link

Yes. TME returns duplicate fields like "rodzaj opakowania", but first save is OK. Only after changing already imported information does the error appear.
6
8
10

@d-buchmann
Copy link
Contributor

Maybe it's possible - instead of filling in the duplicate parameters on part review - to add just the first parameter and join the duplicates as a comma separated list into the text field of the first one? I think little to no information will be lost that way, and ultimately the info provider (TME) is at fault here.

jbtronics added a commit that referenced this issue Apr 28, 2024
@jbtronics
Copy link
Member

The validation is now performed already on part creation, meaning you can not create an invalid part (a message will be shown then). The user can then decide which value to keep.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants