Quantcast
Channel: BizTalk Server General Forum
Viewing all articles
Browse latest Browse all 872

System.ArgumentNullException: Value cannot be null. Parameter name: key ----- wcfsql adapter issue

$
0
0

I am getting System.ArgumentNullException: Value cannot be null. Parameter name: key when I try to insert a record into a simple table using a stored procedure.  I thought I might have ad an issue with the primary key of the table so I made a new table witout any keys and received the same message.  I included the SP, all of the warning message, and the actual XML message below.  

FYI: The message gets re-transmitted.

 

 

@Pro

nchar(16),

@BOL

nchar(30),

@SCAC

nchar(4)

 

AS

BEGIN

 

-- SET NOCOUNT ON added to prevent extra result sets from

 

-- interfering with SELECT statements.

 

SETNOCOUNTON;

 

-- Insert statements for procedure here

 

Select @Pro,@BOL, @SCAC

 

 

InsertINTO [dbo].tbl_BOL_Header2([pro],[BOLNum],[scac])

 

VALUES

 

 

(@Pro,@BOL,@SCAC)

 

 

END

 

 

Event Type: Warning
Event Source: BizTalk Server 2009
Event Category: (1)
Event ID: 5743
Date:  9/24/2010
Time:  2:10:59 PM
User:  N/A
Computer: ratesrv.main.dataserv.net
Description:
The adapter failed to transmit message going to send port "SendPort1" with URL "mssql://server5//AUDIT?FailoverPartner=AUDIT". It will be retransmitted after the retry interval specified for this Send Port. Details:"System.ArgumentNullException: Value cannot be null. Parameter name: key
   at System.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
   at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.CreateChannelFactory[TChannel](IBaseMessage bizTalkMessage)
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2.InitializeValues(IBaseMessage message)
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfClient`2..ctor(IBaseMessage message, WcfTransmitter`2 transmitter)
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfTransmitter`2.GetClientFromCache(String spid, IBaseMessage message)
   at Microsoft.BizTalk.Adapter.Wcf.Runtime.WcfAsyncBatch`2.BatchWorker(List`1 messages)".

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

************* Actual Message *****************

<ns0:InsertBOLHead xmlns:ns0="http://SQLAdapterStoredProcedure.BOLHead"><ns0:InsertBOLHead Pro="0080450732" BOL="0001" SCAC="EXLA"></ns0:InsertBOLHead></ns0:InsertBOLHead>


Viewing all articles
Browse latest Browse all 872

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>