
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 11:05 AM
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?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 10:14 PM
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":[]}}
Thanks & Regards,
Vasanth
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-19-2022 10:14 PM
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":[]}}
Thanks & Regards,
Vasanth

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2022 09:21 PM
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!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-22-2022 02:29 AM
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: