Archiving Data in the same Cube
Posted: Fri Jan 31, 2020 11:54 am
This is my first time posting, I am new to Planning Analytics and I am still learning. I am working with Code that a consulting company put in place that is not functioning, and I am looking for help fixing the code. I am using Planning Analytics 2.0.4
We have a cube with a Year dimension that with 1 dimension Current Year. The TurboIntegrator process creates a new Year Dimension in this case Operating Budget 2020. It is suppose to take all of the measures from Current Year, and place them in Operating Budget 2020 to close out that years budget so we can start 2022's budget in the Current Year dimension. Many of the measures are defined by rules I bring this up because when running the code as designed, the intersections that are created with rules are left blank. So looking at the Turbointegrator code in the prolog there are these commands
ViewExtractSkipZeroesSet (vCube, vView, 1);
ViewExtractSkipCalcsSet (vCube, vView, 1);
ViewExtractSkipRuleValuesSet (vCube, vView, 1);
Looking at the third command it makes sense why the intersections defined by rules are not coming over, the code explicitly says to skip them. So thinking this is an easy fixes I change that to ViewExtractSkipRuleValuesSet (vCube, vView, 0); This causes a bunch of errors and no data comes over.
Here is the Data portion of the Turbointegrator process
#****Begin: Generated Statements***
MeasureType=DTYPE('mOperatingInput',mOperatingInput);
#****End: Generated Statements****
IF(MeasureType@='N');
CELLPUTN(NUMBR(Value),vCube,Version,pArchiveYear,TimeMonth,Department,Project,NumberedList,Account,mOperatingInput);
ELSE;
CELLPUTS(Value,vCube,Version,pArchiveYear,TimeMonth,Department,Project,NumberedList,Account,mOperatingInput);
ENDIF;
Example of errors
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","42915","Comments","See Account Detail",Data Source line (4694) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","50981","Comments","See Account Detail",Data Source line (4788) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51020","Comments","See Account Detail",Data Source line (4796) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51022","Comments","See Account Detail",Data Source line (4804) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51100","Comments","See Account Detail",Data Source line (4810) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51105","Comments","See Account Detail",Data Source line (4816) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51200","Comments","See Account Detail",Data Source line (4820) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51300","Comments","See Account Detail",Data Source line (4828) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51320","Comments","See Account Detail",Data Source line (4834) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51769","Comments","See Account Detail",Data Source line (4843) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52030","Comments","See Account Detail",Data Source line (4852) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52120","Comments","See Account Detail",Data Source line (4857) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52122","Comments","See Account Detail",Data Source line (4862) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52151","Comments","See Account Detail",Data Source line (4870) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52156","Comments","See Account Detail",Data Source line (4878) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52165","Comments","See Account Detail",Data Source line (4886) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52291","Comments","See Account Detail",Data Source line (4894) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52331","Comments","See Account Detail",Data Source line (4902) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52333","Comments","See Account Detail",Data Source line (4908) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52360","Comments","See Account Detail",Data Source line (4914) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52390","Comments","See Account Detail",Data Source line (4918) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52501","Comments","See Account Detail",Data Source line (4932) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52670","Comments","See Account Detail",Data Source line (4938) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52900","Comments","See Account Detail",Data Source line (4946) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58140","Comments","See Account Detail",Data Source line (4954) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58150","Comments","See Account Detail",Data Source line (4960) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58451","Comments","See Account Detail",Data Source line (4969) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58600","Comments","See Account Detail",Data Source line (4978) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184612","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (9415) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184614","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (9986) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184617","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (10231) Error: Data procedure line (9): Rule applies to cell
We have a cube with a Year dimension that with 1 dimension Current Year. The TurboIntegrator process creates a new Year Dimension in this case Operating Budget 2020. It is suppose to take all of the measures from Current Year, and place them in Operating Budget 2020 to close out that years budget so we can start 2022's budget in the Current Year dimension. Many of the measures are defined by rules I bring this up because when running the code as designed, the intersections that are created with rules are left blank. So looking at the Turbointegrator code in the prolog there are these commands
ViewExtractSkipZeroesSet (vCube, vView, 1);
ViewExtractSkipCalcsSet (vCube, vView, 1);
ViewExtractSkipRuleValuesSet (vCube, vView, 1);
Looking at the third command it makes sense why the intersections defined by rules are not coming over, the code explicitly says to skip them. So thinking this is an easy fixes I change that to ViewExtractSkipRuleValuesSet (vCube, vView, 0); This causes a bunch of errors and no data comes over.
Here is the Data portion of the Turbointegrator process
#****Begin: Generated Statements***
MeasureType=DTYPE('mOperatingInput',mOperatingInput);
#****End: Generated Statements****
IF(MeasureType@='N');
CELLPUTN(NUMBR(Value),vCube,Version,pArchiveYear,TimeMonth,Department,Project,NumberedList,Account,mOperatingInput);
ELSE;
CELLPUTS(Value,vCube,Version,pArchiveYear,TimeMonth,Department,Project,NumberedList,Account,mOperatingInput);
ENDIF;
Example of errors
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","42915","Comments","See Account Detail",Data Source line (4694) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","50981","Comments","See Account Detail",Data Source line (4788) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51020","Comments","See Account Detail",Data Source line (4796) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51022","Comments","See Account Detail",Data Source line (4804) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51100","Comments","See Account Detail",Data Source line (4810) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51105","Comments","See Account Detail",Data Source line (4816) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51200","Comments","See Account Detail",Data Source line (4820) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51300","Comments","See Account Detail",Data Source line (4828) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51320","Comments","See Account Detail",Data Source line (4834) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","51769","Comments","See Account Detail",Data Source line (4843) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52030","Comments","See Account Detail",Data Source line (4852) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52120","Comments","See Account Detail",Data Source line (4857) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52122","Comments","See Account Detail",Data Source line (4862) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52151","Comments","See Account Detail",Data Source line (4870) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52156","Comments","See Account Detail",Data Source line (4878) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52165","Comments","See Account Detail",Data Source line (4886) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52291","Comments","See Account Detail",Data Source line (4894) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52331","Comments","See Account Detail",Data Source line (4902) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52333","Comments","See Account Detail",Data Source line (4908) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52360","Comments","See Account Detail",Data Source line (4914) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52390","Comments","See Account Detail",Data Source line (4918) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52501","Comments","See Account Detail",Data Source line (4932) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52670","Comments","See Account Detail",Data Source line (4938) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","52900","Comments","See Account Detail",Data Source line (4946) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58140","Comments","See Account Detail",Data Source line (4954) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58150","Comments","See Account Detail",Data Source line (4960) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58451","Comments","See Account Detail",Data Source line (4969) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","152000","6220000","TOTAL LIST","58600","Comments","See Account Detail",Data Source line (4978) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184612","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (9415) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184614","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (9986) Error: Data procedure line (9): Rule applies to cell
"Requested Budget","Current Year","Input","184617","1003510","TOTAL LIST","50760","Comments","See Account Detail",Data Source line (10231) Error: Data procedure line (9): Rule applies to cell