What is a *.kmy.YharAP file?

If found a file in my KMyMoney data file folder that I don’t recognize. It has the name of my normal datafile with a “YharAP” extension.

What is it and should I keep it or delete it?

I have never seen such a file before.

Short answer: I expect this to be a temporary file as a leftover due e.g. a crash while saving.

Longer answer: KMyMoney plays safe when it comes to storing your data. When you open your data file, make some changes and save it, KMyMoney does not write directly to that file. Behind the scenes, it creates a temporary file by appending a six character long random string to the name and writes the data out to disc. In your case this time it was YharAP. Next time, it will be different.

In case something happens half way through that save operation and the application e.g. crashes, your original file is still there unaltered. Only if the storage operation finishes successfully, the rotation of the *.kmy.#~ file is performed, your original file is renamed *.kmy.1~ and then this temporary file is renamed to *.kmy.

Now what to do your *.kmy.YharAP file: check the timestamp of the file. Do you remember a crash around that time? If it is older than your current *.kmy file, you can simply remove it.

Hope that helps.

Perfect explanation. Basically what I expected it was. Thanks.