TM1 Java API

Post Reply
sushanti
Posts: 12
Joined: Thu Oct 29, 2009 8:05 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 2007

TM1 Java API

Post by sushanti »

I have written a java code is to provide access to a user for TM1 application. This access needs to be provided to only required cubes (along with its dimensions) and elements according to the his role.

Initially, I wrote a code to create Group and Client in TM1 as per our database and assign the client to the group. Then, assigned security rights to the required cubes/dimensions/elements. As I faced unexpected output along with failure of java code. Please note it was observed that same java code was executing successfully if no user had logged into TM1 application.

In order to overcome unexpected output, I inserted a code to first provide NONE access to all the cubes/dimensions/elements followed by provide WRITE access to the required cubes/dimensions/elements. Then I observed that even client was getting an error stating failure of TM1 application in the server. Due to which we had to restart the application server and make sure no one has logged into it.

Please guide : Can I execute my java code without harming any user logged into the application ? Or is it necessary that I make sure no body has logged in. Not even the administrator.



Admin note: Moved out of the Bugs sub-forum to the Cognos TM1 Forum
robchr
Posts: 23
Joined: Wed Sep 30, 2009 1:41 pm
OLAP Product: TM1
Version: 9.4.1 FP03 32-bit
Excel Version: 2007

Re: TM1 Java API

Post by robchr »

Can you post any code snippets? There shouldn't be an issue, but that depends on exactly what you are executing.
sushanti
Posts: 12
Joined: Thu Oct 29, 2009 8:05 am
OLAP Product: Cognos TM1
Version: 10.1
Excel Version: 2007

Re: TM1 Java API

Post by sushanti »

Hi Guys,

Thanks for viewing this post and answering. I have got the solution.
The problem was.. If I am assigning any client to a group while its already assigned, then it was throwing this error if and only if someone has logged into it.
Solution : Add a check to see if client is already assigned to group.

Thanks Again :D
Post Reply