I came across this error when I was trying to save my method after using a HSL code on the Method Editor.
This error occurred after I made a change in one of my HSL code blocks and tried saving the method. What happened was that the first time I made a change to the code black, it gave me a syntax error. After I fixed the syntax error, I couldn’t save my method since this error popped up. So, I closed the program in hope of “restarting” my method but I can’t even access the method file anymore.
From what I could understand from related topics, I tried to disable checksum verification on the System Configuration Editor but it did not resolve the issue and, instead gave me another error. I hope I did not lose my method.
Any help appreciated,
I may be wrong in this, but when you made the change to the HSL counterpart of your method .med, the HSL method editor regenerated the checksum for that file, but your .med will still expect the old checksum, as it doesn’t know you have edited the HSL.
If you were to save the .med again, it will overwrite your edited HSL file. There are a few options available to you, such as making a new HSL file and importing that into your .med, or writing HSL in the .med itself, but what is better depends on your usage.
Thank you for insight on the issue at hand. The only thing that is different from what you explained is that I was writing the HSL code directly in my .med file, which resulted in this error. So, by the logic you explained, if I were to save .hsl file again, the edited .med file will be overwritten?
Oh, you wrote the HSL code in the med file? In that case you shouldn’t need to edit the HSL file then? I think the med updates the HSL file, but not the other way around, which is causing the mismatch.
I see. In that case, then I still do not know how to resolve this issue because I cannot open the .med file anymore cause the checksum verification error keeps popping up.
Disable the checksum verification option in the System Configuration Editor under Security Settings, then try opening the method. If you don’t need Checksum Verification, then you can leave it disabled. Otherwise, make a change to the method, Save it, then turn Checksum Verification back on.
Thank you for the response. I disabled the Checksum verification and tried to open the .med file on the Method Editor and received this error instead, which still prevents me from opening the .med file.
This Data Definition error occurs when a key pairing is lost between the .med file and the .hsl file (or other supporting files required to make a method work). The best way to resolve this issue is to restore the method files from a backup, typically a package file that is exported during the programming process. Backing up regularly is highly suggested to avoid issues like these as well as be able to recover from problems that might occur in or outside of VENUS.