BizTalk Server General - HWS Activity SDK Sample does not work

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > July 2005 > HWS Activity SDK Sample does not work





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author HWS Activity SDK Sample does not work
Yuri Savinov

2004-06-26, 10:51 am

Hello,
I'm trying to start SDK Activity Model Sample.
I have made all sample installation step without error.
When I try to strart Model Execution Sample I receive the following error:
"Failed to retrieve activity flow information from tracking."

The error occurs on the following code line:
HWS.ActivityFlow activityFlowInfo = hwss.GetActivityFlowInfo( activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null )

My configuration:
Windows XP SP1,
BizTalk installed with local accounts.

Can anyone help me?



Sergio Calleja

2004-06-26, 10:51 am

Try to increase the thread stops in the code.

"Yuri Savinov" wrote:

> Hello,
> I'm trying to start SDK Activity Model Sample.
> I have made all sample installation step without error.
> When I try to strart Model Execution Sample I receive the following error:
> "Failed to retrieve activity flow information from tracking."
>
> The error occurs on the following code line:
> HWS.ActivityFlow activityFlowInfo = hwss.GetActivityFlowInfo( activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null )
>
> My configuration:
> Windows XP SP1,
> BizTalk installed with local accounts.
>
> Can anyone help me?
>
>
>

Yuri Savinov

2004-06-26, 10:51 am

I've increased the thread stops up to 12000.
GetActivityFlowInfo service method call throws exception and I had to insert try catch block into while operator scope. Now I have the following code:
while ( ( taskID == Guid.Empty ) && ( numRetries > 0 ) )
{
try{
Thread.Sleep( 12000 );
HWS.ActivityFlow activityFlowInfo = hwss.GetActivityFlowInfo( activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null );
numRetries--;
if ( activityFlowInfo != null )
{
Console.WriteLine( "\n\n"
+ "Current Activity Flow Description: {0}\n"
+ "Current Activity Flow Status: {1}\n"
+ "Current Action Instance count: {2}",
activityFlowInfo.ActivityFlowDescription,
activityFlowInfo.Status,
activityFlowInfo.StatInfo.ActionInstanceCount );
getCurrentActionInstanceIDAndTaskID( activityFlowInfo.RootActionInstances,
ref actionInstanceID,
ref taskID );
}
}catch{
numRetries--;
}
}

And the sample still does not work with the same error.

Yuri Savinov

"Sergio Calleja" wrote:
[vbcol=seagreen]
> Try to increase the thread stops in the code.
>
> "Yuri Savinov" wrote:
>
Chris Whytock[MSFT]

2004-06-26, 10:51 am


Do any errors appear in your event log prior to the call to
GetActivityFlowInfo? Normally, this error is just a result of the
asynchronus tracking perform in HWS, and some retry logic (like that
present in the SDK sample) will rectify the problem.

Since you're still seeing the problem even after increasing the length of
the retry period, perhaps an error is occuring earlier on in the sample,
like there is a failure delivering the activation message or something of
the like, which means that the tracking information will never be populated.

--Chris

--------------------[vbcol=seagreen]
insert try catch block into while operator scope. Now I have the following
code:[vbcol=seagreen]
activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null );[vbcol=seagreen]
activityFlowInfo.RootActionInstances,[vbcol=seagreen]
error:[vbcol=seagreen]
activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null )[vbcol=seagreen]

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team

Yuri Savinov

2004-06-28, 7:29 pm

The only error during sample execution was "Failed to retrieve activity flow information from tracking."
In my EventLog the event has status "Warning" but GetActivityFlowInfo method call throws exception.
May be an error had been occured when I installed BTS?

Is it possible to localize place of the error with any trace utility like soap toolkit ?

Thank you.


"Chris Whytock[MSFT]" wrote:

>
> Do any errors appear in your event log prior to the call to
> GetActivityFlowInfo? Normally, this error is just a result of the
> asynchronus tracking perform in HWS, and some retry logic (like that
> present in the SDK sample) will rectify the problem.
>
> Since you're still seeing the problem even after increasing the length of
> the retry period, perhaps an error is occuring earlier on in the sample,
> like there is a failure delivering the activation message or something of
> the like, which means that the tracking information will never be populated.
>
> --Chris
>
> --------------------
> insert try catch block into while operator scope. Now I have the following
> code:
> activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null );
> activityFlowInfo.RootActionInstances,
> error:
> activityFlowID, HWS.ActivityFlowDetailLevel.TaskLevel, null )
>
> This posting is provided "AS IS" with no warranties, and confers no rights.
>
> EBusiness Server Team
>
>

Chris Whytock[MSFT]

2004-06-29, 5:52 pm


A couple of things to investigate... Are all the biztalk services up and
running? Have you checked HAT to see what's happened there? HAT would be
a good place to check, by launching it and loadig the "most recent 100
service instances" query. What you're looking for is to see if instance of
the Assign action (the first action the activity model SDK sample should
kick off) have been started, and what state they're in. Let me know what
you find in there, and hopefully that will narrow down the problem.

--Chris

--------------------[vbcol=seagreen]
flow information from tracking."[vbcol=seagreen]
method call throws exception.[vbcol=seagreen]
soap toolkit ?[vbcol=seagreen]
of[vbcol=seagreen]
sample,[vbcol=seagreen]
of[vbcol=seagreen]
populated.[vbcol=seagreen]
to[vbcol=seagreen]
following[vbcol=seagreen]
following[vbcol=seagreen]
rights.[vbcol=seagreen]

This posting is provided "AS IS" with no warranties, and confers no rights.

EBusiness Server Team

fannypatry

2005-07-14, 4:03 pm

I have the same error. I checked "most recent 100
service instances" query, and the Assign action have been started. Please,I need your help, in order to find the problem.

Is Urgent!!!

Thanks...
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com