|
Home > Archive > BizTalk Server General > September 2005 > Dynamic Port and Flat File Problem
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 |
Dynamic Port and Flat File Problem
|
|
| Ximena Cifuentes 2005-09-26, 8:48 pm |
| Hello there,
I have a dynamic port and an orchestration, in the orchestration I set the
URL of dynamic port to file:\\d:\some_dynamic_thing.txt, it works fine only
if there is not any file with that name. If the file already exist it throws
an exeption: "Biztalk can't open file:\\d:\some_dynamic_thing.txt for write".
I really need Biztalk overwrite the file in such case.
I tried to set send port properties with this string:
<CustomProps>
<CopyMode vt="19">2</CopyMode>
<AllowCacheOnWrite vt="11">-1</AllowCacheOnWrite>
</CustomProps>
but it didn't work, can somebody help me ??
| |
| Stephen W. Thomas 2005-09-26, 8:48 pm |
| Hello.
You can set that using a context property on the FILE adapter.
In the shape that you use to set the dynamic address, try this:
outputMessage(FILE.CopyMode) = 2
The values are: 2 = Overwrite 1 = Create New, 0 = Append.
Hope this helps.
Stephen W. Thomas
http://www.biztalkgurus.com
http://www.biztalkblogs.com
"Ximena Cifuentes" wrote:
> Hello there,
>
> I have a dynamic port and an orchestration, in the orchestration I set the
> URL of dynamic port to file:\\d:\some_dynamic_thing.txt, it works fine only
> if there is not any file with that name. If the file already exist it throws
> an exeption: "Biztalk can't open file:\\d:\some_dynamic_thing.txt for write".
> I really need Biztalk overwrite the file in such case.
>
> I tried to set send port properties with this string:
> <CustomProps>
> <CopyMode vt="19">2</CopyMode>
> <AllowCacheOnWrite vt="11">-1</AllowCacheOnWrite>
> </CustomProps>
>
> but it didn't work, can somebody help me ??
| |
| Ximena Cifuentes 2005-09-27, 2:50 am |
| thanks a lot !
"Stephen W. Thomas" wrote:
[vbcol=seagreen]
> Hello.
>
> You can set that using a context property on the FILE adapter.
>
> In the shape that you use to set the dynamic address, try this:
> outputMessage(FILE.CopyMode) = 2
>
> The values are: 2 = Overwrite 1 = Create New, 0 = Append.
>
> Hope this helps.
>
> Stephen W. Thomas
> http://www.biztalkgurus.com
> http://www.biztalkblogs.com
>
>
>
> "Ximena Cifuentes" wrote:
>
|
|
|
|
|