Sequence - not triggering to the next stage

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Sequence - not triggering to the next stage

Post by SURA »

Hello All

Newly developed Project, just migrated to PROD. As a part of the Master Sequence, it trigger a PowerShell script using Execute Command Activity stage. Triggers is unconditional and was running fine for a day. All of the sudden in the Datastage server , it seems the IT management guys might have pushed the new security policy which block the script to execute.

But I am not sure why the Datastage process is waiting for ever in this stage?

My expectation is , Datastage should go the next stage to trigger the next step.

please correct me , if my understanding is not right?
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

So... hard to follow your explanation but it sounds like the script is hanging rather than the unconditional trigger not 'firing' or the script not executing. It can't move on until the script starts and completes in some fashion. That or fails to start. Starts and never ends? Forever wait.
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Sorry for not explaining it properly, though your understood correctly.

I thought this stage bring the trigger status back irrespective of Success or failure.

Anyhow thanks.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

It will "bring the trigger status back irrespective of Success or failure" but the command being processed must end first.
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Are you taking about the command output / return value / command name?
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:?

I'm not talking about anything in particular other than the fact that for the trigger (any trigger ) to have something to evaluate - and for it to possibly 'fire' and allow the job to move on to the next stage - whatever the current stage is doing must complete first. Period. I'm not really sure how else to phrase that.

From what you are saying, your Powershell script is now hanging. This is not all that unusual with scripts. If they get into a situation where they need user interaction, they prompt for confirmation of some action let's say, not running in 'interactive' mode there's no-one there to answer, so it waits. Forever. Or could just be well and truly hung because of your aforementioned security policy change.
Last edited by chulett on Tue Sep 13, 2016 7:36 am, edited 1 time in total.
-craig

"You can never have too many knives" -- Logan Nine Fingers
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Thanks Criag.

I have modified the executing command to bypass the policy and it is working now as expected.

Thank you so much for your guidance.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
johnboy3
Premium Member
Premium Member
Posts: 52
Joined: Fri Jun 19, 2015 2:48 pm
Location: Jackson, MS, USA

Post by johnboy3 »

SURA,
Can you please be more specific? What exactly did you do differently to fix this?
john3
john3
----------------------------------------------------
InfoSphere 8.5.0.2; DataStage 8.5.0.0; OS-RHEL 6.6; DB-Oracle Enterprise Edition 11g (11.2.0.4)
SURA
Premium Member
Premium Member
Posts: 1229
Joined: Sat Jul 14, 2007 5:16 am
Location: Sydney

Post by SURA »

Code: Select all

Powershell.exe -noprofile -executionpolicy bypass -File 
I have included the above options which allowed the Datastage to trigger the script and moved to the next step.
Thanks
Ram
----------------------------------
Revealing your ignorance is fine, because you get a chance to learn.
Post Reply