Alan Kirk wrote:shivangi wrote:BariAbdul wrote:Hi Shivangi,Could you please try ViewExtractSkipZeroesSet in Prolog tab and see the result.Thanks
hey i tried the function on the prolog tab, but the ti stops responding that is it gets hanged after 15 mins, my records are around 4- 5 croes
I suggest that you post your exact code, along with specifics of how you have defined the cube view that you're using as your source. It's not at all clear from your posting whether you're turning suppress zeroes on or off but Bari Abdul is correct; if you change that setting you do it in the Prolog (which is executed
before any of the data rows are and will therefore affect how many rows you receive), not the later tabs.
You should be aware that you should (almost)
always skip zeroes when processing a view from a cube, otherwise it is very easy for the number of records to rapidly run to millions, and even billions. If you fail to suppress zeroes then the TI will have to process the number of N elements in the first dimension * the number of N elements in the second * the number of N elements in the third * the number of N elements in the fourth dimension and so on. You can do the maths for yourself on that one, and will probably come up with a fairly scary number.
If your problem is that:
(a) You have values in your SQL table from previous data; and
(b) You need TM1 to reset those values to 0,
including zeroes in the view isn't the way to go about that. Instead you should clear ALL of the data in the SQL table that's being affected first so that you have a blank slate, then export the new values straight from TM1.
This is the same principle as when you update a TM1 cube. You don't write zeroes into the cube, but instead zero out the whole area affected, then load the non-zero values.
Hello Alan, thanks for the reply.
Basically my cube is a one year model wherein after every new fiscal year, previous fiscal year values are discared. This activity is sort of a backup of the previous data, so we want all the measure elements whether they have value 0 or no to be captured in our database. Right now, my view is based on 4 dims, 1 measure(cube also has the same dims). I have not selected the suppress zero option while i had saved my view.But when i had created my TI , some of my elements were not flowing , which on troubleshooting i founded out that they are invisible when suppress zero is selected. so for that i used the following steps :
1) connected the data source as my view
2) in the variable tab, for the 5 parameters defined type as other
3) in d advanced tab: prolog:
#****Begin: Generated Statements***
#****End: Generated Statements****
ODBCOpen('RSV_Baan_1415_test','ssis_plng','admin123');
ViewExtractSkipZeroesSet('1_RSV','RSV_cube_db', 0);
in data :
#****Begin: Generated Statements***
#****End: Generated Statements****
sql='INSERT INTO rsv_cube_tm1(V1,h_location,t_period,V4,Value) values('''|V1|''','''|h_location|''','''|t_period|''','''|V4|''', '''|Value|''')';
ODBCoutput('RSV_Baan_1415_test',sql);
in epilog:
#****Begin: Generated Statements***
#****End: Generated Statements****
ODBCClose('RSV_Baan_1414_test');
i added the viewskip in prolog after suugestion from brian,but it didnthelp caus my ti got hanged in between and was not responding. I hope this will be sufficient for you to analyze.