Changes made by my Python script not saved.

Rudy's Avatar


21 Oct, 2019 05:33 AM


I'm using MoneyDance 2019.3, and am writing a python script to automatically add / change some memos/descriptions and tags to certain transactions, the code are something like these:

for txn in txnSet.iterableTxns():
  if isinstance(txn, SplitTxn) and certain_condition_satisfied(txn):
    txn.tags['tags'] = 'my_tag_1'
# end of code

Although the above code seems to work fine and can make the changes I intended, I was surprised to find that all the changes it had made would be lost once I closed my MoneyDance program.

Am I missing anything here? Is there a secret switch to force saving my changes? Thank you.

  1. Support Staff 1 Posted by Sean Reilly on 21 Oct, 2019 07:39 AM

    Sean Reilly's Avatar

    Hi Rudy,

    Ah yes, I really need to write some decent documentation about things like this. For any change you make in Moneydance you'll need to call .syncItem() on it to make sure it is saved to disk.


    Sean Reilly
    Developer, The Infinite Kind

  2. System closed this discussion on 20 Jan, 2020 07:40 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac