I’m currently adding two calc fields to SummaryBill that rely on two existing fields, so it’s now defined as the following:
@ts(treatment='integral') consumption: ExactDimension @ts(treatment='rate') peakDemand: ExactDimension consumption_flip: ExactDimension calc "parent.resource.id == 'xyz' ? peakDemand : consumption" peakDemand_flip: ExactDimension calc "parent.resource.id == 'xyz' ? null : peakDemand"
I can fetch specific SummaryBills by filtering and get no error (and the calc fields return as expected); however, if I do a SummaryBill.fetch(), I get the following error:
Error: Invalid Dimension: 'value' field in Obj<ExactDimension> [,]↵ at new C3.client.ActionError
Is there anything obviously wrong with these calc fields? If not, how can I further debug to find offending records that are causing this?