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

推荐订阅源

V
Visual Studio Blog
爱范儿
爱范儿
GbyAI
GbyAI
博客园 - 叶小钗
Last Week in AI
Last Week in AI
Jina AI
Jina AI
Microsoft Security Blog
Microsoft Security Blog
云风的 BLOG
云风的 BLOG
C
Check Point Blog
H
Help Net Security
P
Proofpoint News Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
大猫的无限游戏
大猫的无限游戏
H
Hackread – Cybersecurity News, Data Breaches, AI and More
B
Blog RSS Feed
Y
Y Combinator Blog
U
Unit 42
T
Tailwind CSS Blog
MyScale Blog
MyScale Blog
N
Netflix TechBlog - Medium
S
SegmentFault 最新的问题
J
Java Code Geeks
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

博客园 - 徐中

[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.