TM1 Tools Issues And Discussions (Was *KEY_ERR Tracer)

User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: *KEY_ERR Tracer

Post by Martin Ryan »

dubs wrote:it is is strange because if i do an alt+f9 then it all calculates correctly so the calculations work
What about if you press shift+f9 (or even F9)?

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
dubs
Posts: 131
Joined: Fri May 22, 2009 10:43 am
Version: 9.4
Excel Version: 2003

Re: *KEY_ERR Tracer

Post by dubs »

hi steve,

yes im logged in, what do you mean by admin license rights? im in the TM1 Admin group.

ive also tried shutting down and starting again - no joy, the version was the latest version posted by martin.
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: *KEY_ERR Tracer

Post by Steve Vincent »

the difference between the normal user and admin is two fold - the security group is one part but to do alot of admin stuff you also need the perspectives license on your machine. the tracer uses some functionality that only works if that is installed, so i just wondered if you maybe didn't have the license and that might have been causing the error.
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
User avatar
Steve Rowe
Site Admin
Posts: 2416
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: *KEY_ERR Tracer

Post by Steve Rowe »

Is that right? Plenty of my users use the tracer and I don't think they have Perspectives??
Technical Director
www.infocat.co.uk
User avatar
Steve Vincent
Site Admin
Posts: 1054
Joined: Mon May 12, 2008 8:33 am
OLAP Product: TM1
Version: 10.2.2 FP1
Excel Version: 2010
Location: UK

Re: *KEY_ERR Tracer

Post by Steve Vincent »

some parts of it, yes. If you try and put a user name in to check the security it seems to use stuff that only works if you have perspectives. i'll double check when i get chance but that certainly was the case some time ago.
If this were a dictatorship, it would be a heck of a lot easier, just so long as I'm the dictator.
Production: Planning Analytics 64 bit 2.0.5, Windows 2016 Server. Excel 2016, IE11 for t'internet
Wim Gielis
MVP
Posts: 3113
Joined: Mon Dec 29, 2008 6:26 pm
OLAP Product: TM1, Jedox
Version: PAL 2.0.9.18
Excel Version: Microsoft 365
Location: Brussels, Belgium
Contact:

Re: *KEY_ERR Tracer

Post by Wim Gielis »

I'd just like to add that the KEY-ERROR tracer does not work with the new TM1 v9.4 functionality of active forms.

There, you typically have a DBRW function, whose first argument points to a cell holding a TM1RPTVIEW statement. E.g. a cube is called servername:PnL, a TM1RPTVIEW function could then be servername:PnL:3

However, I think this change can be overcome in the VBA code quite easily.

If cubename has 2 times a double point : then use the StrRev(...) function to return the position of the last : Lastly, use Left(...) to leave out the part after the last :

Wim
Best regards,

Wim Gielis

IBM Champion 2024
Excel Most Valuable Professional, 2011-2014
https://www.wimgielis.com ==> 121 TM1 articles and a lot of custom code
Newest blog article: Deleting elements quickly
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: *KEY_ERR Tracer

Post by Martin Ryan »

New revision includes the ability to press Escape to close the tracer, and also the addition of the "talk to the hand" button which turns autocalc off. Documentation updated to reflect the changes.

Martin
Attachments
TM1Tools.zip
(91.95 KiB) Downloaded 518 times
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Jeroen Eynikel
Community Contributor
Posts: 139
Joined: Mon Sep 15, 2008 1:45 pm

Re: *KEY_ERR Tracer

Post by Jeroen Eynikel »

Alan,

Awesome. I will try it out asap.

Jeroen
TJMurphy
Posts: 74
Joined: Mon May 12, 2008 12:25 pm
OLAP Product: TM1
Version: PA 2.0.6 Local
Excel Version: Excel 2016

Re: *KEY_ERR Tracer

Post by TJMurphy »

Thank you, I look forward to playing with these.

Tony
hbell
Posts: 61
Joined: Wed Feb 25, 2009 6:15 pm
Version: 9.1 SP3
Excel Version: 11.8

Re: *KEY_ERR Tracer

Post by hbell »

Alan

