src_filename usage
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 > src_filename usage




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

    src_filename usage  
Chip


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


 
02-08-04 01:39 PM

I am trying to pass a text file through Biztalk and retain
the original filename.  I can successfully pass it through
a port and channel, where the port uses the "%
src_filename% and the channel points to a document
definition that has no schema attached to it.

This all works fine if I pass an XML file through it.  The
outbound file has the correct untouched contents, and
retained the filename.

However, whenever I try to pass a text file, I get a file
called %src_filename%.  It has the correct contents, but
the filename is my problem.  Any ideas on how to get past
this?  Is this a limitation in that the src_filename key?

thanks in advance,
Chip





[ Post a follow-up to this message ]



    Re: src_filename usage  
Jan Eliasen


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


 
02-08-04 01:39 PM

On Wed, 21 Jan 2004 15:04:01 -0800, "Chip"
<anonymous@discussions.microsoft.com> wrote:

Are you using pass-through? Are you using a preprocessor? If not, then
someone else has had the problem and a MS-fellow suggested getting the
fix documented in

http://support.microsoft.com/?id=316637



>I am trying to pass a text file through Biztalk and retain
>the original filename.  I can successfully pass it through
>a port and channel, where the port uses the "%
>src_filename% and the channel points to a document
>definition that has no schema attached to it.
>
>This all works fine if I pass an XML file through it.  The
>outbound file has the correct untouched contents, and
>retained the filename.
>
>However, whenever I try to pass a text file, I get a file
>called %src_filename%.  It has the correct contents, but
>the filename is my problem.  Any ideas on how to get past
>this?  Is this a limitation in that the src_filename key?
>
>thanks in advance,
>Chip

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





[ Post a follow-up to this message ]



    Re: src_filename usage  
Chip


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


 
02-08-04 01:39 PM

Jan,

I am getting a copy of the patch suggested in the URL.

Thanks for the help.

Chip







[ Post a follow-up to this message ]



kirschma is offline     Re: Re: src_filename usage  
kirschma


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


Click Here to See the Profile for kirschma Click here to Send kirschma a Private Message Find more posts by kirschma Add kirschma to your buddy list
 
06-15-04 08:07 AM

Hi,

does anyone have experiences with BTS2004 and filenames? All your suggestion
s doesn't seem to work here.

Thanks a lot

M. Kirsch




[ Post a follow-up to this message ]



kirschma is offline     Re: Re: Re: src_filename usage  
kirschma


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


Click Here to See the Profile for kirschma Click here to Send kirschma a Private Message Find more posts by kirschma Add kirschma to your buddy list
 
06-15-04 03:28 PM

Okay, I've got the solution:
%SourceFileName% must be the first String in the filename:

works: C:\Test\%SourceFileName%.xml
won't work: C:\Test\Test_%SourceFileName%.xml

regards

Martin Kirsch




[ Post a follow-up to this message ]



kirschma is offline     Re: Re: Re: Re: src_filename usage  
kirschma


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


Click Here to See the Profile for kirschma Click here to Send kirschma a Private Message Find more posts by kirschma Add kirschma to your buddy list
 
06-18-04 09:41 AM

quote:
Originally posted by kirschma Sorry, but new problem occured: writing XML-documents work fine, but flatfiles stay at the following name: C:\Test\%SourceFileName%.xml does anyone have a solution? regards Martin Kirsch




[ Post a follow-up to this message ]



    Re: src_filename usage  
Allen Zhang


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


 
06-26-04 03:51 PM

%SourceFileName% macro is populated by File receive adapter only. In
addition, if you are disassembling the flat file into multiple messages,
then they all will have this %SourceFileName% which will either fail or
overwrite depending on your send port settings.

- Allen Zhang (MSFT)

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>
kirschma wrote: 
> name: 



--
kirschma
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message115254.html
[vbcol=seagreen]
>






[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 09:55 PM.      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