Thursday, March 27, 2014

Error: Error in the application


Error: Error in the application

It was when I used BTAHL7SendPipeline on the send port to transmit HL7 file.


1. A message sent to adapter "FILE" on send port "Tutorial_BTAHL7Drop" with URI "C:\Users\tiwarmah\AppData\Local\Temp\%MessageID%.txt" is suspended.
 Error details: There was a failure executing the send pipeline: "BTAHL72XPipelines.BTAHL72XSendPipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "BTAHL7 2.X Assembler" Send Port: "Tutorial_BTAHL7Drop" URI: "C:\Users\tiwarmah\AppData\Local\Temp\%MessageID%.txt" Reason: Error in the application. 
 MessageId:  {51D8E0DB-A23A-47CD-A6FD-319AFCC1B25C}
 InstanceID: {53E75E07-D0E1-4F88-B7A9-6B8701F4A397}

2.There was a failure executing the send pipeline: "BTAHL72XPipelines.BTAHL72XSendPipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "BTAHL7 2.X Assembler" Send Port: "Tutorial_BTAHL7Drop" URI: "C:\Users\tiwarmah\AppData\Local\Temp\%MessageID%.txt" Reason: Error in the application

Why it happened: 

It is a bug in BTAHL7 Assembler, Microsoft has resolved this bug and have provided hotfixes for it.



What to do

To fix  Install the cummulative packages

Package1:
-----------------------------------------------------------
-----------------------------------------------------------
KB Article Number(s): 2838133
Language: English
Platform: i386
Location: (http://hotfixv4.microsoft.com/BizTalk%20Server%202013/latest/2838133_ENU_x86_x64/3.10.301.2/free/462362_ENU_i386_zip.exe)

Package2:
-----------------------------------------------------------
-----------------------------------------------------------
KB Article Number(s): 2892599
Language: English
Platform: i386
Location: (http://hotfixv4.microsoft.com/BizTalk%20Server%202013/latest/2892599_ENU_x86_x64/3.10.305.2/free/470061_ENU_i386_zip.exe)


Wednesday, March 19, 2014

Error : An attempt was made to load a program with an incorrect format.



There was a failure executing the receive pipeline: "BTAHL72XPipelines.BTAHL72XReceivePipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Unknown " Receive Port: "RPTest" URI: "C:\Users\tiwarmah\Desktop\TestIN\*.txt" Reason: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft BizTalk Server 2013\Pipeline Components\Microsoft.Solutions.BTAHL7.HL72fDasm.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.


A message received by adapter "FILE" on receive location "RLTest" with URI "C:\Users\tiwarmah\Desktop\TestIN\*.txt" is suspended. 
 Error details: There was a failure executing the receive pipeline: "BTAHL72XPipelines.BTAHL72XReceivePipeline, BTAHL72XPipelines, Version=1.3.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Unknown " Receive Port: "RPTest" URI: "C:\Users\tiwarmah\Desktop\TestIN\*.txt" Reason: Could not load file or assembly 'file:///C:\Program Files (x86)\Microsoft BizTalk Server 2013\Pipeline Components\Microsoft.Solutions.BTAHL7.HL72fDasm.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format.  
 MessageId:  {6857BA33-0489-46A6-87D8-FA2799623C50}
 InstanceID: {EC5417A2-2984-42F2-A500-539B4B7B5DFC}



Why it happened :

It happened because the BizTalk Installation is 64 bit and HL7 accelerator components are 32 bit compatible, so when default host which is 64 bit (BizTalkServerApplication) is used to contain HL7 components(32 bit) it errors. Make sure that the BizTalk host used by HL7 Accelerator is running under 32bit mode, if it is running in 64 bit mode, you will get this error.

What to do

Create a host with 32bit mode and use the instance of this host for HL7 Accelerator .