Direct-Bound Send Shape blows-up with Inner exception: Input string was not in a correct format. (FormatException)

Home Page Forums BizTalk 2004 – BizTalk 2010 Direct-Bound Send Shape blows-up with Inner exception: Input string was not in a correct format. (FormatException)

Viewing 1 reply thread
  • Author
    Posts
    • #21191

      Hi,

         I’m sending a message to a direct bound request/response port to call our own internal ExceptionHandler.  I’ve built my message, written to a trace file and it looks fine and validates.  However, the SEND shape is blowing-up with this message.

       Description:
      Uncaught exception (see the ‘inner exception’ below) has suspended an instance of service ‘TMAC.LaSalle.BizTalk.Orchestrations.orchRcvDocsFromLaSalle(37b4c739-2b9e-ccf7-45aa-a6bf4a1bb7b7)’.
      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: 504b63de-8e2c-475f-a474-a840703d7de9
      Shape name: Send_1
      ShapeId: 7ccdc612-8dbc-4a18-b28c-a2b84676ae8f
      Exception thrown from: segment 5, progress 18
      Inner exception: Input string was not in a correct format.
             
      Exception type: FormatException
      Source: mscorlib
      Target Site: Void StringToNumber(System.String, System.Globalization.NumberStyles, NumberBuffer ByRef,
      System.Globalization.NumberFormatInfo, Boolean)
      The following is a stack trace that identifies the location where the exception occured

         at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
         at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
         at System.Xml.XmlConvert.ToInt32(String s)
         at Microsoft.XLANGs.RuntimeTypes.XmlHelpers.ParseString(String s, Type targetType, Boolean throwIfNotParsed)
         at Microsoft.XLANGs.RuntimeTypes.XmlHelpers.ChangeType(Object val, Type targetType)
         at Microsoft.XLANGs.Core.XMessage.GetContentProperties()
         at Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.PrepareMessage(XLANGMessage msg, IList promoteProps, IList toPromote)
         at Microsoft.BizTalk.XLANGs.BTXEngine.BTXXlangStore.PersistMessageState(XLANGMessage msg)
         at Microsoft.XLANGs.Core.XMessage.PrePersist(Boolean dehydrate, IStateManager state)
         at Microsoft.XLANGs.Core.ReferencedMessages.PrePersist(Boolean dehydrate, Context state)
         at Microsoft.XLANGs.Core.Context.PrePersist(Boolean dehydrate, Context state)
         at Microsoft.XLANGs.Core.Context.PrePersist(Boolean dehydrate, XlangStore store)
         at Microsoft.XLANGs.Core.ExecutingSubStates.PrePersist(Boolean dehydrate, Context ctx)
         at Microsoft.XLANGs.Core.Context.PrePersist(Boolean dehydrate, Context state)
         at Microsoft.XLANGs.Core.Context.PrePersist(Boolean dehydrate, XlangStore store)
         at Microsoft.XLANGs.Core.ExecutingSubStates.PrePersist(Boolean dehydrate, Context ctx)
         at Microsoft.XLANGs.Core.Context.PrePersist(Boolean dehydrate, Context state)
         at Microsoft.XLANGs.Core.ServiceContext.PrePersist(Boolean dehydrate, Context state)
         at Microsoft.XLANGs.Core.Service.PrePersist(Boolean dehydrate, Context ctx)
         at Microsoft.XLANGs.Core.Service.Persist(Boolean dehydrate, Context ctx, Boolean idleRequired, Boolean finalPersist, Boolean bypassCommit, Boolean terminate)
         at Microsoft.XLANGs.Core.LongRunningTransaction.PendingCommit(Boolean ignore, XMessage msg)
         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 TMAC.LaSalle.BizTalk.Orchestrations.orchRcvDocsFromLaSalle.segment5(StopConditions stopOn)
         at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)

      I’ve checked all my promoted fields, and the values all seem to match the proper type.

      Any ideas?
      Thanks,

      Neal Walters

       

    • #26572

      I have no idea

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.