Forum Discussion

svj12's avatar
svj12
New Contributor II
7 hours ago

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 Calculate business rule. To keep things simple for this initial version, the input values are hard-coded.

Dim dbSource As DataBuffer = api.Data.GetDataBufferUsingFormula("S#Budget:T#2026M7:A#CF101:O#AdjInput:E#ES", DataApiScriptMethodType.Calculate, False)

Dim destinationInfo As ExpressionDestinationInfo = api.Data.GetExpressionDestinationInfo("S#Forecast_Q2:T#2026M7:A#CF101:E#ES:O#AdjInput")

api.Data.SetDataBuffer(dbSource, destinationInfo,,,,,,,,,,,,,False)

 Appreciate any inputs to fix this. Thanks 

No RepliesBe the first to reply