SharePoint 2010 FreeTextSqlQuery “Your query is malformed. Please rephrase your query.”

后端 未结 1 1239
陌清茗
陌清茗 2021-01-28 11:44

I am attempting to run a FullTextSqlQuery. But I keep getting the error \"Your Query is malformed\". Any ideas on what is causing it to break?

       FullTextSq         


        
相关标签:
1条回答
  • 2021-01-28 12:31
    • removing the "Portal.." from the query solved the "Your query is malformed" error.

      string fromClause = "FROM portal..SCOPE() ";

    • setting the rowlimit to int.MaxValue, was causing an error to be thrown: This was causing an error "Exception from HRESULT: 0x80040E01"

      sqlQuery.RowLimit = int.MaxValue;

    • removing the "Title ASC" from the order by clause, prevented the error "Exception from HRESULT: 0x80040E60". string

      orderByClause = "ORDER BY Rank DESC, Title ASC";

    0 讨论(0)
提交回复
热议问题