Custom Action troubleshooting
Applies to: ShrePoint Online and SharePoint On-premises
This article describes about troubleshooting steps for Crow Cayon Custom Actions.
This is a Crow Canyon App/solution and you can refer the features here: https://www.crowcanyon.info/nitro/appmanual_v2/batch-actions.html
Issue: After executing the custom action, custom action pop up window is not closing on clicking “Close” button.
Cause (specific to SharePoint On-premises):
If alternate access mapping URLs are configured for the site then the site can be accessible with different URLs. If users are not using the URL which is used to configure the custom action then this issue may happen.
If we have two different URLs for our sites i.e. URL#1, URL#2 and the site can be accessible with both the URLs. If custom actions are configured using URL#1 but if someone is using the URL#2 to open the site and tryinng to use the custom actions then this behaviour can occur.
Please use the same URL (which is used to configure the custom action) to access the sites.
Query list action is not working in Custom Actions.
This issue can happen if the target list exceeds the list view threshold limit (5000 in SPOnline) and the CAML query used in the action requires going through more than the threshold values to return the result. This is standard SharePoint limitation that we cannot run a query that requires going through more than the list view threshold number of items from a list. Query list action will try to fetch the items based on query and if list view threshold limit (i.e. 5000) is hit then it gives an exception and subsequent actions that depend on the output of this query list will not executed.
Index the column(s) that are used in the CAML query to fetch the items from the list. Go to Site Contents -> List -> List Settings-> Indexed columns.
Purpose of indexing is to reduce the number of items that SharePoint has to scan to return the query result. It is not about the actual number of matching items that are returned by the query, which will usually be much smaller in case of custom actions. For performance reasons, SharePoint will not scan more than the threshold number of items and indexed columns are used to narrow down the item range required to be scanned. If the CAML query is using multiple columns, first condition itself should return less than list view threshold number of items.
When we open custom actions from a list, the modal dialog hangs during the loading process. Following error appears in the browser console logs (press F12 to see the logs):
SCRIPT438: Object doesn’t support property or method ‘kendoUpload’
File: doOperation.js, Line: 1, Column: 33376
This issue could happen if a custom master page is used in the site that loads jQuery file without checking if there jQuery is already loaded on the page. Any custom script or web part that overrides already loaded jQuery can cause this issue.
Replace the line 1 with line 2 in the master page to check before loading the jQuery. Generally master pages loads the jQuery file from style library so we are taking this location as an example in this article (Line 1 below). If the jQuery is being loaded from a different location then please update the file path accordingly.
Go to Site Settings -> Master Pages under Web Designer Galleries -> Download the master page and replace the below line and upload it again. Once the updated master page is uploaded, publish the major version.