Jeevan
9 months agoNew Contributor II
setdatacell not working if the scenario setting "clear calculated data during calc" is set to TRUE
Hi Everyone,
I am trying to allocate forecast data to the gl's based on the last year actuals data. The allocation is not happening when the forecast scenario setting "clear calculated data during calc" is set to TRUE. If I set it as FALSE, the allocation is happening.
This data is copied using the setdatacell from the allocated value to the target script in which origin member is O#forms.
It seems the value is not written to the origin member if I set the scenario setting to true.
can someone explain me what is happening? Also, I tried adding the below calculate and clear code.
api.data.calculate($"{script} = 0 * {script}")
api.data.clearcalculateddata(script)
It worked until I did not change any data, once I changed the data, the allocation did not happen again.
Thanks,
Jeevan