On opening the automation in IDE, I get an error msg: Invalid X value for connection block (see img attached).
If I confirm to open, all blocks have lost their links and many blocks are disappeared.
Clean and rebuild are without error and the project is also deployed correctly.
And the automation within the project working as expected at runtime.
Os file (xml) seems to be formally correct (attached: mainDCMS_Input.os)
Is it possible to restore that automation file? that is to find what is the problem?
There's likely some corruption there. Perhaps you are setting an integer value to that of a string and that is causing the issue. Once corrupted, there's no way to recover. It does look like the X value being set is your issue. That might allow you to locate where in your automation the problem is and disconnect it or not set it incorrectly in a prior version of the automation.