Forum Replies Created
-
AuthorPosts
-
How are you constructing the message? The error states that you have a promoted property named MessageContent, and that the value of the property is too long (greater than 256 characters). Promoted properties must be 256 characters or less.
Hi Gurus,
I managed to use the .SVC file into my Orchestration and I am using Construct Message which inturn is using an expression shape.But when the msgs reaches the send port(WCF send port) I receive the following error msg.I imported the bindinginfo.xml at the appiication in the administration console.
Event Type: Error
Event Source: XLANG/s
Event Category: None
Event ID: 10024
Date: 8/7/2008
Time: 10:46:29 PM
User: N/A
Computer: SCCUTL02-SDC
Description:
Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘Module_1.BizTalk_Orchestration1(bf3feb58-b47e-e0ee-8b1e-bec580b77e3d)’.
The service instance will remain suspended until administratively resumed or terminated.
If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
InstanceId: 6fdbd194-f912-4da0-925a-69b286527c9b
Shape name: Send_MTSWS_req
ShapeId: 455d2c21-e892-4daf-97e6-7bb36cf90677
Exception thrown from: segment 1, progress 12
Inner exception: The value assigned to property ‘http://MeansTesting.PropertySchema.PropertySchema:MessageContent’ is not valid: ‘<MTQuery><PatientNRIC>S1234567D</PatientNRIC><PatientAddress><FloorNumber>123</FloorNumber><UnitNumber>06-81</UnitNumber><PostalCode>760123</PostalCode>
</PatientAddress><Unborn>S</Unborn><CitizenshipStatus>P</CitizenshipStatus><DateOfValidity>2008-04-28</DateOfValidity><TierNumber>2</TierNumber><RetestIndicator>N</RetestIndicator><HealthcareFacility>1234567890</Healthc’.
Exception type: InvalidPropertyValueException
Source: Microsoft.XLANGs.BizTalk.Engine
Target Site: Microsoft.BizTalk.Agent.Interop.IBTMessage PrepareMessage(Microsoft.XLANGs.BaseTypes.XLANGMessage, System.Collections.IList, System.Collections.IList)
The following is a stack trace that identifies the location where the exception occuredat Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.PrepareMessage(XLANGMessage msg, IList promoteProps, IList toPromote)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.WriteMessageState(IBTPEPInfoLookup pepLookup, Guid portId, XLANGMessage msg, Segment seg, String opname, String url, IList promoteProps, Boolean track, IList toPromote)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXLogicalPortBinding.SendMessage(XLANGMessage msg, XlangStore store, Segment seg, OperationInfo op, IList additionalProps, IList toPromote, Boolean ignoreRoutingFailure)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXPortBase.SendMessage(Int32 iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[] followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt, Segment seg, ActivityFlags flags)
at Microsoft.XLANGs.Core.PortBase.SendMessage(Int32 iOperation, XLANGMessage msg, Correlation[] initCorrelations, Correlation[] followCorrelations, SubscriptionWrapper& subscriptionWrapper, Context cxt, Segment seg)
at Module_1.BizTalk_Orchestration1.segment1(StopConditions stopOn)
at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
Additional error information:The property “MessageContent” has a value with length greater than 256 characters.
Exception type: COMException
Source:
Target Site: Void Promote(System.String, System.String, System.Object)
The following is a stack trace that identifies the location where the exception occuredat Microsoft.BizTalk.Message.Interop.IBaseMessageContext_RawMapping.Promote(String strName, String strNameSpace, Object obj)
at Microsoft.BizTalk.Message.Interop.MessageContext_ManagedViewOfNative.Promote(String strName, String strNameSpace, Object obj)
at Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.PrepareMessage(XLANGMessage msg, IList promoteProps, IList toPromote)For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
Any Pointers?
Sorry Nick,I am not bale to attach the mapper screen shot.

