Forum Discussion
svj12
7 months agoNew Contributor II
Invalid destination data unit in script
I'm making my first attempt at using the DataBuffer to perform a data copy from a source scenario to a destination scenario. This is being done through a Data Management (DM) step and a Custom Calcul...
- 7 months ago
In your case I suspect it is your entity filter. Which i am guessing will differ to your hard coded E#ES at runtime. Maybe try just passing in a single entity and then build up your logic from there.
You can use FinanceRulesApi object to get Entity, Scenario and Time etc dynamically from what you pass in e.g api.Pov.Entity.Name
sameburn
OneStream Employee
7 months agoHi svj12
The best way to understand this is that the ExpressionDestinationInfo object represents the data unit dimensions in your buffer (the target), only.
You can leave this blank if you are using a custom calculate and it will use the data unit passed in by your DM step (this is good practice).
It should never include non data unit dims e.g A#,O# etc
You cannot write to a data unit this way, if it is not passed in via your selections e g not the E#, S# or T# passed into your logic.
This is what your error suggests you are trying to do e.g does the target E#, S# or T# you are trying to set correspond to the E#, S# or T# that you are passing into your logic. If not you typically get an 'invalid destination data unit' error
Hope this helps
Sam
Related Content
- 4 years ago
- 2 years ago
- 2 years ago