Search or browse our knowledge base to find answers to your questions ranging from account questions to troubleshooting error messages. The content is curated and updated by our global Support team
This article explains how to avoid the "Failed to create search index" script error during reload.
A data load may fail with:
An error occurred
Internal engine error.
The script log will show:
2017-02-28 17:17:55 Creating search index
2017-02-28 17:17:55 Failed to create search index
2017-02-28 17:17:55 Execution finished.
The cause is currently unknown. Suspected to be an App corruption caused by external influences.
Insert "Set CreateSearchIndexOnReload=0" in the load script.
Even if this is disabled during the reload, the search index will be created later after the first search request of users.
Increase the timeout value.
Rather than disabling or removing the Search Index, you can attempt to increase the timeout before the reload will error out.
To do so, you will need to modify the Qlik Sense engine settings.ini and add a customized timeout value.
Solution 1 didn't worked at all. Solutions 2-3 are not solutions, just workarounds. There is a reason why I'm recreating search index on each reload. Any real solution there?
Hello @BeeGees - I've looked through our resolved cases and option 1 through 3 has seemed to be our available solutions. If you're looking to have this investigated in detail, I would recommend logging a support ticket.
Hello @BeeGees We've added a third confirmed solution to this article (increasing the timeout).
@Sonja_Bauernfeind You've got a small mistake in your post here, Solution #4.
According to Engine Service log, default value for SearchTimeoutLimit is 40.000. Therefore, update proposed in KB does not change it. The tricky consequence is, that the setting is not even visible in log files, which can lead to a lot of detective work ("What did I do wrong?").
Nice catch, @mk_kmx - Thank you! I've edited the article.
In a multi-node environment, where will the folder mentioned in the first workaround be ----- \Apps\Search\AppID folder
will this be in the location defined for the service cluster, for the App folder?
QMC > Service Cluster > App folder
thanks
and is this related to the error
"the search index is incomplete. smart search might be slower than expected"
which sometimes prevent an app from loading properly (hub and qmc task), and which I cannot find any reference for in any community post
Hello @Ken_T
I have reviewed internal cases that we had and have seen one instance where this issue occurred and was related to disk space/ability to write additional files to the service cluster directory of /apps/Search/. So I cannot rule out that this is related and would recommend testing the solutions mentioned in this article.
If this does not resolve the issue for you, then I'd recommend logging a case so that we can investigate.
As for your first question: Correct. This is the folder you have defined in the service cluster (yourshare\Apps\Search\AppID)
I will also update the article with additional information as you requested.
All the best,
Sonja