2013年3月11日星期一

4. Cannot Track Message In BizTalk


One of my clients report me that, they cannot track BizTalk message though turn on the track message properties in send/receive port or orchestration.

Then I connect to their BizTalk 2009, turn on the tracked messages for some send port, receive port, orchestration to test it, but very strange, when I open the send port, receive port, orchestration again, all the tracked message properties roll back to unchecked(turn off).

I take nearly an hour to check it and finally found that the “Global Tracking” properties was turned off(The client told me they have the performance issue in the last Thanksgiving, that’s why they turn off it, but forgot it). Then I try to turn it on and everything is OK finally.




Here are the steps from Microsoft about how to turn on/off Global Tracking.

How to Turn Off Global Tracking

0 out of 1 rated this helpful - Rate this topic
By default, global tracking is enabled when you install BizTalk Server 2010. The BizTalk Tracking (BizTalkDTADb) database grows in size as BizTalk Server processes data on your system. If the size of the BizTalk Tracking database causes poor disk performance, you can purge the data from the Tracking database. If you are having performance issues that are momentarily addressed by purging the BizTalk tracking database, and you want to configure BizTalk to no longer collect tracking information, you may want to consider turning off global tracking.
It is important to understand that turning off global tracking disables the tracking interceptors for the entire BizTalk Server group. This means that BizTalk will not track events in its tracking tables. Alternatively, you can turn off tracking for individual events.
说明: noteNote
If you are using Business Activity Monitoring (BAM), you should maintain a dedicated tracking host, even if you disable global tracking. This is because BAM events use the Tracking Data Decode Service (TDDS).


You must be logged on with an account that is a member of the SQL Server sysadmin fixed server role to perform this procedure.


1.       On the SQL server that hosts the BizTalk Tracking (BizTalkDTADb) database, click Start, click Programs, click Microsoft SQL Server 2008 R2, and then click SQL Server Management Studio.
2.       In the Connect to Server dialog box, verify the server name and authentication, and then click Connect.
3.       In Microsoft SQL Server Management Studio, in Object Explorer, expand <computer name>, expand Databases, expand BizTalkMgmtDb, expand Tables, right-click adm_Group, and then click Open Table.
4.       In the table viewer, scroll horizontally until you find GlobalTrackingOption.
5.       In the GlobalTrackingOption column, change the value from 1 to 0, to turn off this feature, and then press ENTER.
6.       Close Microsoft SQL Server Management Studio.
说明: noteNote
You must restart your BizTalk hosts for the change to take effect.
7.       Click Start, click Programs, point to Microsoft BizTalk Server 2010, and then click BizTalk Server Administration.
8.       In the BizTalk Server Administration console, expand BizTalk Server Administration, expand BizTalk Group, expand Platform Settings, and then click Host Instances.
9.       In the details pane, right-click each host, and then click Restart.

3. C# get DateTime with timezone offset


Use zzz parameter to specify the timezone offset as hours and minutes, for example:
DateTime.Now.ToString("yyyy-MM-ddTHH:mm:sszzz")
Return:
2013-03-12T10:38:45+08:00

2013年3月8日星期五

2. BizTalk EDI Batch Start Button Disabled


One of my client report me that the EDI batch stop to generate the EDI batch file in our BizTalk production server today, it seems serious.

When I login to the BizTalk server, everything looks fine, BizTalk received the LOB message, transformed it to EDI format and send it to the EDI batch orchestration. But, the “Start”, “Override”, “Stop” button in the batch all are disabled, I can only Refresh it.

Then I tried to restart the host instance and the application, I thought it will be OK, but, all the button are the same--disabled.

I try to check the suspended message and found that, there are some EDI batch messages suspended over there. The suspended services name is :

Microsoft.BizTalk.Edi.BatchingOrchestration.BatchingService, Microsoft.BizTalk.Edi.BatchingOrchestration, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35

Then I terminated all these type of service and all of the button enabled again after restart the host instance. I can Start, Override, Stop the instance now.

I don’t know why Microsoft design the Edi Batch at this way----one EDI message failed, then all of the batch failed. But I really don’t like it, it make me have to check the EDI status always, maybe I have to develop a tool to monitor it.


2009年5月12日星期二

1. “Access is denied”errors when deploying BizTalk Application in Visual Studio

English:


I tried to deploy BizTalk application today, but Visual Studio shows the following errors:

Error 1 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 0 0
Error 4 Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 0 0
Error 2 at Microsoft.BizTalk.Gac.Fusion.IAssemblyCache.InstallAssembly(AssemblyCacheInstallFlag flags, String manifestFilePath, FusionInstallReference referenceData)
at Microsoft.BizTalk.Gac.Gac.InstallAssembly(String assemblyPathname, Boolean force)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.GacInstall(String assemblyLocation)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.PrivateDeploy(String server, String database, String assemblyPathname, String applicationName)
at Microsoft.BizTalk.Deployment.BizTalkAssembly.Deploy(Boolean redeploy, String server, String database, String assemblyPathname, String group, String applicationName, ApplicationLog log) 0 0
Error 5 Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 0 0
Error 3 Unspecified exception: "
Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"

Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)) 0 0

I cost an hours to check this errors, finally I found that it cause by the OS Windows Server 2008.




The default running access right won't be administrator though you log in Windows Server 2008 as member of administrartors group. For running as the adminstrator, you should right click Visual Studio 2008 's shoucut, then select Run as administrator. The “Access is denied” error will be fixed after you run Visual Studio 2008 as administrator.


Chinese:
今天我在Windows Server 2008中部署BizTalk程序时出现了一个“Access is denied”的错误,同样的程序在别的机器上部署时,一切正常,只有在Windows Server 2008中才会出现这种错误,百思不得其解.
 最后我发现原来是Windows Server 2008的问题,在WS2008中运行程序时,即使你是以管理员的身份登录,程序默认不是以管理员的权限运行的,除非你运行程序时右键然后选择"Run as administrator".
 以管理员的权限运行程序后,"Access is denied"的异常就解决了!