设为首页 收藏本站
查看: 1185|回复: 0

[经验分享] [BTS]Adapter Pack调用SAP RFC接口时间格式出错解决办法

[复制链接]

尚未签到

发表于 2015-9-18 04:00:20 | 显示全部楼层 |阅读模式
  
  2009年4月18日14:44:29
  
  
错误信息如下  
  事件类型: 警告
事件来源: BizTalk Server 2006
事件种类: BizTalk Server 2006
事件 ID: 5743
日期:  2009-4-18
事件:  14:23:23
用户:  N/A
计算机: PGDC-MSPT-01
描述:
适配器无法传输要发往发送端口“WCF_RFC_BAPI_PO_CREATE1”(URL 为“sap://CLIENT=200;LANG=ZH;@a/10.56.0.103/00?RfcSdkTrace=False&AbapDebug=False”)的消息。在为该发送端口指定的重试时间间隔过后,将会重新传输该消息。详细信息:“Microsoft.ServiceModel.Channels.Common.XmlReaderGenerationException: An error occurred when trying to convert the byte array [30-00-30-00-30-00-30-00-30-00-30-00-30-00-30-00] of RFCTYPE RFCTYPE_DATE with length 8 and decimals 0 to XML format. Parameter/field name: VPER_START   Error message: 年、月和日参数描述无法表示的 DateTime。 ---> System.ArgumentOutOfRangeException: 年、月和日参数描述无法表示的 DateTime。
   在 System.DateTime.DateToTicks(Int32 year, Int32 month, Int32 day)
   在 System.DateTime..ctor(Int32 year, Int32 month, Int32 day, Int32 hour, Int32 minute, Int32 second, Int32 millisecond, DateTimeKind kind)
   在 Microsoft.Adapters.SAP.SapMetadataUtilities.ConvertRfcBytesToXmlString(SapLocalBindingProperties bindingProperties, Byte[] data, Int32 offset, Int32 datalength, Int32 singleByteFieldLength, RFCTYPE type, Int32 decimals, String fieldname, Encoding encoding, SAPConnection sapconnection)
   --- 内部异常堆栈跟踪的结尾 ---
   在 Microsoft.Adapters.SAP.SapMetadataUtilities.ConvertRfcBytesToXmlString(SapLocalBindingProperties bindingProperties, Byte[] data, Int32 offset, Int32 datalength, Int32 singleByteFieldLength, RFCTYPE type, Int32 decimals, String fieldname, Encoding encoding, SAPConnection sapconnection)
   在 Microsoft.Adapters.SAP.SapTableMetadata.GetDataValueInXmlFormat(Int32 fieldIndex, Byte[] data, SAPConnection sapConnection)
   在 Microsoft.Adapters.SAP.XmlGenerator.get_Value()
   在 System.Xml.XmlDictionaryWriter.WriteTextNode(XmlDictionaryReader reader, Boolean isAttribute)
   在 System.Xml.XmlDictionaryWriter.WriteNode(XmlDictionaryReader reader, Boolean defattr)
   在 System.ServiceModel.Channels.XmlReaderBodyWriter.OnWriteBodyContents(XmlDictionaryWriter writer)
   在 System.ServiceModel.Channels.BodyWriter.WriteBodyContents(XmlDictionaryWriter writer)
   在 System.ServiceModel.Channels.BodyWriterMessage.OnWriteBodyContents(XmlDictionaryWriter writer)
   在 System.ServiceModel.Channels.Message.WriteBodyContents(XmlDictionaryWriter writer)
   在 Microsoft.Adapters.AdapterUtilities.AdapterMessage.OnWriteBodyContents(XmlDictionaryWriter writer)
   在 System.ServiceModel.Channels.Message.WriteBodyContents(XmlDictionaryWriter writer)
   在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateBizTalkMessageStream(Message wcfMessage, IAdapterConfigInboundMessageMarshalling config)
   在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfMarshaller.CreateBizTalkMessage(IBaseMessageFactory messageFactory, IAdapterConfigInboundMessageMarshalling marshallingConfig, Message wcfMessage)
   在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)”。
  有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。
  
  
  
  
  
  错误提示
  
  事件类型: 警告
事件来源: BizTalk Server 2006
事件种类: BizTalk Server 2006
事件 ID: 5743
日期:  2009-4-18
事件:  14:51:25
用户:  N/A
计算机: PGDC-MSPT-01
描述:
适配器无法传输要发往发送端口“WCF_RFC_BAPI_PO_CREATE1”(URL 为“sap://CLIENT=200;LANG=ZH;@a/10.56.0.103/00?RfcSdkTrace=False&AbapDebug=False”)的消息。在为该发送端口指定的重试时间间隔过后,将会重新传输该消息。详细信息:“Microsoft.ServiceModel.Channels.Common.XmlReaderParsingException: An error occurred while parsing the xml. Length of variable: DOC_DATE is 19 but expected length is 8.   
  Server stack trace:
   在 System.ServiceModel.AsyncResult.End[TAsyncResult](IAsyncResult result)
   在 System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
   在 System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
   在 System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
  Exception rethrown at [0]:
   在 System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   在 System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   在 System.ServiceModel.Channels.IRequestChannel.EndRequest(IAsyncResult result)
   在 Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.RequestCallback(IAsyncResult result)”。
  有关更多信息,请参阅在 http://go.microsoft.com/fwlink/events.asp 的帮助和支持中心。

  
  
  
解决方案  
  1.
  2.
  3.http://support.microsoft.com/kb/954539
  4.http://blogs.msdn.com/adapters/archive/2007/11/24/the-enablesafetyping-binding-property.aspx
  5.http://blogs.msdn.com/adapters/attachment/8856923.ashx
  

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-115079-1-1.html 上篇帖子: SAP职业规划 下篇帖子: All SAP R/3 Transaction Codes, Tables, Reports, complete ABAP dictionary list (w
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表