Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.

About WEAP

What's New?
Sample Screens
History and Credits

Using WEAP
User Guide
Videos (YouTube)

User Forum
Members List
Edit Profile

Additional Support
University Courses

About Us
SEI-US Water Resources Program
Please Contact Us

Environmental News
Not acting like themselves: Antidepressants in environment alter crayf...
Expose crayfish to antidepressants, and they become more outgoing -- but that might not be such a positive thing for the...

Use of PFAS in cosmetics 'widespread,' new study finds
Many cosmetics sold in the United States and Canada likely contain high levels of per- and polyfluoroalkyl substances (P...

Baltic herring larvae appear earlier and grow faster due to climate ch...
Conditions during Baltic herring spawning may have cascading effects on the whole Baltic ecosystem.
Source: Science Daily
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!

User Forum

All Topics | Topic "Error with ResultValue API when name of branch has / symbol"
Log in to post new messages or reply to existing messages.
Author Message
Mrs. Silvia Ulloa

Subject: Error with ResultValue API when name of branch has / symbol   
Posted: 3/23/2018 Viewed: 3576 times
I'm using the WEAP.ResultValue API to extract data for different paremeters. However, it gives an "invalid branch" error when I include branches that have the symbol "/" in their name. For example the "/" in a branch that has the Other/Bare land use type:

WEAP.ResultValue("Demand Sites and Catchments\Alarache\SANDY CLAY LOAM_Other/Bare:ET Potential[m^3]", Yr, Mes, WEAP.ActiveScenario)

I get the same problem for all the branches that have this symbol.

Please provide assistance!

Ms. Stephanie Galaitsi

Subject: Re: Error with ResultValue API when name of branch has / symbol   
Posted: 4/16/2018 Viewed: 3566 times
Hi Silvia,

It looks like one of your land use types is "Sandy Clay LOAM_OTHER/Bare". Unfortunately WEAP cannot handle foward slashes (/) in the names of land use types. We recommend renaming the land use type to delete the slash - and to do this for any other land use type that has a slash.

Keep in mind that if you have to re-delineate your catchments and landuses, you may need to make this change again.
Topic "Error with ResultValue API when name of branch has / symbol"