web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

Full Text Indexes are not created

(1) ShareShare
ReportReport
Posted on by

We are using Dynamics CRM 2016 on-prem

We are looking at how to improve searching over our product catalog which has something like 150k products in it.   So I enabled full-text indexing to test the Quick Find capability.  Initially this worked but during testing I realised that although there were multiple columns specified, results are only returned for rows where a complete match can be satisfied from one column.  So for example, if I search for "Microsoft Dynamics CRM" it will not return the a row where the Vendor is "Microsoft" and the Name is "Dynamics CRM" even though both fields are in the index.  This can be verified by checking the query that is generated.

So I switched off full text indexing and created a new column which is a concatenation of all the values we are interested in so the search can be satisfied from a single field  I'm using a calculated field to do this.  I then added the field to the Quick Find find columns and switched on full text indexing again, wait 24 hours...

The system creates a bunch of full text indexes on a number of entities - but nothing for ProductBase.

I have now been through several cycles of disabling full text indexes, changing the find fields and re-enabling to try to determine whether it's specific to the fields selected. 

Nothing seems to work.

I have used the job editor to reschedule the Indexing Management job to try to make sure it's running and I have tried running the p_Reindex and p_ReindexAll sp's (but these don't create missing indexes they just build what's there).  The p_Reindex sp actually fails with an exception (Could not find any index named 'ThemeBase_FullText' for table 'ThemeBase'.) because the metadata in the CRM database includes entries for full text indexes that have not been created in the SQL database.

So now I'm stumped - I can find no information on how the full text indexes are managed and so I've got very little to go on to work around the issue.

Any ideas welcomed!

*This post is locked for comments

I have the same question (0)
  • awalters Profile Picture
    3,079 on at
    RE: Full Text Indexes are not created

    UGH - that does not sound fun at all.  Good luck!

  • Community Member Profile Picture
    on at
    RE: Full Text Indexes are not created

    Thanks - I have made some progress.  I eventually found an error message in a trace file which indicated that MSCRMAsyncService was trying to delete a full text index on ProductBase - as this wasn't there, it was bombing.  So created the full text index directly in SQL Management Studio (unsupported) and then forced a re-run.  This time the index was deleted and then recreated when I re-enabled FT indexes.  I think our test server is Fubar - the information CRM has about the indexes was not in sync with the database and I'm pretty sure that is true for other entities too.  So no that I have FT indexes on the ProductBase table CRM is failing to use them in its search.  I think I will need to rebuild our test server before wasting any more time on this...  Thanks for your suggestions...

  • awalters Profile Picture
    3,079 on at
    RE: Full Text Indexes are not created

    Gotcha.  Hmmm....you mentioned deleting full text indexes - did you at any point disable full text indexing completely (maybe restarting processes in between, just to be on the safe side), and then re-enabling?  It's hacky and doesn't really single out the actual issue, but might be enough to kickstart whatever had bombed into starting over...

  • Community Member Profile Picture
    on at
    RE: Full Text Indexes are not created

    Apologies, I do appear to be contradicting myself.  Some FT indexes are created, but others aren't.  ProductBase is among those that aren't.  I believe the issue may be that there is information in the metadata that is used by the MSCRMAsyncService when creating or rebuilding FT indexes that is out of sync with the SQL database.  And I am trying to figure out how to bring this information back in sync in a supported way.  Simply deleting and recreating the FT indexes has not worked.

    I have noticed that the p_Reindex sp that is used for part of the job will bomb when it fails to find an index that is in the metadata but not on the SQL server.  So it will fail to operate on the remaining indexes that do exist.  So I suspect that there is another process that is similarly poorly implemented that has bombed without finishing the job.  I am wading through the Async trace files in an attempt to figure out what it is...

    I'm not sure what this tells us - it may be a problem with ProductBase but at present the issue is affecting other tables too...

  • awalters Profile Picture
    3,079 on at
    RE: Full Text Indexes are not created

    Lol....sorry.  Totally missed that it was also your post.  I'm confused though - in the OP I thought you were saying that other indexes were fine; that it was only Products having the problem.  But then here you're saying it's happening elsewhere as well?

  • Community Member Profile Picture
    on at
    RE: Full Text Indexes are not created

    Thanks, I think you're referring to my last post.  In this case the issue is affecting full text indexes on other entities as well.  It looks as though the mechanism which creates the SQL indexes from the metadata in CRM is failing.  There don't seem to be any error messages generated, the table is not added to the ft catalog and the inexes are not created.

  • awalters Profile Picture
    3,079 on at
    RE: Full Text Indexes are not created

    There was another post recently that talked about strange behaviour around calculated fields on the Product entity - admittedly very different behaviour, but it's making me wonder if this is another instance where the Product entity has odd stuff going on that's either a bug or a strange undocumented "feature".  Sorry - this is in no way an answer, admittedly, just curiosity as to whether there's a connection.  I'll try to run some tests here later if I can grab a few moments.

    The post in question:  community.dynamics.com/.../253137

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Andrés Arias – Community Spotlight

We are honored to recognize Andrés Arias as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Community Member Profile Picture

Community Member 2

#2
Christoph Pock Profile Picture

Christoph Pock 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans