Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

File - Adapter Receive empty Files on BT2006

205 views
Skip to first unread message

Bedarf@discussions.microsoft.com Daniel Bedarf

unread,
Aug 25, 2006, 9:26:02 AM8/25/06
to
Hi.

I to use a file - adapter with pass trough to receive binary files.
In an orchestration i use custom code to parse the binary content to xml.
it works fine.

My problem is: if i receive an empty file (0 bytes). The receive location
accept the file and delete them.
I got no failure - message, no routing problem, nothing! The message will
internaly be deleted without any notification. I can stop the orchestration,
same -> no message.

Also i cant find a entry in the activity monitor.

Is that a bug?
Somebody know a workaround?

Thank you.

Doug Girard [MSFT]

unread,
Aug 29, 2006, 6:14:53 PM8/29/06
to
See the article "Known Issues with the File Adapter":
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/BTS06CoreDo
cs/html/6aaf448c-0035-4648-910b-ae2f15106342.asp

If an empty (zero byte) file is picked up by the File receive adapter, the
file is deleted and a warning is written to the application log of the
BizTalk server. This behavior is by design.

Regards,
Doug Girard [MSFT]

Note: This posting is provided "AS IS" with no warranties, and confers no
rights.
--------------------
>Thread-Topic: File - Adapter Receive empty Files on BT2006
>thread-index: AcbISgKKMBCh1sykSC+A4Du55PNcPw==
>X-WBNR-Posting-Host: 88.72.196.227
>From: =?Utf-8?B?RGFuaWVsIEJlZGFyZg==?= <Daniel
Bed...@discussions.microsoft.com>
>Subject: File - Adapter Receive empty Files on BT2006
>Date: Fri, 25 Aug 2006 06:26:02 -0700
>Lines: 18
>Message-ID: <9F47EB93-74A6-4869...@microsoft.com>
>MIME-Version: 1.0
>Content-Type: text/plain;
> charset="Utf-8"
>Content-Transfer-Encoding: 7bit
>X-Newsreader: Microsoft CDO for Windows 2000
>Content-Class: urn:content-classes:message
>Importance: normal
>Priority: normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.1830
>Newsgroups: microsoft.public.biztalk.general
>Path: TK2MSFTNGXA01.phx.gbl
>Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.biztalk.general:40313
>NNTP-Posting-Host: TK2MSFTNGXA01.phx.gbl 10.40.2.250
>X-Tomcat-NG: microsoft.public.biztalk.general

Daniel Bedarf

unread,
Aug 31, 2006, 5:47:24 AM8/31/06
to
Thank you.


--
Kind regards

Daniel Bedarf
-------------------------------------------------
http://biztalk-de.blogspot.com/


"Doug Girard [MSFT]" <dogi...@online.microsoft.com> schrieb im Newsbeitrag
news:mNgHRi7y...@TK2MSFTNGXA01.phx.gbl...

Fisicachu

unread,
Feb 1, 2007, 10:04:00 AM2/1/07
to
Hi,

Because of project requirements i need transferring empty files through
biztalk but i have the problem mentioned by Daniel in a previos post.

As Doug Girard mentioned empty files are removed but not transferred due to
a design behavior.

