Forum Discussion

Montreux's avatar
Montreux
New Contributor III
10 days ago

Databuffer not working in an WS Assembly rule but is working in a Business Rule

Hi,

I ran into an issue that a data buffer rule does not work in a workspace assembly but does work in the Business Rules area.  The data buffer rule is the one found in this forum topic and is relatively simple.  See link.

Question: Is there an option to clear non-calculated data in a “bulk” (as known from hs.clear) other than looping through the data buffer and use “SetDataCell” (which has a higher performance impact)? The “ClearCalculatedData“ is not impacting input/imported data – right? | OneStream Community

I have this rule in an existing custom calculate rule in the assembly and the rule fails to get the source data buffer.  I take this same rule and include it in a new Business Rule and it runs fine.

Rules that work in the business rules should work in assemblies also.

 

1 Reply

  • JackLacava's avatar
    JackLacava
    Icon for OneStream Employee rankOneStream Employee

    Calculation Rules that work in business rules *do* work in assemblies too - they might just need a bit more context. If you post it, people might find what is missing.