Forum Discussion
I don't really follow... Where exactly did you place your "allocation" code? Is it a Member Formula, a Custom Calculate...?
"Clear calculated data during calc" will wipe from the Data Unit any record generated by previous runs of any rule, before any rule is executed again. That means any record pointing to the same Cube/Scenario/Period/Entity/Parent/Consolidation combination of members, which was not the result of an Import or Form operation, will be deleted as soon as you trigger a new Calculate/Translate/Consolidate that involves that Data Unit.
I have a feeling your "source" records are the result of calculations, your code triggers a calculation that inevitably wipes them, and hence your code doesn't find any data to work with. If the entire Data Unit at that point is empty, the rule might not even run at all, depending on the "No Data" properties set on the Cube. If that is the case, you will have to make sure that the source data is marked as Durable.
- Jeevan9 months agoNew Contributor II
Hi Jack,
Thanks for the response and information. It is a custom calculate br. The issue was fixed for me after adding isdurablecalculated data to true in the setdatacell.
Thanks
- sameburn9 months agoContributor II
Ok this is expected behaviour then based on omitting the isDurableData boolean from your api.data.calculate formula.
Related Content
- 4 months ago
- 6 months ago
- 3 years ago
- 7 months ago