Aug 052008
 

I’ve been on a few projects where clients have requested there be some kind of monitoring associated with BizTalk.  Sometimes they want all error messages that BizTalk might spit out to the Event Log emailed to them.

For these circumstances I’ve created a simple .EXE that takes the following 4 parameters:

Argument 1 = ToEmail
Argument 2 = FromEmail
Argument 3 = SmtpServer
Argument 4 = Covast EDI Accelerator 2004 – Subsystem ErrorFlag Y/N

I then set up a Scheduled Task to run a batch file that runs the Executable.

The .bat looks like this:

“C:\Biztalk\Event Log Emailer\EventLogEmailer.exe” ToEmailAddress@yourname.com FromEmailAddress@YourServerName.com YourSMTPServerName.smtp.com N

You’ll see it comes in an HTML formatted message.  I run it at 1 AM, and it gives yesterday’s data.

image

Currently it’s set to pick up BizTalk 2004, 2006, HIPAA, and CovastErrors(parameter flag can be used).  Tell me if you’d like other parameters, or if you’d like one for a completely different application other than BizTalk.

Aug 052008
 

While trying to drop some files for Thomson’s BizTalk applications to load I found out that for the UPS order application they have built in a lot of logging and archiving. One nice feature is the Uploaded folder which archives messages for a particular dropped file. It looks like this:

image

 

These messages can tell you things like what went wrong in the application or if your fields weren’t properly formatted in the file you dropped. This is what I saw initially in one of the files. I needed only the incoming message segment and copied that out.

image

Copying the black just to see the xml makes it easier to read, and I saw the following (just an example):

image