BizTalk Server Applications Integration - Blank files issue

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Applications Integration > February 2004 > Blank files 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 Blank files issue
Divihari

2004-02-08, 8:41 am

HI
we have clients submitting blank files to File Rec
Functions.Clients can not gurantee always data. we are
getting XXXXFname.txt as blank.
biztalk errors out and puts in event as well in suspended
queue which we do not want to happen.
How to handle this and any suggestions appreciated
thanks
divi
Jan Eliasen

2004-02-08, 8:41 am

On Tue, 13 Jan 2004 09:11:28 -0800, "Divihari" <divihari@yahoo.com>
wrote:

> we have clients submitting blank files to File Rec
>Functions.Clients can not gurantee always data. we are
>getting XXXXFname.txt as blank.
>biztalk errors out and puts in event as well in suspended
>queue which we do not want to happen.
> How to handle this and any suggestions appreciated
>thanks

Well, one way I can think of is to wirte a preprocessor to take a look
at the file first. If the file is empty, then return some
dummy-xml-document which BizTalk can send through some dummy-channel
and the finally in a dummy-port that will put the file somewhere.
Maybe write an AIC that will just discard it.

--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
divihari

2004-02-08, 8:41 am

HI
i tried this but the prolem is that preprocessor
eventhough submits to dummy channel and it still going its
own channel configured in File Receive function
independent of dummy channel and process ends up in
generating logs and suspended queues.
Are there any otherways to do and any help guys
thanks
divi

>-----Original Message-----
>On Tue, 13 Jan 2004 09:11:28 -0800, "Divihari"

<divihari@yahoo.com>
>wrote:
>
suspended[color=blue]
>Well, one way I can think of is to wirte a preprocessor

to take a look
>at the file first. If the file is empty, then return some
>dummy-xml-document which BizTalk can send through some

dummy-channel
>and the finally in a dummy-port that will put the file

somewhere.
>Maybe write an AIC that will just discard it.
>
>--
>Jan Eliasen, representing himself and not the company he

works for.
> MCP in Microsoft BizTalk Server
>.
>

Nick Malik

2004-02-08, 8:41 am

Hi Divi

Flip it around. Set the receive function to point to the dummy channel
Have the preprocessor detect a NON-BLANK document and submit it to the real
channel.

--- Nick

"divihari" <divihari@yahoo.com> wrote in message
news:0ce701c3daab$5f21a890$a301280a@phx.gbl...[color=blue]
> HI
> i tried this but the prolem is that preprocessor
> eventhough submits to dummy channel and it still going its
> own channel configured in File Receive function
> independent of dummy channel and process ends up in
> generating logs and suspended queues.
> Are there any otherways to do and any help guys
> thanks
> divi
>
> <divihari@yahoo.com>
> suspended
> to take a look
> dummy-channel
> somewhere.
> works for.


Jan Eliasen

2004-02-08, 8:41 am

On Wed, 14 Jan 2004 06:33:26 -0800, "divihari" <divihari@yahoo.com>
wrote:

I don't want you to submit anything in the preprocessor. If the
document isn't blank, then return the document. If the document is
blank, then return a dummy-xml-file, which the receive function will
then put through a dummy-channel which you create.
[color=blue]
>HI
> i tried this but the prolem is that preprocessor
>eventhough submits to dummy channel and it still going its
>own channel configured in File Receive function
>independent of dummy channel and process ends up in
>generating logs and suspended queues.
> Are there any otherways to do and any help guys
>thanks
>divi
>
><divihari@yahoo.com>
>suspended
>to take a look
>dummy-channel
>somewhere.
>works for.

--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
divihari

2004-02-08, 8:41 am

HI
it sounds good if i hard code the channel name in
preprocessor for sbumitting.the problem is i have a
generic preprocessor which does common stuff across lot of
interfaces . so i do not have a mechanism to know the
channel name if doc is not blank.
any ideas to to
thanks
divi
>-----Original Message-----
>Hi Divi
>
>Flip it around. Set the receive function to point to the

dummy channel
>Have the preprocessor detect a NON-BLANK document and

submit it to the real
>channel.
>
>--- Nick
>
>"divihari" <divihari@yahoo.com> wrote in message
>news:0ce701c3daab$5f21a890$a301280a@phx.gbl...
its[color=blue]
some[color=blue]
he[color=blue]
>
>
>.
>

Jan Eliasen

2004-02-08, 8:41 am

On Thu, 15 Jan 2004 06:34:51 -0800, "divihari" <divihari@yahoo.com>
wrote:

Well, if you use my suggestion, ie. returning the document if it is ok
and returning a dummy-xml-document if the document was blank then you
don't need to submit anything in the preprocessor.

[color=blue]
>HI
> it sounds good if i hard code the channel name in
>preprocessor for sbumitting.the problem is i have a
>generic preprocessor which does common stuff across lot of
>interfaces . so i do not have a mechanism to know the
>channel name if doc is not blank.
> any ideas to to
>thanks
>divi
>dummy channel
>submit it to the real
>its
>some
>he

--
Jan Eliasen, representing himself and not the company he works for.
MCP in Microsoft BizTalk Server
Nick Malik

2004-02-08, 8:41 am

Hi Divi,

That's what configuration files are for.
Also, to tie in with Jan's suggestion: if you have an open submission, you
don't need the name of anything except the dummy channel.

We've given you two alternatives. Both viable.
1) Jan's idea: if you get a blank document, have your preprocessor create a
dummy XML file as it's return value. Set up the receive function to be
"Open" so that Biztalk will automatically route the dummy document. Set up
a dummy channel that will pick it up, send it to a dummy port, connected to
an AIC that discards it.

2) My idea: set up a a dummy channel that expects an XML document every
single time (Just like Jan's dummy channel). Set up a preprocessor to look
at the input data, and if there is something valid there, submit it to
Biztalk from within the Preprocessor. Use the config file to hold the
settings that you'd like to submit it with (I have six different submission
"sets" in my config file, allowing me to sidestep Biztalk's automatic
routing function, since the senders may send files that don't EXACTLY match
the selection criteria in Biztalk.)

A third alternative:
3) Write your own Receive function. Instead of picking up every file from
the drop directory, it will pick up every file but only submit the ones to
Biztalk that have contents in them. This one's a hassle and hardly seems
worth it, but there's no mystery to it.

Good Luck,
--- Nick

"divihari" <divihari@yahoo.com> wrote in message
news:0cde01c3db74$bbdb5a30$a301280a@phx.gbl...[color=blue]
> HI
> it sounds good if i hard code the channel name in
> preprocessor for sbumitting.the problem is i have a
> generic preprocessor which does common stuff across lot of
> interfaces . so i do not have a mechanism to know the
> channel name if doc is not blank.
> any ideas to to
> thanks
> divi
> dummy channel
> submit it to the real
> its
> some
> he


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com