Skip to content

REopt API callback error about URDB V7 net metering option #1621

@cpaulgilman

Description

@cpaulgilman

Describe the bug

REopt API call fails for net energy metering with $ credits option.

Could not evaluate callback function:call_reopt->on_change
[71]: error in call to 'reopt_size_battery()': ElectricityRates_format_as_URDBv7 error. ur_net_metering_option not available in URDBv7.[12]: eval error in statement list

For description and example file, see https://sam.nrel.gov/forum/forum-general/4427-get-battery-size-with-reopt-under-net-energy-metering-with-credits-error.html#12703

Further testing required. For example, changing to net metering results in:

Could not evaluate callback function:call_reopt->on_change
[71]: error in call to 'reopt_size_battery()': access violation: expected hash table, but found null[12]: eval error in statement list

To Reproduce

  1. Download .sam file from forum discussion (see above).
  2. On Location and Resource page, change weather file to one in library, or download TMY file for Ithaca, NY.
  3. On Battery Cell and System page, click Get size and dispatch.

Expected behavior

REopt API call should handle different metering and billing options without causing a callback error.

Operating System and Version

  • OS: Linux Mint 21.1
  • Version 2023.12.1

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions