I am a newbie at biztalk and this is my first assigned project. I need your recommendation on the current project I am handling. The project will unzip file from the ftp site that contains flat files and pdf files. Flat files uses only one schema, only with different order numbers . Through this order numbers, project will query if this order number exist in SQL database, if it exist, it will pick up the pdf file that has the same filename as the flatfile and upload it in the database. Otherwise, will have to send the list of failed orders within the day via email. Report should contains order details which is in the flat file plus the file name of the file that failed...
Where I am now at the project?
I created a custom pipeline that will unzip file from the ftp site and save it on a file location, seperated txt and pdf files into different folders.
I also created a receive pipeline that will dissemble the flat files.. and send the xml files into another file location.. let's say xml folder..
Since I don't have the stored proc yet.. what I did was tried to combined the received messages into one file and send it to another file location by using a flat file assembler in a send pipeling and save it as report.txt.. I'm assuming I can use this later.. but the problem I encountered here is I don't know how to get the file name of the order that failed and assign it to an element in a report schema I created...I tried promoting filename element and use bts.global...filename.. but It's not working..
where should I go from here..
What is the best approach I could use on this project.. I can't figure out how I can pick up the pdf file and upload it via sql.. then get all orders that failed to upload within the day and send it via email...
Appreciate any help from you guys!