System.Data.SqlClient.SqlException: The error description is 'XML document must have a top level element.'
Problem: Generally when we auto generate Schema using biztalk WCF consume adapter service with help of the category Strongly-Typed Procedure then received following error-
TypedProcedure/dbo/ProcedureName' ---> System.Data.SqlClient.SqlException: The error description is 'XML document must have a top level element.'.
Could not find prepared statement with handle 0.
Solution: Open your store procedure and put FMTONLY in the following way before temporary table
-- end temp table code here
!! Keep visiting BizTalkLive !!
TypedProcedure/dbo/ProcedureName' ---> System.Data.SqlClient.SqlException: The error description is 'XML document must have a top level element.'.
Could not find prepared statement with handle 0.
Solution: Open your store procedure and put FMTONLY in the following way before temporary table
DECLARE @FMTOnlySet bit;
SELECT @FMTOnlySet = 0 WHERE 1 = 1
IF @FMTOnlySet IS NULL
IF @FMTOnlySet IS NULL
SET FMTONLY OFF;
--
start temp table code here
-- end temp table code here
IF @FMTOnlySet IS NULL
SET FMTONLY ON;
Excellent article and with lots of information. I really learned a lot here. Do share more like this
ReplyDeleteWebsite Design Elements
Components Of Web Design
Extraordinary Post!!! gratitude for imparting this post to us.
ReplyDeleteAndroid Training in Chennai
Android Online Course
Android Training in Bangalore