2

Failed to match against any enum values

When I update IDF from 8.7.0 Version to 9.0.1 Version, running 9.0.1 version has a severe error, as follows:

** Severe  ** <root>[ScheduleTypeLimits][ControlMode][unit_type] - "controlmode" - Failed to match against any enum values.

How to deal with it?

yingli.lou@colorado.edu's avatar
163
yingli.lou@colorado.edu
asked 2020-01-09 23:43:46 -0500
__AmirRoth__'s avatar
4.4k
__AmirRoth__
updated 2020-01-14 09:24:18 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

This error tells you that you have a field with \type choice that has a value that isn't listed as a valid choice, here this is the 'Unit Type' field of object ScheduleTypeLimits.

If you look at the I/O reference guide, you'll find that this field isn't even used by EnergyPlus, it's only used by the IDF Editor to convert from SI to IP units based on your preferences (cf here)

Please refer to the Energy+.idd for version 9.0.1 to find the list of applicable choices, which I included below for convenience.

Replace ControlMode with Control for example (or with a blank, which means it'll use the default of 'Dimensionless')


Extract from V9-0-0-Energy+.idd:

ScheduleTypeLimits,
  [...]
  A3;  \field Unit Type
       \note Temperature (C or F)
       \note DeltaTemperature (C or F)
       \note PrecipitationRate (m/hr or ft/hr)
       \note Angle (degrees)
       \note Convection Coefficient (W/m2-K or Btu/sqft-hr-F)
       \note Activity Level (W/person)
       \note Velocity (m/s or ft/min)
       \note Capacity (W or Btu/h)
       \note Power (W)
       \type choice
       \key Dimensionless
       \key Temperature
       \key DeltaTemperature
       \key PrecipitationRate
       \key Angle
       \key ConvectionCoefficient
       \key ActivityLevel
       \key Velocity
       \key Capacity
       \key Power
       \key Availability
       \key Percent
       \key Control
       \key Mode
Julien Marrec's avatar
29.7k
Julien Marrec
answered 2020-01-10 02:21:08 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments