Archive for the ‘Biztalk 2010’ Category

Biztalk: Failed to add resource(s). Change requests failed for some resources

Today while deploying a Biztalk project I got the following error

Error 33 Access to the path ‘C:\Users\alasaad\Local Settings\Temp\BT\PID3624\BizTalkAssembly\4120c07368b1efbdf0cf62f9cd6bc7eb\MyBiztalkProject.dll’ is denied

Cleaned the project, restarted Visual studio. No good. I then rebooted the machine and I got this error

Error 42 Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Assembly “C:\Users\alasaad\AppData\Local\Temp\2\BT\PID5652\BizTalkAssembly\4120c07368b1efbdf0cf62f9cd6bc7eb\MyBiztalkProject.dll” does not appear to be a BizTalk assembly, and cannot be deployed to the Configuration database. If this assembly is referenced by other BizTalk assemblies, it needs to be installed into the global assembly cache (GAC) of each BizTalk server.

To fix the above I had to Add the following to the AsseblyInfo.cs. See

[assembly: Microsoft.XLANGs.BaseTypes.BizTalkAssemblyAttribute(typeof(BTXService))]

Seems that I deleted that line by mistake 🙂

Categories: Biztalk, Biztalk 2010 Tags: ,

Biztalk: Instance was not successfully terminated. Status is Pending

Sometimes when you try to terminate messages in Biztalk, messages may fail to terminate. Before you force the termination, you need to make sure you are ONLY terminating the messages you intend to terminate.

To force the termination, try one of the following:

Restart/Stop host instances assigned to the port or orchestration

Recycle the application pool assigned to the Webservice/WCF service if the port’s host is an isolated host

You can also wait for Biztalk to finish retrying sending the message, hence messages become suspended instances

Biztalk: ‘FaultMessageType’: cannot resolve imported ‘messagetype’

When you get the “cannot resolve imported ‘messagetype'” error in Biztalk, it means that you are missing a reference.

In my case

I hada Biztalk project referencing a Framework project which references “Microsoft.Practices.ESB.ExceptionHandling.Schemas.Faults” assembly. I had to add a reference to that assembly in my project as well.

Categories: Biztalk, Biztalk 2010

Biztalk: Error if shared data is updated in a parallel then all references in every task must be in a synchronized or atomic scope

To solve the issue,

  • Wrap the shapes in each branch with a scope
  • Go the properties of each added scope
  • Set the Synchronized Property true (Apply on each scope on each branch)


  • Set the Transaction Type based on your requirements. In my case I am using None.
Categories: Biztalk, Biztalk 2010 Tags: ,

Biztalk: WCF Adapter Transmission Failure (To be retried)

File receive location (*.txt filter)
WCF-net.tcp send port
Target system: Dynamics AX

I was getting a Transmission Failure event in the Tracked message events in the Biztalk Server Administration console. When the text file contains more than specific number of records.

In my case, the DAX service replies to the Biztalk message with message whose size is proportional to the sent message. To resolve this issue, in my case, I had to increase the Maximum received message size on the WCF-NetTcp send port.

Categories: Biztalk, Biztalk 2010

Biztalk: The “XLangTask” task failed unexpectedly

Last Monday I started, mainly, a Biztalk contract with a previous client. When I tried to build some of the work I have done before I was getting the following error:

Error 1 The “XLangTask” task failed unexpectedly.
System.Runtime.InteropServices.COMException (0x80040154): Retrieving the COM class factory for component with CLSID {1BBA9F19-D4CC-34AA-918C-44FEF11E8274} failed due to the following error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
at Microsoft.VisualStudio.BizTalkProject.Compiler.XLangCompiler.Compile(BizTalkBuildSnapshot buildSnapshot, IEnumerable`1 orchestrationFilesToCompile, String switches, String outputPath, List`1& generatedCodeFiles)
at Microsoft.VisualStudio.BizTalkProject.BuildTasks.XLangTask.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask, Boolean& taskResult)

The environment was:
Windows Server 2008 R2
Biztalk 2010 Enterprise Edition
SQL Server 2008 R2
VS2010 Ultimate

I tried few things like cleaning the solution, change the build target ..etc. Nothing worked. Finally, I decided to repair Biztalk:

Control Panel –> UnInstall Programs –> click Microsoft Biztalk Server Enterprise Edition –> Uninstall/Change. Choose Repair option when prompted

And That fixed it

Categories: Biztalk, Biztalk 2010 Tags: ,

Cumulative update packages for BizTalk Server 2010

Categories: Biztalk, Biztalk 2010 Tags: ,