Hi Nick,
Yes the webservice that I am consuming is taking a string in the request message.But there is a catch here that the request msg(say has 5 fileds) has to go into one field of the webservice being Consumed.Please find attached the mapper that I am trying to explain
Thank you ruselw.
I was unable to receive response while using SOAP adapter but I am receiving response from the web service after replacing SOAP adapter with WCF-BasicHttp adapter but I don’t know the exact problem why SOAP adapter is not receiving messages.
There certainly is 🙂
Drop a Scope shape down in the Orchestration designer and set the Transaction Type to None. Then Right-Click on the Scope shape and select New Exception Handler. You have now created a Try/Catch block.
I use this extensively to publish Failed Messages to the Message Box and then have a Failed Message Handler Orchestration that subscribes to these messages and sends me an email with the details of the error.
GMK,
To refer back to my previous point about messages in HAT/BizTalk Admin Console: You will see suspended orchestration instances in the BizTalk Admin
Console; terminated instances will not appear as they have ‘completed’. Furthermore, an orchestration will not terminate unexpectedly without raising some error in the Event Log.I’m presuming that the logical port on the orchestration that calls K2 is a request/response port and that you have a receive shape connected to the response element of the [logical] port? I’m further presuming that the orchestration is dehydrating while waiting for the response to come back in? and that the orchestration is terminating while waiting for the response?
If this is the case and you are experiencing intermittent problems, I would suggest that you are having infrastructure issues – are you seeing anything in the event log to suggest that the orchestrations are being terminated by an external process, are creating zombies or BizTalk is losing its connection to the database?
If you could provide some examples of the errors you are experiencing around the time that the routing failure occurs, that would be helpful.
Cheers, Nick.
Did you install the SDK when performing the installation? It can be added through the installation wizard (Control Panel -> Add/Remove Programs); alternatively, try a repair of the installation.
Nick.
The XSD file is the schema that you need to send to the web service. The ODX file is a blank orchestration containing a multi-part message type (containing a single part with the type of the XSD). You don’t have to use this orchestration, but you can if you want to because it is good to wrap all your messages in multi-part messages (but not required to call the web service). The 2 XML files are binding files (1 WCF-WSHttp and 1 WCF-Custom). When you deploy your orchestration, import one of the binding files and it will create and configure the WCF send port for you. I usually just use the WCF-WSHttp file and delete the custom file. If you need more information, here is a walkthrough on consuming a service using the WCF-BasicHttp adapter: http://msdn.microsoft.com/en-us/library/bb246019.aspx. I think you are using the WCF-WSHttp adapter, but the setup is the same.
The problem is that Listen shapes does not solve anything in my
case, when i put a listen shape i have to wait a response from 2
destinations, but in my case i’m waiting response just from K2, so
there are no need for Listen Shapes.Even if we put a
certain delay in the WorkFlow nothing will change since once the
orchestration send the request to K2 it will automatically have the
“Dehydrated” staus. The problem is that we are not able to know if the
Orchestration has disapeared on the moment it was still active or
dehydrated.That’s why we need to search in the History to see at which status it has been disapeared from the administration Console.
Thanks a lot
GMK
Dhaval,
See http://www.biztalkgurus.com/forums/p/9595/18965.aspx#18965 or do a BizTalk Guru’s / Google search for parallel convoy.
Nick.
[quote user="gmk51080"]
This is our case that we are facing without being able to describe more about the problem. The Problem is not occurring in a regular way.
[/quote]
This sounds like ait could be a timing issue that a Listen shape could fix. Think about it. Sometimes K2 responds quickly and everything works as it should. Other times K2 take a bit too long to respond and the Orchestration dehydrates.
Reproducing this problems is nearly impossible, because it’s not something you can control.
Try using a Listen shape and let us know if it corrects the problem.
You could just generate a new GUID to use as the activity ID, and then store the invoice # as a separate field. Not sure if this would solve your problem…
Thank you for your reply Ruselw,
I change the API and it works fine now. Its funny, even SDK sample “BAMFROMEXPRESSION” throwing same exception. I am not sure why.
One more question, Would it be possible to handle duplicates in BAM? so if i receive duplicate invoices from same vendor, then i want to show that in the BAM screen. For example, if I use Invoice# as ActivityID, then BAM will fail when i receive dups. Would it be possible to handle this failure and show as dups?
Hi,
You are totally right, we are not using listen shapes, all what we are doing is to send a Request to K2 in order to create a new Task in K2 ( using the K2 / BizTalk adapter provided by K2 Team), Once the K2 Task is closed in K2 it send a response to BizTalk in order to continue the orchestration.
The weird issue in this case is that we are not able to reproduce the error when we need it , and we are observing this error on our client’s site and not on our development environment.
Most of the Orchestration do not break and works as it should work and completes normally, suddenly and without being able to understand the reasons some of the orchestration are disapearing.
This is our case that we are facing without being able to describe more about the problem. The Problem is not occurring in a regular way.
We can have aroun 300 orchestration normally completed and 1 or 2 or even 10 orchestrations disapearing.
regards.
GMK
-
AuthorPosts