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.

  3. System closed this discussion on 04 Apr, 2019 02:30 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

Recent Discussions

04 Feb, 2023 02:45 AM
04 Feb, 2023 02:41 AM
04 Feb, 2023 02:07 AM
04 Feb, 2023 12:47 AM
04 Feb, 2023 12:36 AM