Error in creating app template with App Engine Studio

Moritaka Kanai
ServiceNow Employee
ServiceNow Employee

Hi. I'm always encountering the following error when creating an app template:

CREATE A TEMPLATE
A template can't be generated from this app.
Something from this app isn't supported in a template. Learn more about custom app templates.

According to the manual, the possible outcomes here should be "All the objects are supported", "Few objects aren't supported", or "Few objects are denied". But the error message above is none of these.

Am I missing something?

1 ACCEPTED SOLUTION

Vasantharajan N
Giga Sage
Giga Sage

To get the actual reason for not creating the template. Please invoke the API provided below in your instance with the application (that you are using to create the template) sys_id (In my case it is 77f5b557db10230002157a61399619ba)

Endpoint :- https://<instance_name>.service-now.com/api/now/templates/prescan/77f5b557db10230002157a61399619ba

Method : GET

Sample Response,

{"result":{"templatizable":false,"deny_reasons":["App has records that may not be supported: m2m_sp_dependency_css_include","App has records that may not be supported: m2m_sp_dependency_js_include","App has records that may not be supported: m2m_sp_widget_dependency","App has records that may not be supported: sp_column","App has records that may not be supported: sp_container","App has records that may not be supported: sp_css","App has records that may not be supported: sp_css_include","App has records that may not be supported: sp_dependency","App has records that may not be supported: sp_instance","App has records that may not be supported: sp_js_include","App has records that may not be supported: sp_ng_template","App has records that may not be supported: sp_page","App has records that may not be supported: sp_row","App has records that may not be supported: sp_widget","App has records that may not be supported: sys_ui_script"],"skipped_records":[]}}

find_real_file.png


Thanks & Regards,
Vasanth

View solution in original post

3 REPLIES 3

Vasantharajan N
Giga Sage
Giga Sage

To get the actual reason for not creating the template. Please invoke the API provided below in your instance with the application (that you are using to create the template) sys_id (In my case it is 77f5b557db10230002157a61399619ba)

Endpoint :- https://<instance_name>.service-now.com/api/now/templates/prescan/77f5b557db10230002157a61399619ba

Method : GET

Sample Response,

{"result":{"templatizable":false,"deny_reasons":["App has records that may not be supported: m2m_sp_dependency_css_include","App has records that may not be supported: m2m_sp_dependency_js_include","App has records that may not be supported: m2m_sp_widget_dependency","App has records that may not be supported: sp_column","App has records that may not be supported: sp_container","App has records that may not be supported: sp_css","App has records that may not be supported: sp_css_include","App has records that may not be supported: sp_dependency","App has records that may not be supported: sp_instance","App has records that may not be supported: sp_js_include","App has records that may not be supported: sp_ng_template","App has records that may not be supported: sp_page","App has records that may not be supported: sp_row","App has records that may not be supported: sp_widget","App has records that may not be supported: sys_ui_script"],"skipped_records":[]}}

find_real_file.png


Thanks & Regards,
Vasanth

Moritaka Kanai
ServiceNow Employee
ServiceNow Employee

Vasantharajan,

Thank you for your note!

In my case, the following "deny_reason" has been indicated:

<response>
<result>
<templatizable>false</templatizable>
<deny_reasons>App has records that may not be supported: sc_cat_item_producer</deny_reasons>
</result>
</response>

After deleting the relevant row from sc_cat_item_producer table, the template creation has successfully been completed.

Thanks!

Moritaka Kanai
ServiceNow Employee
ServiceNow Employee

Since the error cause "sc_cat_item_producer" is one of the supported features and metadata in custom templates according to docs, I have filed another question:

What if the deny reason of creating an AES template is one of the supported features and metadata in...