Hello,
I want to copy data from one model A to another planning model B with MODEL and LINK command. With this I also want to populate dimensions of Model B using properties of Model A dimension. I am using following script but it gives me error of Scope redirection.
//-----------------------------------------------------------------------------------
//Set Configurations Definitions for the Advanced Formulas.
//-----------------------------------------------------------------------------------
CONFIG.TIME_HIERARCHY = FISCALYEAR
CONFIG.GENERATE_UNBOOKED_DATA = OFF
//-----------------------------------------------------------------------------------
//The data region against which the formulas will be executed.
//-----------------------------------------------------------------------------------
MEMBERSET [d/Measures] = ("MDP")
MEMBERSET [d/FISCAL_MONTH] = BASEMEMBER([d/FISCAL_MONTH].[h/FYP], %FISCAL_YEAR%)
MEMBERSET [d/DATA_SOURCE] = ("UPLOAD_PTA_SLS")
//MEMBERSET [d/ACCOUNT] = "CGRETSL"
//-----------------------------------------------------------------------------------
//Calculation and Data Writing
//-----------------------------------------------------------------------------------
// Link PTA Actuals Model to transfer data
MODEL [SaFARI - PTA Actuals]
ENDMODEL
// Copy Data to Planning model and assign properties of Base Code to Estimate Code, Factory and Product to respective dimension
DATA(
[d/Measures] = "MDP",
[d/ESTIMATE_CODE] = [SaFARI - PTA Actuals].[d/BASECODE].[p/EST_CODE],
[d/FACTORY] = [SaFARI - PTA Actuals].[d/BASECODE].[p/FACTORY],
[d/SaFARI_PRODUCT] = [SaFARI - PTA Actuals].[d/BASECODE].[p/PRODUCT]
) = LINK(
[SaFARI - PTA Actuals],
[d/Version] = "public.Actual",
[d/Measures] = "MDP"
)
------
Below are the error messages I get with this code.
- There is violation of scope redirection in the calculation expressions.
- The dimension [SaFARI - PTA Actuals].BASECODE] is not allowed to be used with linked model because it is shared dimension.
Appreciate any help on this. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.