... I tried the TM1 Tools out in our set up (we use Citrix with 9.1.3) and the formula zapper was extremely slow. I pressed escape after 3 mins and it had completed only 84 formulae (out of 4,000!). Is there anything I could have done wrong in installation? I copied the XLA to the Citrix box and added it in to Add-Ins in Excel. I was using your zap method. When I tried the second one (Steve's method), it did complete - but in about 2 minutes.

Alternatively is there any "agent" that Technologies might have put on the Citrix server that would cause it to run more slowly?

hugh
User avatar
Steve Rowe
Site Admin
Posts: 2416
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: *KEY_ERR Tracer

Post by Steve Rowe »

My instinct would be that you have calculation set to automatic in the spread sheet, without double checking the code I'm not sure how the tool deals with this.
The other option would be some event VBA in the workbook having an impact.
Either way this behaviour is not normal, does it happen on a vanilla slice from a cube viewer?
Cheers,
Technical Director
www.infocat.co.uk
User avatar
Alan Kirk
Site Admin
Posts: 6606
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: *KEY_ERR Tracer

Post by Alan Kirk »

Steve Rowe wrote:My instinct would be that you have calculation set to automatic in the spread sheet, without double checking the code I'm not sure how the tool deals with this.
Unfortunately, it's something that all three of us overlooked. I actually stored the calculation mode because I know that I intended to set it to Manual and then back again at the end, but I didn't. It's not in your or Martin's code at all. I think the expectation would be "who would be using TM1 with automatic calculation on?" when even Iboglix advises against it.

However it's an easy fix. In the meantime, it's important to check that the calculation mode is not Automatic before running it.
Steve Rowe wrote:The other option would be some event VBA in the workbook having an impact.
Either way this behaviour is not normal, does it happen on a vanilla slice from a cube viewer?
The other option is a virus scanner; I know that when we were using McAfee at the office (since changed to Norton) VBA code ran noticeably slower than on my notebook (and it wasn't the difference in specs that would account for it); from the process monitor it appeared that McAfee seemed to be shoving its nose into almost every loop the code was executing. The difference was about 14,000 bytes per second on one of my personal computers, about 8,000 bytes per second on a McAfee "infected" machine. However even that wouldn't account for this kind of performance. Automatic calculation would, though.
"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.
hbell
Posts: 61
Joined: Wed Feb 25, 2009 6:15 pm
Version: 9.1 SP3
Excel Version: 11.8

Re: *KEY_ERR Tracer

Post by hbell »

Automatic recalc was OFF. So it is not that (which was my first thought too). I will keep digging and let you know
hbell
Posts: 61
Joined: Wed Feb 25, 2009 6:15 pm
Version: 9.1 SP3
Excel Version: 11.8

Re: *KEY_ERR Tracer

Post by hbell »

... incidentally .. yes, it is a totally plain vanilla slice that I am testing on. I tried stepping through in debug mode to see if there is any step that takes an abnormally long time .. but no (I guess 2 seconds through the loop would not really show up when stepping through)...

I'm engaging with Tech on the virus scanner thought - though I would have expected that to impact TM1 too (as it is also an XLA)...hugh
User avatar
Steve Rowe
Site Admin
Posts: 2416
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: *KEY_ERR Tracer

Post by Steve Rowe »

Hugh, Have you been able to check on other machines in your environment?
Technical Director
www.infocat.co.uk
User avatar
Alan Kirk
Site Admin
Posts: 6606
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: *KEY_ERR Tracer

Post by Alan Kirk »

Steve Rowe wrote:Hugh, Have you been able to check on other machines in your environment?
Whatever it is it doesn't seem to be Citrix as such; I just fired it up on a Citrix login. I took three identical slices consisting of 83,638 formula cells.

Steve's method: 10 seconds.
Mine: 47 seconds.
A commercial add-in that we used to use: 1 minute 42 seconds.

It suggests something in the local environment but outside of the virus scanner (and as I said even McAfee didn't affect code to the extent reported here) I can't think what that might be.
"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.
John D
Posts: 2
Joined: Thu Jan 07, 2010 2:43 pm
OLAP Product: TM1 + Express
Version: 9.0 - 9.5
Excel Version: 2007

Re: *KEY_ERR Tracer

Post by John D »

Hi all.
I downloaded this tool and tried in our environment. I have been looking for years for solutions to some of the features your tool here gives me. Thanks.
Specially the feature regarding copying ranges of data into a range of DBR formulas has annoyed me a lot.

I just have a problem using it: I live in Denmark, Europe and we are a little different regarding the decimal sign and the Thousand sign. We write 1.111,00 where UK/US is writing 1.111,00.
This courses the tool to fail or let say it will not paste if I try to copy 1234,56. My regional settings is (off course) Danish. If I change to the English/US-way the tool works fine.

I hope that you in a future version could find a solution to my problem as I really can see the use of the tool for us.

Thanks in Advance
John D
User avatar
Alan Kirk
Site Admin
Posts: 6606
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: *KEY_ERR Tracer

Post by Alan Kirk »

John D wrote:Hi all.
I downloaded this tool and tried in our environment. I have been looking for years for solutions to some of the features your tool here gives me. Thanks.
Specially the feature regarding copying ranges of data into a range of DBR formulas has annoyed me a lot.

I just have a problem using it: I live in Denmark, Europe and we are a little different regarding the decimal sign and the Thousand sign. We write 1.111,00 where UK/US is writing 1.111,00.
This courses the tool to fail or let say it will not paste if I try to copy 1234,56. My regional settings is (off course) Danish. If I change to the English/US-way the tool works fine.

I hope that you in a future version could find a solution to my problem as I really can see the use of the tool for us.
Off the top of my head I can't think of anything that's (shall we say) "region-sensitive" in the tool itself, but it could be the result of a mismatch between the client settings and the server-side settings, especially given that it works when your regional settings (I presume that you mean on the client side) are in English/US. What's the language of the box that the server is running on?

I'll do some further tests and see what I can find.
"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.
hbell
Posts: 61
Joined: Wed Feb 25, 2009 6:15 pm
Version: 9.1 SP3
Excel Version: 11.8

Re: *KEY_ERR Tracer

Post by hbell »

Steve

... yes, I've tested in both our production and development environments. Same result. Clearly something peculiar to us. I'll defintely let you know when I get to the bottom of it. We have users who are desperate to be able to zap TM1 formulae, so we have a big incentive.

hugh
User avatar
Martin Ryan
Site Admin
Posts: 1988
Joined: Sat May 10, 2008 9:08 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010
Location: Wellington, New Zealand
Contact:

Re: *KEY_ERR Tracer

Post by Martin Ryan »

hbell wrote:I tried stepping through in debug mode to see if there is any step that takes an abnormally long time .. but no (I guess 2 seconds through the loop would not really show up when stepping through)...
Hugh, you could set up an array or string variable that will record times as it goes through each line, then give yourself a msgbox or something other output at the end which will hopefully tell you which step is the one taking the time.

Martin
Please do not send technical questions via private message or email. Post them in the forum where you'll probably get a faster reply, and everyone can benefit from the answers.
Jodi Ryan Family Lawyer
Post Reply