My question is, Is there any way of transferring empty files?
I think a solution could be checking file size within orchestration but no
FILE.* parameter is recovered :-(

Please, any idea?

Thanks a lot in advance and Regards,

McGeeky

unread,
Feb 1, 2007, 10:33:09 AM2/1/07
to
This is a huge gripe that I have with BizTalk. It has caused us problems on
a number of occassions. There is a similar problem when sending 0 byte
files.

However, its an inconsistent issue because you can actually receive 0 byte
files with the FTP receive location and send 0 byte files with the File send
port. But you cannot receive 0 byte files with the File receive location nor
send them with the FTP send port. Great!

There is a workaround of sorts in that you can check the event log for
messages that the File receive location creates when it finds a zero byte
file. From that point you can intercept the log message and react to it. Not
nice, but it works.

--
McGeeky
http://mcgeeky.blogspot.com


"Fisicachu" <Fisi...@discussions.microsoft.com> wrote in message
news:93C59EF3-7B33-4985...@microsoft.com...

Fisicachu

unread,
Feb 1, 2007, 11:05:02 AM2/1/07
to
Hi McGeeky,

Thanks for answering so quickly.

I'm in the FILE Adapter issue you mentioned.

I didn't understand what you mean in the last part that "you can check the
event log for messages", can you check it through biztalk? or through a .net
component?

Is there any of checking the zero-byte file size within an orchestration?
Apologizes if it is a simple question but i'm newby...

Thanks in advance and Regards

McGeeky

unread,
Feb 1, 2007, 12:00:15 PM2/1/07
to
It is possible to get 0 byte files in to an orchestration and check their
size, yes. But, not with the File receive location.

You will need to write a custom .Net component to read the event log
efficiently. Once you have detected the event then you can signify BizTalk
in some way; such as writing a record in to the database or creating a non-0
byte file in a folder that BizTalk is monitoring. Really, the solution can
be as simple or as complex as you need it to be.

To create the event; simply drop a 0 byte file in a folder that BizTalk is
monitoring and then check the event log. You will see that it has all the
information about the file that you need.

--
McGeeky
http://mcgeeky.blogspot.com


"Fisicachu" <Fisi...@discussions.microsoft.com> wrote in message

news:9BC8357F-7C90-43BE...@microsoft.com...

Fisicachu

unread,
Feb 1, 2007, 12:09:04 PM2/1/07
to
super,

Thanks for ur clarifications, they are helping me a lot.

I'll try this way.

Regards,

"McGeeky" wrote:

> It is possible to get 0 byte files in to an orchestration and check their
> size, yes. But, not with the File receive location.
>
> You will need to write a custom .Net component to read the event log
> efficiently. Once you have detected the event then you can signify BizTalk
> in some way; such as writing a record in to the database or creating a non-0
> byte file in a folder that BizTalk is monitoring. Really, the solution can
> be as simple or as complex as you need it to be.
>
> To create the event; simply drop a 0 byte file in a folder that BizTalk is
> monitoring and then check the event log. You will see that it has all the
> information about the file that you need.
>
> --
> McGeeky
> http://mcgeeky.blogspot.com
>
>
> "Fisicachu" <Fisi...@discussions.microsoft.com> wrote in message
> news:9BC8357F-7C90-43BE...@microsoft.com...
> > Hi McGeeky,
> >
> > Thanks for answering so quickly.
> >
> > I'm in the FILE Adapter issue you mentioned.
> >
> > I didn't understand what you mean in the last part that "you can check the
> > event log for messages", can you check it through biztalk? or through a

> ..net

Leonid Ganeline

unread,
Feb 1, 2007, 2:52:23 PM2/1/07
to
There is the File adapter sample in the BizTalk SDK. You can easily change
it to create some stub-body and then delete it on the Send part. This sample
is working well in production.

--
Regards,

Leonid Ganeline

Microsoft Certified Technology Specialist: BizTalk Server 2006
http://geekswithblogs.net/leonidganeline/


"Fisicachu" <Fisi...@discussions.microsoft.com> wrote in message
news:93C59EF3-7B33-4985...@microsoft.com...

Fisicachu

unread,
Feb 8, 2007, 5:00:00 AM2/8/07
to
Thanks a lot for your answer,

I'll try this way.

Regards,

Abhishek

unread,
Jul 10, 2008, 1:43:02 PM7/10/08
to
Hi All ,

We also have the same issue with the 0KB files not picked up by BizTalk 2006.
We are able to see the warnings in the event logs about the status of 0KB
Files as mentioned below

**********************
Event Type:Warning
Event Source:BizTalk Server 2006
Event Category:BizTalk Server 2006
Event ID:7182
Date:8/30/2006
Time:1:32:32 PM
User:N/A
Computer:BIZTALKSERVER
Description:
The FILE receive adapter deleted the empty file
"C:\filesource\emptyfile.xml.BTS-WIP" without performing any processing.
*************************************

But,What we want in our project is to receive ERROR notification through
Email whenever a 0KB file is deleted by the Biztalk FTP Adapter.So, that we
can have a clear idea about the status of the 0KB file.

Apart from this is there any means to process the 0KB file through
BizTalk2006.

Best Regards,
Abhishek & Kunal

0 new messages