imodel-native icon indicating copy to clipboard operation
imodel-native copied to clipboard

Presentation: When calculated property value evaluation fails, the error says it's not primitive

Open grigasp opened this issue 1 year ago • 0 comments

Try a rule like this:

{
  "ruleType": "ContentModifier",
  "class": {
    "schemaName": "BisCore",
    "className": "GeometricElement3d"
  },
  "calculatedProperties": [
    {
      "label": "Test boolean",
      "value": "this will fail",
      "type": "bool"
    }
  ]
}

In the above rule the value attribute is not a valid ecexpression, but the response error says: Calculated property evaluated to a type that is not primitive (BE_SQLITE_ERROR). Could we be more specific and say that evaluation failed?

grigasp avatar Oct 09 '24 11:10 grigasp