We are moving into using ViewCreateByMDX pretty heavily. One issue we have run into is testing whether we are going to return a data set or not. If it does not, the TI aborts instead of just skipping over the METADATA/DATA procedures like a traditional view does.
One method is to do a CELLGETN against an intersection that would have data and execute the ViewCreateByMDX only if the value is <> 0.
This is popping up when using RUNPROCESS and everyone freaking out when the server log shows the abort. Working on it, but wondered what other ways people are handling this?
Avoiding TI abort when using ViewCreateByMDX
- PavoGa
- MVP
- Posts: 622
- Joined: Thu Apr 18, 2013 6:59 pm
- OLAP Product: TM1
- Version: 10.2.2 FP7, PA2.0.9.1
- Excel Version: 2013 PAW
- Location: Charleston, Tennessee
Avoiding TI abort when using ViewCreateByMDX
Ty
Cleveland, TN
Cleveland, TN
- macsir
- MVP
- Posts: 785
- Joined: Wed May 30, 2012 6:50 am
- OLAP Product: TM1
- Version: PAL 2.0.9
- Excel Version: Office 365
- Contact:
Re: Avoiding TI abort when using ViewCreateByMDX
Hi, I had similar problem when using SUBSETCREATEBYMDX and then switch to function SUBSETMDXSET, which allows process goes to epilog. Maybe you can replace yours with ViewMDXSet as well? 

- PavoGa
- MVP
- Posts: 622
- Joined: Thu Apr 18, 2013 6:59 pm
- OLAP Product: TM1
- Version: 10.2.2 FP7, PA2.0.9.1
- Excel Version: 2013 PAW
- Location: Charleston, Tennessee
Re: Avoiding TI abort when using ViewCreateByMDX
Talking ViewCreateByMDX, not SubsetCreateByMDX.
Ty
Cleveland, TN
Cleveland, TN
-
- MVP
- Posts: 3703
- Joined: Fri Mar 13, 2009 11:14 am
- OLAP Product: TableManager1
- Version: PA 2.0.x
- Excel Version: Office 365
- Location: Switzerland
Re: Avoiding TI abort when using ViewCreateByMDX
Hi Ty,
I hear you. We have come up against the same issue. IMHO this is a defect and the behaviour should be the same as for a native view (no error, skip straight to epilog).
In testing we found that the error below
The workaround to do CellGetN on some consolidated intersection representing the view is the one we are also using though.
I hear you. We have come up against the same issue. IMHO this is a defect and the behaviour should be the same as for a native view (no error, skip straight to epilog).
In testing we found that the error below
... can be avoided if rather than doing NON EMPTY in the MDX Expression we apply ViewExtractSkipBlanks after the view is created.Error: Prolog procedure line (0): Unable to open data source "CUBENAME".
The workaround to do CellGetN on some consolidated intersection representing the view is the one we are also using though.
Please place all requests for help in a public thread. I will not answer PMs requesting assistance.
- Steve Rowe
- Site Admin
- Posts: 2456
- Joined: Wed May 14, 2008 4:25 pm
- OLAP Product: TM1
- Version: TM1 v6,v7,v8,v9,v10,v11+PAW
- Excel Version: Nearly all of them
Re: Avoiding TI abort when using ViewCreateByMDX
Just a note to say there is an APAR associated with this
https://www.ibm.com/support/pages/apar/PH16537
https://www.ibm.com/support/pages/apar/PH16537
Technical Director
www.infocat.co.uk
www.infocat.co.uk