We have a business process where a custoier provides a valid CSV which is being processed by BizTalk 2010 - but IF a customer sends in an email with a signature file that contains a bitmap or jpeg - BizTalk fails to process the file
It's very hard to modify external customer behaviour, so is it possible to configure BizTalk to ignore invalid attachments and only act upon valid files in format of CSV?
If yes - can you give me a pointer on where to look?
I guess you have an orchestration in your solution - if no create one. Inside the orchestration define a variable with type Microsoft.XLANGs.BaseTypes.XLANGMessage and assign the incoming email message to this variable. You can refer to each part of the email (e.g. body, attachments) with expression "varableName", "variableName" etc. Now you have access to various properties of each email part, for example the file name of the attachment is <variable_holding_actual_message_part>.GetPartProperty(typeof(MIME.FileName)) - note that this method returns Object type. And thus you are in the finish line as you can check file extension and based on that decide what to do...