Blank files issue
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Applications Integration > Blank files issue




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Blank files issue  
Divihari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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





[ Post a follow-up to this message ]



    Re: Blank files issue  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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





[ Post a follow-up to this message ]



    Re: Blank files issue  
divihari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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 
>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
>.
>





[ Post a follow-up to this message ]



    Re: Blank files issue  
Nick Malik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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...
> 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. 







[ Post a follow-up to this message ]



    Re: Blank files issue  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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.

>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





[ Post a follow-up to this message ]



    Re: Blank files issue  
divihari


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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 
some 
he 
>
>
>.
>





[ Post a follow-up to this message ]



    Re: Blank files issue  
Jan Eliasen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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.


>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





[ Post a follow-up to this message ]



    Re: Blank files issue  
Nick Malik


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-08-04 01:41 PM

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...
> 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 







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:54 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register