Sergey
2 years agoContributor III
Allocation Custom Calc error "An Internal Method is not implemented"
Dear Community,
I am trying to run an allocation finance rule. I believe I have set up everything for that in the business rule.
However, upon running the BR I get the message "An internal method is not implemented"
Please find below the business rule (currently set on a demo asset) :
Dim MyAllocationType As allocationtype = Allocationtype.EvenDistribution
Dim MyAllocationOptions As New allocationoptions
Dim MyAllocationResult As New AllocationResult
MyAllocationOptions.AllocationType = MyAllocationType
If MyAllocationType = AllocationType.EvenDistribution
' The value to allocate
MyAllocationOptions.SourcePOVMemberScript = "Cb#Houston:E#[Houston Heights]:C#USD:S#BudgetV2:T#2022M12:V#Periodic:A#2000_100:F#None:O#Import:I#None:U1#None:U2#Mach5:U3#NA:U4#[Active Hub]:U5#None:U6#None:U7#None:U8#None"
' Any override to be done on source value
MyAllocationOptions.SourceCalcScript = "A#SourcePOV * 0.1"
' Target POV, must be lowest level on all dim except the one being allocated
MyAllocationOptions.DestPOVMemberScript = "Cb#Houston:E#[Houston Heights]:C#USD:S#BudgetV2:T#2022M12:V#Periodic:A#2000_100:F#None:O#Forms:I#None:U1#None:U2#Mach5:U3#Connecticut:U4#[Active Hub]:U5#None:U6#None:U7#None:U8#None"
' Dimension being allocated
MyAllocationOptions.DimTypeName = "UD4"
' Filter to define which elements will be allocated
MyAllocationOptions.DestMemberFilter = "U4#Root.Base"
' Should zeros be saved with "no data" attribute
MyAllocationOptions.SaveZerosAsNoData = True
' Calculate allocation result based on the allocation options
Myallocationresult = api.Data.CalculateAllocationResult(MyAllocationOptions)
End If
Any ideas where this might come from ?
Regards,