Created attachment 168828 [details] Error window *** If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports *** SUMMARY I approved some scheduled operations for today in KMyMoney and try to save it just pressing the button SAVE and got error STEPS TO REPRODUCE 1. Make approve for some scheduled operations in KMyMoney 2. Press SAVE button 3. Got error OBSERVED RESULT Error screen with message: "Unable to open file 'C:/Users/Ussser/Documents/001.kmy' for writing. /home/abuild/rpmbuild/BUILD/kmymoney-5.1.3/kmymoney/plugins/xml/xmlstorage.cpp:510" EXPECTED RESULT Expect that file will saved SOFTWARE/OS VERSIONS Windows: 10 22H2 ADDITIONAL INFORMATION KMyMoney 5.1.3 KDE Frameworks 5.76.0, Qt 5.12.12 (собрана с версией 5.12.12), Оконная система windows.
(In reply to Logistix from comment #0) > Created attachment 168828 [details] > Error window > > OBSERVED RESULT > Error screen with message: > "Unable to open file 'C:/Users/Ussser/Documents/001.kmy' for writing. Please open a comand shell in the subdirectory 'bin' of the installed product and run kmymoney from this shell. It will print more intrtnal information. Further information related to access rights and other possible issues can be find out by using procmon from sysinternals.
Updated status
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME. For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging. Thank you for helping us make KDE software even better for everyone!
Within kmymoney there is a possible improvement for such situations - In case of errors, the QFile::setError() method is called (https://github.com/qt/qtbase/blob/3f34ee3196930d0bda167fe783ea7b2b62a1fe4d/src/corelib/io/qfsfileengine_win.cpp#L102), which contains the underlying Windows error message with qt_error_string() and which is available with the call of QFile::errorString() and can be printed too.
Git commit 1c6fef51e9b5a1f511b320dfd7a58ccc7f0cc598 by Ralf Habacker. Committed on 18/11/2024 at 09:00. Pushed by habacker into branch 'master'. Output more details for errors relating to opening files for writing To avoid changing translations, the untranslated details are appended programmatically. M +1 -1 kmymoney/plugins/csv/export/csvwriter.cpp M +1 -1 kmymoney/plugins/qif/export/mymoneyqifwriter.cpp M +1 -1 kmymoney/plugins/xml/xmlstorage.cpp https://invent.kde.org/office/kmymoney/-/commit/1c6fef51e9b5a1f511b320dfd7a58ccc7f0cc598