BizTalk Server Orchestration - NullPartException issue

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > February 2005 > NullPartException issue





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 NullPartException issue
zabedin

2005-02-17, 2:46 am

Hello,
I am getting NullPartException (See Below) when I tried to extract
nodes from message that contains multiple invoices in it.

Microsoft.XLANGs.Core.NullPartException: The part 'part' of message
'Message_2' contained a null value at the end of the construct
block.

Here is the expression that I am using to extract nodes from source
message
This expression is in Message Assignment shape which itself is in loop
shape.

node =
System.String.Format("/*[local-name()='invoices']/*[local-name()='invoice'][{0}]",i);
Message_2 = xpath(Message_1, node);
i = i + 1;

When i debug the orchestration and check the source message. It
contains data but for some reason xPath() method call gets failed and
raises error. What should i look for to resolve this issue.

Thanks

oleg_kleyman

2005-02-21, 5:52 pm

Are you sure you didn't miss leading '*' in your xpath() to look like
*/*[local-name()='invoices']/*[local-name()='invoice'][1]


"zabedin" wrote:

> Hello,
> I am getting NullPartException (See Below) when I tried to extract
> nodes from message that contains multiple invoices in it.
>
> Microsoft.XLANGs.Core.NullPartException: The part 'part' of message
> 'Message_2' contained a null value at the end of the construct
> block.
>
> Here is the expression that I am using to extract nodes from source
> message
> This expression is in Message Assignment shape which itself is in loop
> shape.
>
> node =
> System.String.Format("/*[local-name()='invoices']/*[local-name()='invoice'][{0}]",i);
> Message_2 = xpath(Message_1, node);
> i = i + 1;
>
> When i debug the orchestration and check the source message. It
> contains data but for some reason xPath() method call gets failed and
> raises error. What should i look for to resolve this issue.
>
> Thanks
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com