[AI Search] Error Message "Failed to publish Dictionary, please check log for more details" shown after making changes to the AI Search Dictionaries, such as synonyms, stop words or typo handling and clicking on "Publish" button on the Search ProfileIssue After making changes to the AI Search Dictionaries, such as setting up synonyms, stop words or typo handling entries that are linked to the Search Profile, when clicking on the Publish button on the AIS Search Profile page, it returns the error message "Failed to publish Dictionary, please check log for more details".CauseWhen setting up synonyms, stop words or typo handling entries in the AI Search Dictionaries linked to an AIS Search Profile, the payload field has strict formatting and any typo errors will result in an error in the logs when publishing the AIS Search Profile.Resolution1. In the System Logs > System Log > Error log module, search for "NOW-AI_SEARCH-DICTIONARY_SYNC_ERROR" in the Message field 2. In the error log, the Additional information it will contain the sys_id of the record that caused the error (i.e. Invalid payload string format for term 63696c7d1b8b1510029ddce9bc4bcb55) 2022-11-11 03:35:46 (895) Default-thread-8 46006F9A1B4F5110029DDCE9BC4BCB33 txid=7476e7121b8f SEVERE *** ERROR *** NOW-AI_SEARCH-DICTIONARY_SYNC_ERROR: Additional information - Invalid payload string format for term 63696c7d1b8b1510029ddce9bc4bcb55, com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 19 path $[1]com.glide.ais.error.SearchRuntimeException: NOW-AI_SEARCH-DICTIONARY_SYNC_ERROR: Additional information - Invalid payload string format for term 63696c7d1b8b1510029ddce9bc4bcb55, com.google.gson.JsonSyntaxException: com.google.gson.stream.MalformedJsonException: Unterminated string at line 1 column 19 path $[1] 3. Open the record in table [ais_dictionary_term] with the sys_id in the error message 4. Update the Dictionary Term and fix the issue. A typical issue is when the payload value is missing the square brackets [] or there are unbalance quotes "" or missing commas. 5. Once fixed, try to re-publish the AIS Search Profile and if the same error occurs, check the sys_id of the record in the error to ensure it adheres to the strict formatting. If the issue persists, raise a new case with ServiceNow Technical Support.