TI master process: continue after ExecuteProcess failure

Post Reply
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

TI master process: continue after ExecuteProcess failure

Post by kudzis »

I have a nightly load process, which runs various other processes using ExecuteProcess(); problem is, if any of processes fail, it stops working and does not execute other processes. My nightly load process example:


ExecuteProcess ('export_klientu_planavimas_SQL');

ODBCOpen('cogsql2005', 'cognos', 'password');
ODBCOutput('cogsql2005', 'EXEC kgvp.pr_tm1_dim_create_klientai');

ExecuteProcess('does_not_exist');

ASCIIOutput('C:\process_return_value.txt', 'OK ', TIME, 'on', TODAY);

--------------------------------------------

this process will always fail on ExecuteProcess('does_not_exist'), but I want it to continue anyway and execute ASCIIOutput command. Is it possible? I would like universal solution, because in my production server nightly load process executes ~15 other processes.
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 master process: continue after ExecuteProcess failure

Post by Steve Rowe »

Unless you can trap the error and avoid the fatal error then you've no where to go.

So in the example you give which I assume is an example and not real you could test for the TI "Does Not Exist" with a Dimix against the }Process dimension and then chose to call it or not on the basis of the result of the Dimix test.
HTH
Technical Director
www.infocat.co.uk
kudzis
Posts: 42
Joined: Wed Nov 10, 2010 12:35 pm
OLAP Product: Cognos 8 BI
Version: 9.5.1
Excel Version: Excel 2007

Re: TI master process: continue after ExecuteProcess failure

Post by kudzis »

I've put my nightly data load in multiple separate processes, then created a master chore and put all processes inside. This way, if an intermediate process fails chore continues to execute other processes.

The only problem is I can't write comments in chore so all data load logic is not that clear from first sight, but at least it works.
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 master process: continue after ExecuteProcess failure

Post by Steve Rowe »

Good point and actually a genuine advantage of a chore over a sequence of ExecuteProcess commands.
Technical Director
www.infocat.co.uk
Post Reply