TI Process check if target cell has "rules applied to cell"

Post Reply
BigG
Community Contributor
Posts: 211
Joined: Tue Sep 15, 2009 11:13 pm
OLAP Product: IBMPA
Version: PA 2.0 Cloud
Excel Version: 2010

TI Process check if target cell has "rules applied to cell"

Post by BigG »

I have a TI Process that allows me to copy from one version to another and is reusable in many cubes. I load data from rule calculated cells in one version to STET cells in another (for archiving). But in some cases calculated rule cells will target rule cells causing the "Rule applies to cell" error in TI process.

Does anyone know a TI Process rule I can use to exclude the target cell if a rule is applied?

Thanks in advance
GG
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: TI Process check if target cell has "rules applied to ce

Post by Alan Kirk »

BigG wrote:I have a TI Process that allows me to copy from one version to another and is reusable in many cubes. I load data from rule calculated cells in one version to STET cells in another (for archiving). But in some cases calculated rule cells will target rule cells causing the "Rule applies to cell" error in TI process.

Does anyone know a TI Process rule I can use to exclude the target cell if a rule is applied?
The CellIsUpdateable function? I've never had to use it myself but from the description it should work with rule-calculated cells.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
User avatar
qml
MVP
Posts: 1098
Joined: Mon Feb 01, 2010 1:01 pm
OLAP Product: TM1 / Planning Analytics
Version: 2.0.9 and all previous
Excel Version: 2007 - 2016
Location: London, UK, Europe

Re: TI Process check if target cell has "rules applied to ce

Post by qml »

I confirm, CellIsUpdateable is the right function for this. I tend to put it in those of my TI's with a longer shelf life to check if someone hasn't put a new rule somewhere where the TI wouldn't normally expect it. This way you can catch the error instead of having the TI fall over.
Kamil Arendt
BigG
Community Contributor
Posts: 211
Joined: Tue Sep 15, 2009 11:13 pm
OLAP Product: IBMPA
Version: PA 2.0 Cloud
Excel Version: 2010

Re: TI Process check if target cell has "rules applied to ce

Post by BigG »

sweet, sorted... cheers Alan and qml.
GG
User avatar
Steve Rowe
Site Admin
Posts: 2464
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: TI Process check if target cell has "rules applied to ce

Post by Steve Rowe »

It would be great if you could set the CellPutN/S functions up to fail quietly, that way you could avoid if testing every single piece of data. If you need to check for rules and then check for strings or numbers for every write operation it can start to grind the speed down.
Cheers
Technical Director
www.infocat.co.uk
Alan Kirk
Site Admin
Posts: 6667
Joined: Sun May 11, 2008 2:30 am
OLAP Product: TM1
Version: PA2.0.9.18 Classic NO PAW!
Excel Version: 2013 and Office 365
Location: Sydney, Australia
Contact:

Re: TI Process check if target cell has "rules applied to ce

Post by Alan Kirk »

Steve Rowe wrote:It would be great if you could set the CellPutN/S functions up to fail quietly, that way you could avoid if testing every single piece of data. If you need to check for rules and then check for strings or numbers for every write operation it can start to grind the speed down.
Agreed; an On Error Resume Next-style construct would be useful.

IIRC this type of error constitutes a "Minor" error in TI's view, so it would be possible to suppress any errors by setting MinorErrorLogMax to 0. But of course if you do that then you prevent any legitimate errors like key errors from being reported.
"To them, equipment failure is terrifying. To me, it’s 'Tuesday.' "
-----------
Before posting, please check the documentation, the FAQ, the Search function and FOR THE LOVE OF GLUB the Request Guidelines.
Post Reply