惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

雷峰网
雷峰网
B
Blog
博客园_首页
云风的 BLOG
云风的 BLOG
S
SegmentFault 最新的问题
罗磊的独立博客
Jina AI
Jina AI
C
Check Point Blog
Martin Fowler
Martin Fowler
J
Java Code Geeks
博客园 - 司徒正美
美团技术团队
MongoDB | Blog
MongoDB | Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
U
Unit 42
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 叶小钗
博客园 - 三生石上(FineUI控件)
小众软件
小众软件

博客园 - 徐中

[BTS]a non-serializable object type 'System.Xml.XmlNode varXmlNode' can only be declared within an atomic scope or service [BTS] BizTalk WCF-SQL Adapter 高级应用 [BTS] BizTalk EDI character set and separator settings [ThingWorx] Install Guideline [ThingWorx] Install PostgreSQL Issue [BTS] BizTalk EDI AS2 Error 1 [BTS] BizTalk With EF [BTS] Exception occurred when persisting state to the database [BTS] MSDTC [BTS] The value "" for the property InboundId is invalid [Android] Android Sutdio on Surface Pro 3 [RabbitMQ] AMQP close-reason, initiated by Library, code=541 [RabbitMQ] Connection failed [BTS] The adapter "SQL" raised an error message. Details "The Messaging Engine is shutting down. ". [BTS]The join order has been enforced because a local join hint is used.;Duplicate key was ignored.". [BTS] The external credentials in the SSO database are more recent. [BTS] SQL Adapter. New transaction cannot enlist in the specified transaction coordinator [BTS] WCF-SAP adapter [BTS] Deploy Command
[BTS] WCF-SQL : You can only specify the READPAST lock in...
徐中 · 2022-09-09 · via 博客园 - 徐中

Issue

The adapter "WCF-SQL" raised an error message. Details "Microsoft.ServiceModel.Channels.Common.AdapterException: You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels.. Endpoint Address - mssql://sqlserver//BTSTraceLog?InboundId=BizTalk_GR ---> System.Data.SqlClient.SqlException: You can only specify the READPAST lock in the READ COMMITTED or REPEATABLE READ isolation levels.

   at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)

   at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)

   at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)

   at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()

   at System.Data.SqlClient.SqlDataReader.get_MetaData()

   at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)

   at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite)

   at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)

   at System.Data.SqlClient.SqlCommand.ExecuteScalar()

   at Microsoft.Adapters.Sql.ExecutionHelper.ExecuteScalar(SqlCommand sqlCommand, TimeoutHelper timeoutHelper)

   at Microsoft.Adapters.Sql.SqlAdapterInboundHandler.Polling_WaitForMessage(TimeoutHelper timeoutHelper)

   at Microsoft.Adapters.Sql.SqlAdapterInboundHandler.WaitForMessage(TimeSpan timeout)

   --- End of inner exception stack trace ---

   at Microsoft.Adapters.Sql.SqlAdapterInboundHandler.WaitForMessage(TimeSpan timeout)

   at Microsoft.ServiceModel.Channels.Common.Channels.AdapterInputChannel.WaitForMessage(TimeSpan timeout)

   at System.ServiceModel.Dispatcher.InputChannelBinder.WaitForMessage(TimeSpan timeout)

   at System.ServiceModel.Dispatcher.ErrorHandlingReceiver.WaitForMessage()".

Solution

Check the TSQL in WCF-SQL Receive Location Properties.  Remove "with (readpast) " in  the TSQL script.