BizTalk Logging using BAM/File Log
Here is requirement for BAM/Text Log:
 BizTalk Receive the file through Recvpipeline,after doing some business validations in orchestration,it's rename the file in orchestration and finally send the file to target system.

The requirement is end user want a log details like Source FileName, RenamedFIleName and Source Name(it's a custom promoted proeprty in RECV pipeline).

He is Ok to Have BAM or Logging those details in Text file on Date basis.


Please suggest which option to choose and if go BAM how to implement this scenario (or) if i go for File Logging ,how to implement?
February 3rd, 2015 7:38am

That should a fairly straightforward BAM solution.

You need to create an Activity that contains (possibly)

  1. Receive File Name
  2. Transmit File Name
  3. Source Name
  4. Receive Time
  5. Transmit Time

Since you're dealing with Promoted Properties you should then be able to create a TPE and map those elements (don' forget to map the Activity ID to the Instance Id - first). Deploy the TPE.

Regards.


Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2015 8:37am

Steps are as follows :

Create a BAM Activity with below attributes :

  • Receive File Name
  • Transmit File Name
  • Source Name
  • Receive Time
  • Transmit Time

And deploy the BAM activity through bm.exe deploy-all  . You can take reference from below link

http://tutorial.programming4.us/windows_server/BizTalk-2010-Recipes---Business-Activity-Monitoring---Deploying-BAM-Activities-and-Views.aspx

Once done you can use BAM API or Tracking profile editor to populate BAM data . For this methodology you can use

below MSDN article

https://msdn.microsoft.com/en-us/library/aa559527.aspx

Thanks

Abhishek

February 3rd, 2015 8:47am

This scenario calls for a BAM implementation. 

You have to first create BAM activity and view within a BAM Excel workbook and must deploy the BAM artifacts within your environment.

BAM activities identify the milestones and tracking data an individual is interested in tracking. Milestones are the steps in an activity that are measured in time, and tracking data is the key data points in a process you are interested in tracking

First identify what all data you need to map that your business require for logging/smooth functioning.

For creating BAM Activites Refer:

BizTalk 2010 Recipes : Business Activity Monitoring - Creating BAM Activities and Views

For deploying BAM Activities. Refer: 

BizTalk 2010 Recipes : Business Activity Monitoring - Deploying BAM Activities and Views

Then you can use BAM API or Tracking profile editor to populate BAM data .

Refer the article : Business Activity Monitoring in Depth for Developers

Rachit


Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2015 9:58am

Thanks to all for reply.Could you please provide File Log Implementation details also.
February 3rd, 2015 10:16am

Hi ,

If you require process to be logged into file the best option is using enterprise Library .

Refer below link for reference

Using Entrerprise Library In Biztalk Orchestration To Log To A File -

Thanks

Abhishek

Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2015 10:30am

Hi BizQ,

I don't think most .NET logging frameworks are a good idea with BizTalk.  Normally they just arent queued so theyll slow things down (often a lot). My preference is ALWAYS BAM.

Still you can refer few links below:

Biztalk : Log entry using Microsoft Practice Enterprise Library in .Net assembly / Call .Net assembly using Biztalk Orchestration Expression Shape

Using Entrerprise Library In Biztalk Orchestration To Log To A File

Rachit

February 3rd, 2015 12:20pm

The Logging requirement is not a Error logging in to file.adding the Source FileName, RenamedFIleName and Source Name into the file as record.

SourceFileName      RenamedFileName   SOurceName

ABC.txt                      dfg.txt                          12sys

yut.txt                         mfc.txt                          52sys

This is how I have insert record into the text file from orchestration.can u help the how to add row in text file from Orch

Free Windows Admin Tool Kit Click here and download it now
February 3rd, 2015 2:08pm

You can do message logging as well with Enterprise Library :)  .Its not only logging only the exception part .

In meanwhile have you gone through the link already been shared . It shows how you log events in Orchestration .

Thanks

Abhishek


February 3rd, 2015 2:19pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics