• 265 views | 4 messages Discussion: LEAP
    Topic: Results Calculation Issue with Version 2017.0.5.0Subscribe | Previous | Next
  • Matthew Davis 2/17/2017

    Hello,

    Usually I have been able to calculate a scenario, and the results save, including anything pulled from excel sheets. Since the latest update my model wants to re-calculate everything every time I change something. This is making it impossible to work with as my model is very large and each of my scenarios take a long time to calculate. For example - I run results for my reference scenario - it calculates - I save - I make a change in an alternate scenario run results - to calculates the reference scenario all over again before going to the alternate scenario calculations (perhaps an issue with storing the excel cache?). There is also an issue where it gives an error when trying to calculate results (image attached). This error is fixed if I close excel from the task manager and re-calculate, but then it re-calculates the entire area and all scenarios.

    Edit: Feb 21, 2017
    An addendum to my original posted comments:
    This issue does not happen when I work with previous saved versions of my area, so it does not seem to be an issue with the LEAP Version, rather something with my LEAP area. It is as though it will not save an excel cache. For the area having issues I copied and renamed the original area file to keep one as a back up file. Perhaps this can cause these issues? Not a pressing issue but any insights are appreciated.

    Thank you,
    Matt


    Attachments:  Presentation1.pptx [5]
  • Taylor Binnington 2/24/2017
      Best Response

    Hi Matt - sorry for the slow response. We've had a few other things on the go and our responsiveness has suffered.

    I'm really not able to reproduce this on my computer with LEAP 2017.0.5.0. I've tried using a simple two-region model with several scenarios, and which has an expression referring to a value stored in an external Excel document using the Excel() function, as you have. I can verify that if I change a value in one of the scenarios and regions on which no other scenarios and regions depend, only that scenario is recalculated when I return to the Results view.

    Some follow up questions:
    1. Are you ever clicking the Area: Force Refresh of Excel Links, or Area: Force Whole Area to Recalculate options in LEAP's main menu (I expect that you are not)?
    2. Are the referenced Excel documents already open on your desktop when you calculate results? Does the problem occur if you preemptively open each of these referenced documents?
    3. Are you certain that you're not changing an expression in a particular region from which other regions inherit expressions? Or in a scenario which is referenced by another scenario (for example, using LEAP's ScenarioValue() function)?
    Sorry for the potentially trivial questions. If you are able to trim down your model to a very simple model which demonstrates the problem, please feel free to forward it along via this thread.

    Best,
    Taylor

  • Matthew Davis 2/24/2017
      Best Response

    Hi Taylor,

    To answer your questions:
    1. I am not
    2.
    Are the referenced Excel documents already open on your desktop when you calculate results?
    • They are typically not, however, generally, it has not mattered if a referenced excel document was open or closed, the model would calculate without error.
    Does the problem occur if you preemptively open each of these referenced documents?
    • It does occur still. Also, I just found that I can not open the documents after the error has occurred. Once I force close excel from the task manager or save LEAP, then run results, the entire area will re-calcualte once again, even though it may have just calculated.
    3. I am certain.

    I have updated and have been using an older model iteration which is working and is now my primary. So this problem is not affecting me currently, but, it would be useful to know what is going on in case it happens again. Let me know if you would like me to email you a link to download the file. I have it calculating only one region with minimal results to save so it should be quick for you to check if you directly run results after opening.

    Thanks,
    Matt

  • Charlie Heaps 2/24/2017
      Best Response

    Hi Matt,

    Sorry for the problems and frustrations this is causing.

    I had a look at the data set you sent. Its too big to easily debug but I tried setting the end year down to 2020 and reducing the number of regions calculated. At that point I cannot reproduce the issue. I suspect though that there may be an issue with the caching of all the Excel files you reference You may want to try exiting LEAP then deleting the file "ExcelCache.ini" in you LEAP area and then try again. Suggest you test this out with a small number of years and small number of regions and then gradually step up the size of the problem to see if the problem goes away or still occurs. Meantime, I will do a bit more testing now.

    Best,

    Charlie
    LEAP developer