Page 1 of 1

TM1 Java API

Posted: Sat Nov 21, 2009 12:32 pm
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

Re: TM1 Java API

Posted: Mon Nov 23, 2009 2:25 pm
by robchr
Can you post any code snippets? There shouldn't be an issue, but that depends on exactly what you are executing.

Re: TM1 Java API

Posted: Mon Nov 23, 2009 2:37 pm
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