Nil值functoid返回“对象引用未设置为对象实例".错误. [英] Nil Value functoid returnd "Object reference not set to an instance of object" error.

查看:104
本文介绍了Nil值functoid返回“对象引用未设置为对象实例".错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我试图在目标实例中添加nil ="true",但它返回
对象引用未设置为对象的实例"错误.
预先感谢,
布莱恩

从OP更新:
使用的XSLT的格式为:

Hi,
I am trying to use to add nil="true" in my destination instance but it returns with
"Object reference not set to an instance of object" error.
Thanks in advance,
Brian

Update from OP:
The XSLT being used is of form:

<xsl:template name="SetNilValue" xmlns:xsl="#unknown">
       <xsl:param name="IsNil">
               <xsl:choose>
                   <xsl:when test="$IsNil = true">
                        <xsl:attribute name="xsi:nil">true</xsl:attribute>
                   </xsl:when>
               </xsl:choose>
</xsl:param></xsl:template>

推荐答案

IsNil = true" < xsl:attribute 名称 =" > true < /xsl:attribute > < /xsl:何时 > < /xsl:choose > < /xsl:param > < /xsl:template >
IsNil = true"> <xsl:attribute name="xsi:nil">true</xsl:attribute> </xsl:when> </xsl:choose> </xsl:param></xsl:template>


好吧,简单的错误表示您正在尝试使用null对象的属性.

由于您尚未共享代码,因此很难准确地指定代码的位置,但是简单地使用VS DEBUGGER可以指向正确的位置,并且可以处理相同的位置.
Well, the error simple means you are trying to use a property of an object that is null.

Since you have not shared the code, difficult to specify it where exactly but a simple use of VS DEBUGGER can point you to correct place and you can handle the same.


由于我没有看到您的解决方案.无论如何,请在Biztalk管理控制台的事件查看器中检查应用程序"部分.该错误通常用Biztalk或XLANG标记.从那里,您将能够确定哪个业务流程发生了错误.
Its difficult to pinpoint since I am not seeing your solution. Anyway, Check Application section on the event viewer of your Biztalk Admin Console. The error is usually labeled with the word Biztalk or XLANG. From there, you will be able to determine which orchestration has errored.


这篇关于Nil值functoid返回“对象引用未设置为对象实例".错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