How to add and troubleshoot Custom Grammars in ControlPoint

How to add and troubleshoot Custom Grammars in ControlPoint

Within the ControlPoint console, go to Administration > Custom Grammar

You will need to create a new grammar for each entity within your grammar file.

 

img1.PNG

 

The Description fields are what will be displayed in ControlPoint when adding the Grammar to your repository:

img2.PNG

 

 

 

 

 

 

 

Ensure the Grammar File Name is correct and the .ecr file has been copied over to the Framework Eduction folder.

If the grammar file name is incorrect or it has not been copied over, you will see an error in the Connector Framework import.log during ingestion:

Error: Task (type: POST) failed with error: Error during call to lua function 'handler' in script 'lua/Eduction.lua': Open file error. eduction\trgrammar.ecr: Success.

 

Ensure the Grammar Entity Name is correct by looking at the corresponding XML file. It should be in the form of GrammarName/EntityName.

If you enter this in wrong, you will see an error like this in the Connector Framework import.log during ingestion:

Error: Task (type: POST) failed with error: Error during call to lua function 'handler' in script 'lua/Eduction.lua': Entity "trgrammar/hobbies_en" not found. (212): Success.

This error suggests you have added the Grammar Entity Name as trgrammar/hobbies_en rather than KV/hobbies_en

 

You can check the Grammar Entity Names in the [ControlPoint].[dbo].[CPGrammarEntity] SQL table:

img3.jpg

Labels (1)

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2020-05-08 22:24
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.