• 95 views | 2 messages Discussion: LEAP
    Topic: Has "ValueRS" function changed recently [between 1.41 to 1.68]?Subscribe | Previous | Next
  • Sharad Bharadwaj 7/22/2022

    I am trying to access a variable's energy demand value using the API. My colleague had written a script which worked under LEAP version 1.41, in which we accessed the function "valueRS(region,scenario,year)" for a particular variable. When I try re-running the script using a LEAP area v1.68 (after updating the area to be compatible with the 1.68), I get the following error:

    Variable.ValueRS: Invalid region(-1)

    Has there been any change to the ValueRS function as part of the broader result view updates recently? Thank you!

    Sharad


  • Charlie Heaps 7/22/2022
      Best Response

    Looks like you are indeed passing an invalid parameter to the function. Region IDs should all have values of +1 or higher.