Forum Replies Created
-
AuthorPosts
-
January 21, 2009 at 12:15 AM in reply to: BizTalk FTP Adapter Wired Behavior when one of subscriber is not reachable in send port group. #21541
After reaching some quantity of messages in message box, it behaves as dependence with other ftp adapter once we plug in (un plugged one) then all files are coming in a seconds.
Thank you for the reply. Actually, I stumbled onto the answer earlier today.
If you click on the node in biztalk schema editor, in the properties window, there is a field called “RootNode TypeName”. In that field, I replaced the default with “Element_Part”. This is really nice because the incoming message will still conform to the original schema, but when biztalk builds the project to C#, it will treat the Element.Part as Element_Part.
It turns out it was a quick and easy fix for a potentially horrific problem.
What if you mapped this schema to another schema without the “.” on the receive port before it makes it to the orchestration? An extra step but I don’t think there’s a fix for this other than modifying the schema to not have “.” on names.
January 20, 2009 at 1:28 PM in reply to: BizTalk 2006 R2 WCF-basicHttp adapter configuration – Getting message in service – with null value #21538Well, for now it seems I will have to work around this issue by converting the message body to a string and manually deserializing it. This works fine and doesn’t add much code, I just don’t think this is the right way to handle it.
My Code (to deserialize to type “X12_00401_271”):
// Convert the message body to a string
StringBuilder stringBuilder = new StringBuilder();
using (System.Xml.XmlWriter writer = System.Xml.XmlWriter.Create(stringBuilder))
{
message.WriteBody(writer);
writer.Flush();
}// Remove the pieces of the string that are causing a deserialization problem (investigate later)
string content = stringBuilder.ToString();
content = content.Replace(“<s:Body xmlns:s=\”http://schemas.xmlsoap.org/soap/envelope/\”>”, string.Empty);
content = content.Replace(“</s:Body>”, string.Empty);try
{
// Attempt to deserialize the string taken from the message body to an X12_00401_271 object
X12_00401_271 responseMessage = null;using (StringReader stringReader = new StringReader(content))
{
XmlSerializer xmlSerializer = new XmlSerializer(typeof(X12_00401_271));
responseMessage = (X12_00401_271)xmlSerializer.Deserialize(stringReader);
}// TODO: Do stuff with your object
}
Catch(Exception e)
{
// TODO: Handle exception
}January 20, 2009 at 1:22 PM in reply to: Could not store Transport Type data for Receive Location to configure store. Primary SSO Server failed #21537Also, as the error message suggests, make sure that the “Enterprise Single Sign-On Service” windows service is running on server KNAIK1.
January 20, 2009 at 7:38 AM in reply to: HELP! BizTalk SQL Adapater Hanging, and Hanging, and Hanging… #21535We have the same situation – were you ever able to resolve this?
January 20, 2009 at 2:44 AM in reply to: BizTalk FTP Adapter Wired Behavior when one of subscriber is not reachable in send port group. #21533Hi Friends,
Further to my discussion I would like you to update few more points.
I have carried out few more tests and different scenarios on FTP receive and Send Handlers.
1. I would be able to replicate the same issue on three different servers and a brand new installation of BizTalk server. So I conclude myself and I strongly consider it’s not an environmental issue.
2. I have captured the per protocol statistics on BizTalk box using netstat –s option, when executing the scenario under working , dehydrated and rehydrated taken place at various stages, the netstat results are as follows. Please do let me know if you feel any info is useful to track and debug.
—————————————————————————————————————————
When all ports are connected and send ports are active no network issue, the all ftp servers are connected
—————————————————————————————————————————IPv4 Statistics
Packets Received = 1714848
Received Header Errors = 0
Received Address Errors = 10822
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 228
Received Packets Delivered = 1703798
Output Requests = 1684343
Routing Discards = 0
Discarded Output Packets = 20
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0ICMPv4 Statistics
Received Sent
Messages 61 105
Errors 0 0
Destination Unreachable 5 53
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 4 0
Echos 0 52
Echo Replies 52 0
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0TCP Statistics for IPv4
Active Opens = 2856
Passive Opens = 23201
Failed Connection Attempts = 67
Reset Connections = 59
Current Connections = 81
Segments Received = 1679622
Segments Sent = 1661115
Segments Retransmitted = 2121UDP Statistics for IPv4
Datagrams Received = 24062
No Ports = 167
Receive Errors = 0
Datagrams Sent = 20999
—————————————————————————————————————————
When one of the ftp servers is pulled off from network.
—————————————————————————————————————————
IPv4 StatisticsPackets Received = 2507948
Received Header Errors = 0
Received Address Errors = 15919
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 228
Received Packets Delivered = 2491801
Output Requests = 2455575
Routing Discards = 0
Discarded Output Packets = 20
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0ICMPv4 Statistics
Received Sent
Messages 91 139
Errors 0 0
Destination Unreachable 5 57
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 4 0
Echos 1 81
Echo Replies 81 1
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0TCP Statistics for IPv4
Active Opens = 4121
Passive Opens = 30064
Failed Connection Attempts = 166
Reset Connections = 80
Current Connections = 30
Segments Received = 2456255
Segments Sent = 2421351
Segments Retransmitted = 3264UDP Statistics for IPv4
Datagrams Received = 35398
No Ports = 204
Receive Errors = 0
Datagrams Sent = 30817
—————————————————————————————————————————
When the disconnected ftp server connected back onto network
————————————————————————————————————————–
IPv4 StatisticsPackets Received = 3581973
Received Header Errors = 0
Received Address Errors = 21777
Datagrams Forwarded = 0
Unknown Protocols Received = 0
Received Packets Discarded = 228
Received Packets Delivered = 3559974
Output Requests = 3513948
Routing Discards = 0
Discarded Output Packets = 20
Output Packet No Route = 0
Reassembly Required = 0
Reassembly Successful = 0
Reassembly Failures = 0
Datagrams Successfully Fragmented = 0
Datagrams Failing Fragmentation = 0
Fragments Created = 0ICMPv4 Statistics
Received Sent
Messages 118 163
Errors 0 0
Destination Unreachable 9 58
Time Exceeded 0 0
Parameter Problems 0 0
Source Quenches 0 0
Redirects 4 0
Echos 1 104
Echo Replies 104 1
Timestamps 0 0
Timestamp Replies 0 0
Address Masks 0 0
Address Mask Replies 0 0TCP Statistics for IPv4
Active Opens = 6190
Passive Opens = 50950
Failed Connection Attempts = 218
Reset Connections = 85
Current Connections = 92
Segments Received = 3513307
Segments Sent = 3469019
Segments Retransmitted = 4541UDP Statistics for IPv4
Datagrams Received = 46513
No Ports = 237
Receive Errors = 0
Datagrams Sent = 40224
———————————————————————————————————————————————————-3. Somehow on other scenario I gotrid of the issue by creating one more host instance. But after the execution it led so many questions.
I have created a one more host instance and hosted the weak port to process and when I disconnected the server the results are quite appropriate and all message processing was successful on other 2 active ports.
Are there any limitations on opening connections to destination on host instance?
Does disconnected port really creates dependency on ports hosted on same host instance?
My answers are YES. Here I went little further since I was under assumption to take off all weak ports on to one separate host instance but finally I can’t, I have added one independent sub pub integration point. The second send location is on “weak ports host instance” and nothing related first scenario It receives files from different receive location and sends to the different send location.
Again the results are wired due the disconnected port all messages are stopped processing within that host instance and all send ports under that host instance is non functional. As explained as I am having two active ports hosted on one send handler host instance and the third port is hosted on second host send handler host instance along with the new integration point.
The active send are processing still good since all send ports are active within that host instance but due to inactive one on second instance new integration point also non functional.
I have captured the logs at adapter level, end result nothing is written, I have noticed on logs adapter not even opening a connection to ftp servers to process messages. So certainly I do not want to create “1 to 1” send port to and host instance to host the same. I am just leaving this challenge to adapter development team really suspecting how the adapter manages out going connections on ftp adapters? How the inactive connections are managed?
So I can’t take a direction to change my architecture to move weak send ports on different host instance.
4. I have changed the configuration of FTP send port as per the few discussion went on various BizTalk sites.
“QUIT after put” tried this setting, eventually noticed a change in log files adapter terminates the connection after sending a message successfully and noticed the same on FTP server log closing the connection on delivery of every successful message.
Still no use same old story. But this is quite expensive for BizTalk Adapter to establishing connection and closing per each document delivery. Any how this setting is not help for my scenario and issue.
Today I will be working on fine-tuning host advanced properties and Microsoft BizTalk Server 2006 R2 Management Pack, will update you any pro and cons on my later discussion notes.
Thanks,
-Rajesh Gorla.
Hi I got over the problem.
Now the error i get is
<code>
The Messaging Engine failed while executing the inbound map for the message coming from source URL:”C:\Documents and Settings\sharmas\My Documents\Visual Studio 2005\Projects\CareFirst\CareFirst\IN\*.xml” with the Message Type “CarefirstHullClient”. Details:”Document type “http://schemas.xyz.com/ISA/1.0/core/rt2#Records” does not match any of the given schemas. ”
</code>
I presume its the xml file not matching with the destination schema.
I m using XSLT as well.
Srini
January 20, 2009 at 12:33 AM in reply to: Could not store Transport Type data for Receive Location to configure store. Primary SSO Server failed #21531Kiran,
Check the system date. This is caused due to the change in system date as not current date.
Just found a solution to the problem I was having, in case any others have a similar problem.
You need to set up a conditional loop to get the information. To accomplish this, use the looping functoid over the element you are getting the information from. In the example above, loop over the name element because if there is not a name, then really the person doesn’t exist. You could on the other hand have a name without a DoB, that’s why you loop over name. So now you should have a loop over the name working properly with the correct number of names in the source. The tricky part is getting the other details and dob.
To accomplish this part, you need to set up a condition. So, if name exists, then map the information from dob and OtherPersonalDetails. Pull the “logical existence funtoid” and place on the grid. Draw a line from the name record to the existance functoid. Now drag as many “value mapping” functoids as you need. Lets say there are 2 personal details: eye color and hair color. And you need dob, so you will need 3 value mapping functoids. Place these funcoids just to the right of your logical existence. Draw a line from the logical existence to each of the value mapping funcoids. Next, draw the line from your element in the source to the corresponding value mapping functoid. Finally, draw your lines from the value mapping functoids to your destination.
I hope this helps. If there are any questions, please post a reply. I should be notified and I’ll see if I can help in any way.
Hi, not sure from your description if you’ve already done these steps: usually you define a flat file schema for your txt file. This will defile how the flat file gets transformed to XML. Then create a pipeline with the flat file disassembler component in it that references the flat file schema you created. If the output of the flat fiel schema is not exactly in the XML format you want you can create your destination schema and create a map between the flat file schema and the destination xml schema. Tthen deploy the solution and on your receive port select the pipeline you created and not the pass thru receive one. On the send port add a filter under the Filters tab on the send port configuration so that it filters on the receive port name (BTS.ReceivePortName = your receive port name), or on the flat file message type.
Hope this helps!
Thiago Almeida
http://connectedthoughts.wordpress.com
January 19, 2009 at 9:51 AM in reply to: Transmitting .net class type from one application to WCF service via BizTalk orchestration #21527As you probably know, WCF uses XML and SOAP as the underlying protocol. If you are working directly between two .NET endpoints WCF will hide the XML serialization for you. When BizTalk is used it works directly with the XML payload provided by WCF.
You should learn how to use BizTalk tracking so that you can observe the XML messages.
January 19, 2009 at 2:50 AM in reply to: Transmitting .net class type from one application to WCF service via BizTalk orchestration #21524thanks for your reply. i m new to biztalk and what I have understood till is maps only allows to do message mapping between schema messages.
in this case my message type is .net class, so when trying to view message namespace of the message i created in my biztalk project (of type .net class) it does not allow to.
kindly advice how can I do mapping in that case.
January 19, 2009 at 1:00 AM in reply to: BizTalk 2006 R2 WCF-basicHttp adapter configuration – Getting message in service – with null value #21523Not yet, didn’t touch that code for couple of days.
Now I return to it, we’ll see. [:)]
Thanks Walter, I found this.
XslTransformException
———————
Cannot find the script or external object that implements prefix ‘http://schemas.microsoft.com/BizTalk/2003/ScriptNS0’.<xsl:variable name=”var:v1″ select=”ScriptNS0:RunStoredProcedure("D:\Runtime\Conn\EAI_Params.xml" , "CF_Timer_Update")” />
-
AuthorPosts