BizTalk Server - src_filename usage

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server > June 2004 > src_filename usage





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

2004-02-08, 8:39 am

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

2004-02-08, 8:39 am

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
Chip

2004-02-08, 8:39 am

Jan,

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

Thanks for the help.

Chip


kirschma

2004-06-15, 3:07 am

Hi,

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

Thanks a lot

M. Kirsch
kirschma

2004-06-15, 10:28 am

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
kirschma

2004-06-18, 4: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

Allen Zhang

2004-06-26, 10:51 am

%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]
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com