Monday 4 May 2015

Remove Header from CSV File in Biztalk

Hello Friends,

Please see below sample data which you receive in a flat file.

FName,MName,LName
John,K,Cena
Rambo,D,Parera

As you can see that first row is heading Like Fname,MName and LName. so when you do mapping then heading will be also mapped as data in target schema.

What my requirement is that I dont want to Include Heading in my output. I want only the exact data from the CSV file which I am receiving. for example only 2nd and third row.

I want Output as Below:




To achieve this target I have created one flat file schema and one target schema and mapped it. The step by step details I am attaching below:

Step 1: Add New Item and select Flat File Schema Wizard, give any name.



Step 2: In Flat File Schema Information Window Change the record Name and select the input Instance.
Step 3: In Select Doccument Data window Select the heading and and and first row after heading.


Step 4: Select Record Format By Delimiter Symbol.

Step 5: In Delimiter Record Select child Delimiter as CR LF.
Step 6: In Child Elements Window change the name as "Header" and the element Type of Header to "Record" and change the element type of exact date to "Repeating Record".

Step 7: In Schema View Select the Header and Click Next.

Step 8: In Select Document Data Window select the Header and click next.

Step 9:In Delimited Record select Child Delimiter as comma(,)
Step 10:In child Elements Window leave as it is or you can change the name and click next.

Step 11: Now select the Emp Node and click Next.
Step 12: In select doccument data window select the second row and click next.
Step 13: select , in Child Delimiter.
Step 14: In child Element window you can change the element name as required.
Click Finish to complete the wizard.

The source schema will look like as below:

Now Create a Target Schema same as below:
Now we will add a map to our project and will choose the source schema and target schema.

The mapping will be like below:

As you can see in above map we are not mapping the Header to Target schema so the heading will not come in target output.

we will get our required output without first row i.e Heading.

Our Output Will be Like below:



I hope I am clear in this demo. This is Sample one you can take it as a reference and complete your requirement.


Event ID List of Common Warnings and Errors In Biztalk

Hello Friends,

Here in this list you can find some common Error details which is associated with same Event ID. 
For Example when you see EVENT ID 5740 you can see that this event id is same but Error Details are different.

Event ID
Error Details
Type
5740
The adapter "FTP" raised an error message. Details "Unable to connect to FTP server "X.X.X.X" as user "TESTUSER” Inner Exception details: "No FTP server found on the specified address. ". ".
Warning
5740
The adapter "FTP" raised an error message. Details "The folder "Test Folder" does not exist. ".
Warning
5740
The adapter "FTP" raised an error message. Details "The adapter recovered from recent failures. The Event Log Error Threshold count reset. ".
Warning
5740
The adapter "FTP" raised an error message. Details "Unable to receive the file "Test File Name" from the FTP server.  The error that occurred was "A stream read or write operation failed because the stream is in an error state.
Warning
5740
The adapter "FTP" raised an error message. Details "A failure occurred when parsing the remote folder listing. Inner Exception details: "An error occured while receiving a reply line from the FTP server. ". ".
Warning
5649
The receive location "RcvLocation" with URL "Test URL" is shutting down. Details:"The error threshold was exceeded. ".
Error
5410
An error occurred that requires the BizTalk service to terminate. The most common causes are the following:
 1) An unexpected out of memory error.
 OR
 2) An inability to connect or a loss of connectivity to one of the BizTalk databases.
 The service will shutdown and auto-restart in 1 minute. If the problematic database remains unavailable, this cycle will repeat.
Warning
5719
Unable to receive the file "Test File Name" from the FTP server.  The error that occurred was "The data transfer has been aborted by the FTP server. ".
Error
5719
Unable to receive the file "Test File Name" from the FTP server.  The error that occurred was "A stream read or write operation failed because the stream is in an error state. ".
Error
5743
The adapter failed to transmit message going to send port "Test Send Port" with URL "Test URL". It will be retransmitted after the retry interval specified for this Send Port. Details:"The folder "Test Folder" does not exist. ".
Warning
5753
There was a failure executing the receive pipeline: Reason: Unable to receive the file "Test File Name" from the FTP server.  The error that occurred was "The data transfer has been aborted by the FTP server. ".
Error
5753
There was a failure executing the receive pipeline: Reason: Unable to receive the file "Test File Name" from the FTP server.  The error that occurred was " The remote file could not be opened by the FTP server. ".
Error
5754
The remote server refused a data connection.Please check permissions on the remote system.
Error
5754
The folder "Test Folder" does not exist.
Error
5754
"A message sent to adapter "Test Addpter" on send port ORA-06508: PL/SQL: could not find program unit being called: ""PUBLIC.OWA_UTIL""
Error
5792
The Messaging Engine encountered an unexpected error while trying to suspend messages received by adapter "FTP" that failed due to routing failure. Details: "An error occurred when accessing the part data or one of its fragments. The part data or fragment may not exist in the database. ".
Error







6998
"Unable to communicate with MessageBox BizTalkMsgBoxDb on SQL Instance <test Name>. Error Code: 0xc0c01b45. Possible reasons include:
 1) The MessageBox is unavailable.
 2) The network link from this machine to the MessageBox is down.
 3) The DTC Configuration on either this local machine or the machine hosting this MessageBox is incorrect."
Error
10034
ORA-06508: PL/SQL: could not find program unit being called: "SYS.OWA_CX",ORA-06508: PL/SQL: could not find program unit being called: "PUBLIC.OWA_UTIL"
Error