richard's Avatar


01 Jan, 2019 11:13 PM

Running the in the python scripting zeroes out existing security data when the moneydance file is closed. Any ideas as to what is going wrong.

  1. Support Staff 1 Posted by Sean Reilly on 02 Jan, 2019 11:15 AM

    Sean Reilly's Avatar

    Hi Richard,
    Ah yes, sorry about that. We moved a while ago to requiring a sync/save call for snapshots to prevent an overflow of history entries which were coming from calls to create snapshots which weren't meant to be saved. Anyway, you should just change any calls to security.setSnapshotInt(dateint, price) to invoke syncItem() on the result: security.setSnapshotInt(dateint, price).syncItem().

    I'll update the sample code now too.


    Sean Reilly
    Developer, The Infinite Kind

  2. 2 Posted by Richard on 03 Jan, 2019 02:29 AM

    Richard's Avatar

    Thank you for the prompt response.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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