Property doesn't exist or is used in a manner inconsistent with schema settings

I got this error when trying to do the following query,

 


        public static List<SPListItem> GetListItemsFromFTSQuery()
        {
            string qry = HttpContext.Current.Request.QueryString["k"];
            List<SPListItem> items = new List<SPListItem>();
            DataTable retResults = new DataTable();

            using (SPSite site = SPContext.Current.Site)
            {
                FullTextSqlQuery fts = new FullTextSqlQuery(site);
                fts.QueryText = "SELECT owsItemURL,Title,FileExtension,ContentType,Created,LastModifiedTime,Path FROM SCOPE() " +
                  "WHERE (CONTAINS(Path,'\"/Lists/ \"')) "+
                  "and (CONTAINS(Title," + qry + "))  ";
                fts.ResultTypes = ResultType.RelevantResults;
                fts.RowLimit = 300;

                ResultTableCollection rtc = fts.Execute();
                if (rtc.Count > 0)
                {

                    using (ResultTable relevantResults = rtc[ResultType.RelevantResults])
                        retResults.Load(relevantResults, LoadOption.OverwriteChanges);

                    foreach (DataRow row in retResults.Rows)
                    {
                        if (row["ContentType"].ToString() == "Item")
                        {
                            using (SPSite lookupSite = new SPSite(row["owsItemUrl"].ToString()))
                            {
                                using (SPWeb web = lookupSite.OpenWeb())
                                {
                                    SPFile file = web.GetFile(row["owsItemUrl"].ToString());
                                    items.Add(file.Item);
                                }
                            }
                        }
                    }
                }
                return items;
            }
        }

already tried changing the assembly form sharepoint.search to office.server.search as on another forum post but it didnt solve the problem
SimbiosAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Minesh ShahSharePoint & all about itCommented:
This generally comes if
the metadata property is not mapped in SSP.
map it and run an increamental/full crawl and will work.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.