Hi,
I use TM1 9.5.2.
I write a process wich should copy some data from one cube to another. Done a couple of times. In the Prolog I just define Subsets and a view for the Destination-Cube, Zero it out and destroy View and Subsets.
After that I define Subsets and a View for the Source-Cube and assign it to "DatasourceCubeView". After that I want to process my data and than clean up in the Epilog with destroying the View and the Subsets.
That works without an Error and the View is build correctly. If I do not destroy the View and Subsets I see it is defined after the TI as I expected. Zerosupression is on but there are values. But neither MEtadata nor Data is entered.
Does anyone has an idea where I can look at?
TI Process Metadata and Data Tab are not processed
-
- Community Contributor
- Posts: 341
- Joined: Wed Nov 03, 2010 9:16 pm
- OLAP Product: tm1
- Version: 10 2 2 - 2.0.5
- Excel Version: From 2007 to 2013
- Location: Earth
Re: TI Process Metadata and Data Tab are not processed
Hi
do you have rule calculated values in the source view? if yes, are they fed?
do you have rule calculated values in the source view? if yes, are they fed?
-
- MVP
- Posts: 3706
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: TI Process Metadata and Data Tab are not processed
Considering Willi says he looked at the view in cube viewer with zero supression on it is probably much more likely that the reason for nothing happening in the data tab is that the view processing is skipping calcs and one of the dimensions in the view has been assigned a subset that has only C elements which is a pretty common mistake.mvaspal wrote:Hi
do you have rule calculated values in the source view? if yes, are they fed?
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
-
- Regular Participant
- Posts: 151
- Joined: Mon Oct 07, 2013 11:51 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2010
Re: TI Process Metadata and Data Tab are not processed
Here is the complete Prolog: (the first section for destroying Source-View and Subsets are because I don't delete them in the Epilog during test)
The Values in the Source are not Calculated.
Code: Select all
vCubSrc = 'Planung_Basis';
vCubDst = 'Mathematische_Jahresplanung';
vDimSrc1 = 'Szenario';
vDimSrc2 = 'Monat';
vDimSrc3 = 'Jahr';
vDimSrc4 = 'Produkt';
vDimSrc5 = 'Kennzahl';
vDimDst1 = 'Szenario_MPL';
vDimDst2 = 'Jahr';
vDimDst3 = 'Produkt_MPL';
vDimDst4 = 'Vertrieb_MPL';
vDimDst5 = 'Kennzahl';
vSub = '}load_Cube_Mathematische_Jahresplanung_Uebertrag_Plan_Daten';
vView = '}load_Cube_Mathematische_Jahresplanung_Uebertrag_Plan_Daten';
if (ViewExists(vCubSrc, vView) = 1, ViewDestroy(vCubSrc, vView), 0);
if (SubsetExists (vDimSrc1, vSub)=1, SubsetDestroy(vDimSrc1, vSub), 0);
if (SubsetExists (vDimSrc2, vSub)=1, SubsetDestroy(vDimSrc2, vSub), 0);
if (SubsetExists (vDimSrc3, vSub)=1, SubsetDestroy(vDimSrc3, vSub), 0);
if (SubsetExists (vDimSrc4, vSub)=1, SubsetDestroy(vDimSrc4, vSub), 0);
if (SubsetExists (vDimSrc5, vSub)=1, SubsetDestroy(vDimSrc5, vSub), 0);
### Destination-Part clearen ###
if (ViewExists(vCubDst, vView) = 1, ViewDestroy(vCubDst, vView), 0);
if (SubsetExists (vDimDst1, vSub)=1, SubsetDestroy(vDimDst1, vSub), 0);
if (SubsetExists (vDimDst2, vSub)=1, SubsetDestroy(vDimDst2, vSub), 0);
if (SubsetExists (vDimDst3, vSub)=1, SubsetDestroy(vDimDst3, vSub), 0);
if (SubsetExists (vDimDst4, vSub)=1, SubsetDestroy(vDimDst4, vSub), 0);
if (SubsetExists (vDimDst5, vSub)=1, SubsetDestroy(vDimDst5, vSub), 0);
SubsetCreate (vDimDst1, vSub);
SubsetElementInsert(vDimDst1,vSub,'Plan Basis',1);
SubsetCreate (vDimDst2, vSub);
SubsetElementInsert(vDimDst2,vSub,pJahr,1);
SubsetCreatebyMDX(vSub,'{TM1FILTERBYLEVEL( {TM1SUBSETALL( ['|vDimDst3|'] )}, 0)}');
SubsetCreatebyMDX(vSub,'{TM1FILTERBYLEVEL( {TM1SUBSETALL( ['|vDimDst4|'] )}, 0)}');
SubsetCreate (vDimDst5, vSub);
SubsetElementInsert(vDimDst5,vSub,'Absatz',1);
SubsetElementInsert(vDimDst5,vSub,'Umsatz',1);
ViewCreate (vCubDst, vView);
ViewSubsetAssign(vCubDst, vView, vDimDst1, vSub);
ViewSubsetAssign(vCubDst, vView, vDimDst2, vSub);
ViewSubsetAssign(vCubDst, vView, vDimDst3, vSub);
ViewSubsetAssign(vCubDst, vView, vDimDst4, vSub);
ViewSubsetAssign(vCubDst, vView, vDimDst5, vSub);
ViewZeroOut(vCubDst, vView);
if (ViewExists(vCubDst, vView) = 1, ViewDestroy(vCubDst, vView), 0);
if (SubsetExists (vDimDst1, vSub)=1, SubsetDestroy(vDimDst1, vSub), 0);
if (SubsetExists (vDimDst2, vSub)=1, SubsetDestroy(vDimDst2, vSub), 0);
if (SubsetExists (vDimDst3, vSub)=1, SubsetDestroy(vDimDst3, vSub), 0);
if (SubsetExists (vDimDst4, vSub)=1, SubsetDestroy(vDimDst4, vSub), 0);
if (SubsetExists (vDimDst5, vSub)=1, SubsetDestroy(vDimDst5, vSub), 0);
### Source-View definieren ###
if (ViewExists(vCubSrc, vView) = 1, ViewDestroy(vCubSrc, vView), 0);
if (SubsetExists (vDimSrc1, vSub)=1, SubsetDestroy(vDimSrc1, vSub), 0);
if (SubsetExists (vDimSrc2, vSub)=1, SubsetDestroy(vDimSrc2, vSub), 0);
if (SubsetExists (vDimSrc3, vSub)=1, SubsetDestroy(vDimSrc3, vSub), 0);
if (SubsetExists (vDimSrc4, vSub)=1, SubsetDestroy(vDimSrc4, vSub), 0);
if (SubsetExists (vDimSrc5, vSub)=1, SubsetDestroy(vDimSrc5, vSub), 0);
SubsetCreate (vDimSrc1, vSub);
SubsetElementInsert(vDimSrc1,vSub,'Plan',1);
SubsetCreate (vDimSrc2, vSub);
SubsetElementInsert(vDimSrc2,vSub,'Alle Monate',1);
SubsetCreate (vDimSrc3, vSub);
SubsetElementInsert(vDimSrc3,vSub,pJahr,1);
SubsetCreatebyMDX (vSub, '{FILTER( {TM1SUBSETALL( ['|vDimSrc4|'] )}, ['|vDimSrc4|'].[TransferToRV] <> "")}');
SubsetCreate (vDimSrc5, vSub);
SubsetElementInsert(vDimSrc5,vSub,'Absatz',1);
SubsetElementInsert(vDimSrc5,vSub,'Umsatz',1);
ViewCreate (vCubSrc, vView);
ViewSubsetAssign(vCubSrc, vView, vDimSrc1, vSub);
ViewSubsetAssign(vCubSrc, vView, vDimSrc2, vSub);
ViewSubsetAssign(vCubSrc, vView, vDimSrc3, vSub);
ViewSubsetAssign(vCubSrc, vView, vDimSrc4, vSub);
ViewSubsetAssign(vCubSrc, vView, vDimSrc5, vSub);
## Nullwert-Unterdrückung im Source-View ##
ViewExtractSkipZeroesSet (vCubSrc, vView, 1);
## Unterdrückung Rule-berechneter Werte im Source-View ##
ViewExtractSkipRuleValuesSet(vCubSrc, vView, 0);
DatasourceCubeView = vView;
AsciiOutput('D:\Temp\debug.log1',DatasourceCubeView);
AsciiOutput('D:\Temp\debug.log1',vSub|' in '|vDimSrc1|' hat '|NumberToString(SubsetGetSize(vDimSrc1,vSub))|' Elemente');
AsciiOutput('D:\Temp\debug.log1',vSub|' in '|vDimSrc2|' hat '|NumberToString(SubsetGetSize(vDimSrc2,vSub))|' Elemente');
AsciiOutput('D:\Temp\debug.log1',vSub|' in '|vDimSrc3|' hat '|NumberToString(SubsetGetSize(vDimSrc3,vSub))|' Elemente');
AsciiOutput('D:\Temp\debug.log1',vSub|' in '|vDimSrc4|' hat '|NumberToString(SubsetGetSize(vDimSrc4,vSub))|' Elemente');
AsciiOutput('D:\Temp\debug.log1',vSub|' in '|vDimSrc5|' hat '|NumberToString(SubsetGetSize(vDimSrc5,vSub))|' Elemente');
vCount = 0;
-
- Regular Participant
- Posts: 151
- Joined: Mon Oct 07, 2013 11:51 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2010
Re: TI Process Metadata and Data Tab are not processed
That is true.lotsaram wrote:Considering Willi says he looked at the view in cube viewer with zero supression on it is probably much more likely that the reason for nothing happening in the data tab is that the view processing is skipping calcs and one of the dimensions in the view has been assigned a subset that has only C elements which is a pretty common mistake.mvaspal wrote:Hi
do you have rule calculated values in the source view? if yes, are they fed?
Code: Select all
SubsetCreate (vDimSrc2, vSub);
SubsetElementInsert(vDimSrc2,vSub,'Alle Monate',1);
-
- MVP
- Posts: 1831
- Joined: Mon Dec 05, 2011 11:51 am
- OLAP Product: Cognos TM1
- Version: PA2.0 and most of the old ones
- Excel Version: All of em
- Location: Manchester, United Kingdom
- Contact:
Re: TI Process Metadata and Data Tab are not processed
If you want it to still pick it up then just add:Willi wrote:That is true.lotsaram wrote:Considering Willi says he looked at the view in cube viewer with zero supression on it is probably much more likely that the reason for nothing happening in the data tab is that the view processing is skipping calcs and one of the dimensions in the view has been assigned a subset that has only C elements which is a pretty common mistake.mvaspal wrote:Hi
do you have rule calculated values in the source view? if yes, are they fed?
This is a C-Element. That's not possible?Code: Select all
SubsetCreate (vDimSrc2, vSub); SubsetElementInsert(vDimSrc2,vSub,'Alle Monate',1);
Code: Select all
ViewExtractSkipCalcsSet ( CubeName, ViewName, 0 );
Declan Rodger
-
- Regular Participant
- Posts: 151
- Joined: Mon Oct 07, 2013 11:51 am
- OLAP Product: TM1
- Version: 9.5.2
- Excel Version: 2010
Re: TI Process Metadata and Data Tab are not processed
Thx, that did the trick!