tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/2170-time-for-data-to-be-written-to-the-fileInfinite Kind: Discussion 2018-10-18T14:11:02Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/454983902018-06-18T05:03:44Z2018-06-18T05:04:18ZTime for data to be written to the file<div><p>I have an extension that runs through a file and loads security and currency prices. This is done on a one by one basis. At the end of each record I perform a .syncItem() on each record.</p>
<p>If I run the enclosed file and only update the Security it works fine.<br>
If I only update the Currency it too works fine.<br>
However if I run both together. The security is done first followed by the currency it does not work. It looks like the security is having the currency price applied twice to the base rate so 190.7 becomes 144.92.</p>
<p>Going through the code in debug I see that when you change the Currency Rate you update any security with that currency. Is there a delay after I have done syncItem() before the data is in the file? If so is there a way of waiting for the data to be written?</p></div>Mike Bray (Quote Loader Author)