Home Page › Forums › BizTalk 2004 – BizTalk 2010 › create a blank .flag file when a file is picked up.
- This topic has 12 replies, 2 voices, and was last updated 5 years, 5 months ago by
community-content.
-
AuthorPosts
-
-
January 21, 2010 at 11:26 AM #24110
Hi,
My requirement is like When the input file is picked up one blank file should be created at receive location with .flag extension and once it is proceesed compeletely and sent to target location .flag blank file should be changed to .done extension.
Please help me any one how we can approach on this
-
January 22, 2010 at 1:12 PM #24116
A quick though on this…
You could move this logic into an orchestration.
Using the context properties of the message you could identify where the source file arrived from and write out your .flag file to this location. For this, I believe that you could use the File Adapter in a send port.
Do your processing…
Once complete you would then write out the .done file. This could as well be done using the File Adapter in a send port.
I believe that to delete your .flag file you will need to do this using an expression shape that deletes the file. There are other ways to do this last one, but i am not currently aware of anyway to rename a file in a directory using the native biztalk adapters.
-
January 23, 2010 at 8:19 AM #24122
Brunchey is on the right path….
To ensure your send port instance is successful you will want to use delivery notification (http://kentweare.blogspot.com/2007/11/biztalk-delivery-notification.html). You don’t want to mark you file as done if you send port is going through retries due to connectivity or disk issues.
You can use some .Net code to either delete the .flag file or simpley rename it. You will need to write this code in an expression shape or reach out to a .net library to do this work.
You will be able to get the location of the inbound file via the file adapter’s context property in an expression shape i.e
FilePath = MsgIn(FILE.ReceivedFileName)
-
January 25, 2010 at 6:23 AM #24127
Thanks for the reply.
But the requirement is it should create a blank .flag file when it is process in the Pipe line (Before reaching orchestration)
I want to create the .flag file when it is processing in the pipeline.
-
January 25, 2010 at 8:48 AM #24129
Then you will need to write a pipeline component. There is a simple example of a pipeline component in the BizTalk Install directory at SDK\Samples\Pipelines\CustomComponent.
Also, here is a pretty good online tutorial..
Your code to write out this .flag file is going to most likely end up in the Execute method of your pipeline component.
-Ben
-
January 26, 2010 at 6:59 AM #24137
Thank you Ben. It’s really helped for my requirement.
-
-
January 25, 2010 at 9:15 AM #24131
Hi,
For your requirement, you might want to look into the BizTalk Server Pipeline Component Wizard, located at this site:
Also, check out the following blog describing how to build a custom component that can be used in certain stages of a Receive or Send Pipeline:
I hope this is enough information to get you going.
Daniel.
-
January 26, 2010 at 7:01 AM #24138
Thank you Daniel, It’s really very informative.
-
January 29, 2010 at 1:23 AM #24152
Hi, I am planning to write Biztalk 70-241 exam. Can you please send me the study material and dumps, in case you have any?
My email ID is [email protected]
Thanks
Victor
-
-
-
-
-
September 12, 2018 at 11:25 PM #41996
mith
dsd
-
September 12, 2018 at 11:25 PM #41997
mith
blank glag
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.