Automatic Solve Order

After so many years working in SW, still I fail to understand the logic behind equation order.

Can anyone explain why I’m receiving error in the following equation?
2021-10-26_17-31-58.jpg
If I mouse over the yellow triangle I see the following message:
Warning: The equations are out of order. Try Activating “Automatic solve order”

If I follow the instructions in warning the order changes and the error is gone:
2021-10-26_17-31-58.jpg
Why Z variable should be declared before X & Y? It’s not used anywhere at all…

thanks for any kind of insight.

Works OK for me so this could be a glitch. Try force rebuild or restart SW/machine.
image.png

Thanks for the reply and sorry for not being able to reach you sooner. I was in a business trip.

Seems that SW needs to be restarted to understand how the real orders should be.
In my case every time I change the order of equations, I have to restart SW to understand the new order has no problem

Thanks again.

I would suggest to report to your VAR, could be an issue with the installation or DLL.

I’ve seen something similar in the past as we use equations quite extensively. It didn’t happen every time but when it did it required a restart of SolidWorks to fix. Seems some code in memory was corrupted. Can you share the file?