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
Fixed error when importing a container: This variable cannot be deleted as it is used in other places #388
Comments
As part of this issue for now we will adjust the error message. We will keep this issue open once the message is adjusted. Then as a next step we would need to see if we can revert to the previously active draft as the import would then have worked partially I assume and be incomplete. Ideally on any import failure we would revert to the previous version. |
Currently my Import process will not work, as I'm facing this issue. How can I tell which variable is giving me the most trouble? |
If a variable uses other variables, it might break. So I have tried out, which variable is responsible, removed it and re-import the container. It worked like this. |
What this import represents (refs #293 ):
The above one there is a variable that references itself which is causing this issue. Technically, this should not be happening anymore as we prevented a while ago this from happening and any newer container it shouldn't be possible to configure such a container. Unless someone configured the JSON themselves.
Maybe we could time box and look into this for 1 hour to see if we can fix this issue and make such imports happen and if not we might put it back in the backlog. If we can't solve it quick, maybe in import we could catch this error and then attach an extra message so it reads like
This variable cannot be deleted as it is used in other places. To remove this variable, first remove all places where this variable is used. It could be that a variable references itself within a variable.
. We wouldn't change the error message though in other places.The text was updated successfully, but these errors were encountered: