Identifying Success/Failure in Chore

Post Reply
ATD
Posts: 21
Joined: Fri Mar 22, 2013 11:42 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Identifying Success/Failure in Chore

Post by ATD »

Hi All,

I have a Chore that runs several processes that populate dimensions and cubes.

At the end of this chore I would like to run a process that sends an email to a user to confirm either that the chore completed ok or it failed. I've worked out how to send an email - but how do I identify when all the processes in the chore have run ok to be able to decide which email to send? Is there a standard/typical way to handle this?

Thanks

Andy
User avatar
jim wood
Site Admin
Posts: 3958
Joined: Wed May 14, 2008 1:51 pm
OLAP Product: TM1
Version: PA 2.0.7
Excel Version: Office 365
Location: 37 East 18th Street New York
Contact:

Re: Identifying Success/Failure in Chore

Post by jim wood »

I would do the check within each process and write when errors to a file. Then the last process in the chore completes a check for the file, sends an email if it exists. You could even write the name of the process and type of error to teh file and attach it to the email. Check out the reference guide. It contains everything you'll need (command wise) for this.
Struggling through the quagmire of life to reach the other side of who knows where.
Shop at Amazon
Jimbo PC Builds on YouTube
OS: Mac OS 11 PA Version: 2.0.7
BariAbdul
Regular Participant
Posts: 424
Joined: Sat Mar 10, 2012 1:03 pm
OLAP Product: IBM TM1, Planning Analytics, P
Version: PAW 2.0.8
Excel Version: 2019

Re: Identifying Success/Failure in Chore

Post by BariAbdul »

ATD wrote:Hi All,

I have a Chore that runs several processes that populate dimensions and cubes.

At the end of this chore I would like to run a process that sends an email to a user to confirm either that the chore completed ok or it failed. I've worked out how to send an email - but how do I identify when all the processes in the chore have run ok to be able to decide which email to send? Is there a standard/typical way to handle this?

Thanks

Andy
Hi ATD,This might help.Thanks
http://www.tm1forum.com/viewtopic.php?f=3&t=1785
"You Never Fail Until You Stop Trying......"
PlanningDev
Community Contributor
Posts: 349
Joined: Tue Aug 17, 2010 6:31 am
OLAP Product: Planning Analytics
Version: 2.0.5
Excel Version: 2016

Re: Identifying Success/Failure in Chore

Post by PlanningDev »

Why use a chore? You can parse a delimited string of processes in a sub process that runs each process and checks the success status. From the master calling process you can check the status of the sub process. If the sub process is successful it means all of your processes in the delimited string ran successfully and you can send the email.

If that is too complicated just put your process executes in a master TI and check the status of each one. If any fail you can exit otherwise send success e mail. All of our automated processes work in this kind of of fashion. To tell you the truth, we have basically abandoned using chores as they are more limiting in most cases. Unless you don't want to use tm1runti.exe or you need the scheduling ability inside tm1.
User avatar
roei61
Posts: 41
Joined: Wed Aug 22, 2012 5:44 am
OLAP Product: PAX
Version: 2.0.7
Excel Version: 2016
Location: Israel

Re: Identifying Success/Failure in Chore

Post by roei61 »

You got some good edvice.
I will prefer to use a Global Variable which will be update during the chore if one of the process has failed.

Good look
ATD
Posts: 21
Joined: Fri Mar 22, 2013 11:42 am
OLAP Product: TM1
Version: 10.1
Excel Version: 2010

Re: Identifying Success/Failure in Chore

Post by ATD »

Many thanks for all your responses, I'll go through them and try them all out to see what works for us

Thanks

Andy
Post Reply