零文件大小 - BizTalk文件适配器删除零载荷问题的文件 [英] Zero file size - BizTalk File Adapter deleting file with zero payload issue

查看:56
本文介绍了零文件大小 - BizTalk文件适配器删除零载荷问题的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我要求进行集成,即使文件中没有有效负载,也要求通过BizTalk传输文件。原因是端点使用文件名来审核文件的处理,通过它自己的内部ETL,
当然因为BizTalk删除没有有效负载的文件,这导致我出现问题并打破ETL报告标记一个错误。


有没有人能够成功地按照下面的Nino Crudele的步骤进行操作并制作一个适用的适配器?


我正在运行BizTalk 2013 R2 CU8已经能够从代码中创建适配器,但它会陷入循环并反复生成文件,而不是在处理并通过文件适配器移动后删除/删除它们



  • 链接:http://ninocrudele.com/biztalk-and-zero-byte-file
  • 关于适配器和零文件大小的评论:  https ://www.connected-pawns.com/2016/02/20/zero-byte-files-biztalk-server/

亲切的问候,





Steven。





如果是这样的话转发你的问题,请相应地标记。如果这篇文章有用,请点击我的回复旁边的向上箭头标记投票为有用。

解决方案


我们没有收到你提到的错误,我们正在使用静态Dotnet适配器和我们为我们的要求添加的一个自定义属性,它在我们的生产环境中顺利运行。


您需要做的就是修改 DotNetFileReceiverEndpoint.cs 文件中的代码,并附加条件 


if(fs.Length = = 0)

{

fs.Write(new byte [0],0,0) ;
$
}



为了更好地理解请求您发布您所做的代码更改。


HTH



Hi all,

I have a requirement for an integration which insists that a file is transferred through BizTalk even if there is no payload within the file. The reason being that the endpoint uses the filename to audit the processing of the file via it's own internal ETL's, of course because BizTalk deletes the file with no payload this is causing me an issue and breaks the ETL reporting to flag an error.

Has anyone been successfully able to follow the steps outlines by Nino Crudele below and make an adapter which works?

I'm running BizTalk 2013 R2 CU8 and have been able to create the adapter from the code but it gets stuck in a loop and generates files over and over again rather than removing/deleting them once they are processed and moved via the file adapter

  • Link: http://ninocrudele.com/biztalk-and-zero-byte-file
  • Comments on adapters and zero file size: https://www.connected-pawns.com/2016/02/20/zero-byte-files-biztalk-server/

Kind regards,

Steven.


If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

解决方案

Hi,

We are not getting the error what you mentioned, we are using Static Dotnet Adapter with one custom property we had added for our requirements and it is working smoothly on our Production environment.

All you need to do is modify the code in DotNetFileReceiverEndpoint.cs file and append the condition of 

if (fs.Length == 0)
{
fs.Write(new byte[0], 0, 0);
}

For more better understanding requesting you to post the code changes you did.

HTH


这篇关于零文件大小 - BizTalk文件适配器删除零载荷问题的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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