COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => BI Modeling (Transformer) => Topic started by: UseCog on 01 Jun 2009 09:08:44 AM

Title: Cube automation fails with window batch when session logged off
Post by: UseCog on 01 Jun 2009 09:08:44 AM
Hi,

I have a cube automation script written using 'cogtr' and it is running without any issues when the session is logged in. If I log off the windows session the scheduled job is not executing.

any helps

Thanks
Title: Re: Cube automation fails with window batch when session logged off
Post by: dlafrance on 02 Jun 2009 12:23:53 PM
Are you scheduling with Windows server ?
Title: Re: Cube automation fails with window batch when session logged off
Post by: UseCog on 03 Jun 2009 04:00:22 AM
Hi,

yes i am scheduling with windows scheduler. I found that whenever the schedule starts runnign then the transformer model is kept open and closes when the job finishes. I think cogtr needs to start a gui for starting the cube refresh.

thanks for your input
Title: Re: Cube automation fails with window batch when session logged off
Post by: redmist on 05 Jun 2009 12:58:35 PM
When you are logged in and run the script, do you get a prompt to enter your username/password.
If that is the case then you need to enter the signon information in the cube. Once you do that you will be able to use cogtr.exe
Title: Re: Cube automation fails with window batch when session logged off
Post by: UseCog on 06 Jun 2009 10:36:12 AM
No mate. I am have already added the sign on info to the cube and it will not ask me the sign on information.

Can anbody is running the cogtr tool when the session is closed!!!
Title: Re: Cube automation fails with window batch when session logged off
Post by: redmist on 06 Jun 2009 06:52:47 PM
my script looks like this

cogtr.exe -n1 -c -g<CUBE_NAME> -s -p"E:\<FOLDER_NAME>\<MODEL_NAME>.pyj"
Title: Re: Cube automation fails with window batch when session logged off
Post by: dlafrance on 08 Jun 2009 08:36:52 AM
Mine look like this :

D:\..PathToCognos\cogtr.exe -i -n2 -s -nologo D:\..PAthToCube\cube.pyj

When looking at the scheduled job, be sure that "Run only if logged on" is disabled.

Also, the field "Start in" is the folder where the batch file is.

Hope this help!
Title: Re: Cube automation fails with window batch when session logged off
Post by: UseCog on 09 Jun 2009 02:27:34 PM
Thanks dlafrance and redmist.

the 'run only when logged on' option is not clicked
Title: Re: Cube automation fails with window batch when session logged off
Post by: dlafrance on 09 Jun 2009 02:31:11 PM
Quote from: UseCog on 09 Jun 2009 02:27:34 PM
Thanks dlafrance and redmist.

the 'run only when logged on' option is not clicked

Is the solution worked or you still get the error ? It is not clear to me ;)

Have a nice day!
Title: Re: Cube automation fails with window batch when session logged off
Post by: nfldbunker on 10 Jun 2009 07:47:07 PM
are you using the sa account created in active directory to log into the system to run the script??
Title: Re: Cube automation fails with window batch when session logged off
Post by: UseCog on 12 Jun 2009 08:04:43 AM
Thanks your query.
No I am not using 'sa' account of active directory. I am using another account to access the transformer.
Title: Re: Cube automation fails with window batch when session logged off
Post by: dlafrance on 12 Jun 2009 03:20:34 PM
Maybe you should use a local administrative account and not an AD account.
Title: Re: Cube automation fails with window batch when session logged off
Post by: andi7171 on 10 Jul 2009 06:05:47 AM
Hello,
I replied already to an other post - but have you tried this already:


Have you SingleSignOn within your cognos-environment?

If you have SingleSignOn you have to create a sceduled-task - and give him the Username and Password of a valid cognos-user.

I had the same problems - all login -k and -l and also -y1 did not work.
You can also use RunAs - and put a "cognos" valid username and password with it!


kind regards
andi
Title: Re: Cube automation fails with window batch when session logged off
Post by: UseCog on 20 Jul 2009 07:59:20 AM
Thanks andi,

can you please tell me what you meant by RunAs - and ...
Title: Re: Cube automation fails with window batch when session logged off
Post by: josepherwin on 17 Nov 2009 05:03:56 PM
It would be a property in the Windows Schedule Task where you can set the "Run As" option

If you open your schedule task properties, above you "Run Only if logged on" tick box, you should see the "Run As" option
Title: Re: Cube automation fails with window batch when session logged off[solved]
Post by: UseCog on 18 Nov 2009 12:13:05 PM
This issue has been resolved by making some windows permission changes. Thanks for all of you for your help