Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Receive Location Error – Removing of Files.
- This topic has 5 replies, 1 voice, and was last updated 9 years, 3 months ago by
community-content.
-
AuthorPosts
-
-
December 7, 2006 at 2:36 AM #16764
Hi,
I am facing a serious concern. I accept Batch input files. Need to split them, Map them and send the XML Outputs. I am using a Receive Pipeline (Flat File Disassembler). My Input file is a mix of delimited and positional records.
Everything works fine till one scenario. When I copy 2 or more invalid inputs in the receive location. They get submitted and throw the required errors.But they dont get removed from the Receive Location (the advanced settings for removing files are kept default). As the files are not removed from the Receive Location Folder, after the default polling interval the files are again being submitted to BizTalk and errors are thrown periodically. Its a major concern. In between when I place Valid inputs (any number of them) they are picked and removed. But everytime I place an invalid file, it gets submitted to BizTalk , but not removed from the folder.
I am not sure of how to handle this, but its very important for me to handle this issue.
Thanks in Advance.
-
December 7, 2006 at 2:44 AM #16768
You can use the Route Message on Error functionality available in BTS2006.
If a message fails in the pipeline, the message is not suspended but published into the message box. It un-promotes? all the current promoted properties and set a series of ErrorMessage promoted properties.
You can use a send port to subscribe to these messages and write them to another directory, alert someone, return to sender, etc, etc -
December 7, 2006 at 3:55 AM #16769
Greg is right. You could work out by having a send port filter for Invalid xml files..
But what I am curious is why the file is not getting deleted from the receive folder.
Can u let me know the errors u see in the Eventviewer.
If u drop in a .xml file.It should get picked up by File Adapter. Invalid xml file fail at pipeline stage . But the file normally gets deleted from the folder.
-
December 7, 2006 at 5:13 AM #16770
Hi,
Thanks for the replies.
I am not very well versed with BizTalk. I find a lot of properties here related to the "error" mechanism. I am not sure of what to use. I will just explain the scenario, could you please help me identify the right property.
I am not using orchestration.I just have a receive pipeline ( flat file disassembler). I receive Input flat files periodically, they are present in batches. i need to split them. And I call the map(Outbound) in the send port. The filter condition I have given is "BTS.ReceivePortName == Receive Port". Can you suggest which Property I could use in the filter conditions and would it affect. Can you just give a reference link/example so I could learn more and implement it.
And to the Event Log. I only get the error related to the failure of the pipeline component, which keeps repeating after the polling period ( here every minute). I waited for a long time, atleast 25 minutes, then too the file doesnt get deleted. I am not sure of why this is happenening. I know the input has been submitted to BizTalk, else I must have not got the repetitive errors.
My invalid file inputs, 1. have missing records, double records (must not be there), and after the last record in the file, there are multiple CR+LF, which I am not able to suppress.
So I get 2 errors 1. Unexpected data found while looking for " " records. 2. Unrecognizable stream of data.
For the 2nd error I am not sure of how to make the Biz Talk to understand that after a Input record if I dont find any other record, end it.some suppressing property.
Thanks for the help.
-
December 7, 2006 at 5:28 AM #16771
Hi ,
I have another doubt. Even if I do provide error routing conditions, but if the files are not removed from the receive location the errors will go on and on for every polling interval. And dont you think the performance will still be degrading? as multiple submissions would occur .
Thanks
AH
-
December 7, 2006 at 6:34 AM #16774
Hi,
Thanks for the approach. I have tried it using Error Based Routing. Its working fine, the messages get deleted from the folder. I would like to know if this is the only approach, as I am not very sure If I could implement it due to some other constraints. Thanks at least I know it works and I could try to use it. But I am still not able to understand why during the previous case, the files were not being deleted.
Thanks
AH
-
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.