This is so strange, when I first visit this record, everything is normal, but refresh the page to check again, only to report errors, over and over again.I did not find the relevant situation on the document, and the method of reporting errors was also located in the js file, but since it is a system file, I do not know how to modify it properly.
Stack Trace
TypeError: this.dataSet.getDataSetCapabilities is not a function at Mf.generateColumnDefinition (https://bamboo-d365ce-dev.crm5.dynamics.com/%7b638275441870000158%7d/webresources/cc_Microsoft.PowerApps.PowerAppsOneGrid/PowerAppsOneGrid.js:2:2202155) at Mf.generateColumnDefinitions (https://bamboo-d365ce-dev.crm5.dynamics.com/%7b638275441870000158%7d/webresources/cc_Microsoft.PowerApps.PowerAppsOneGrid/PowerAppsOneGrid.js:2:2206955) at new Mf (https://bamboo-d365ce-dev.crm5.dynamics.com/%7b638275441870000158%7d/webresources/cc_Microsoft.PowerApps.PowerAppsOneGrid/PowerAppsOneGrid.js:2:2190819) at zf (https://bamboo-d365ce-dev.crm5.dynamics.com/%7b638275441870000158%7d/webresources/cc_Microsoft.PowerApps.PowerAppsOneGrid/PowerAppsOneGrid.js:2:2227992) at ra (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:58877) at Uu (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:111313) at El (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:98325) at kl (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:98253) at xl (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:98116) at pl (https://content.powerapps.com/resource/uci-infra/scripts/vendor.07658634e8fa94d95fa7b116152658b3.js:9:95103)
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
The issue I've found with the Power Apps grid control suggested in other posts (including from @donalmc) is that it requires the (preview) child feature to work, which isn't appropriate.
I've tried it with the Power Apps Read Only Grid control and that looks to give an appropriate subgrid, but it's difficult to test as once an environment gets past the error, it doesn't reoccur when switching back to the old read only grid. The way around this is to use impersonation with the Level Up browser extension.
The remaining issue is that the 'Show As' menu in the subgrid allows switching back to the 'Read Only Grid', and once this is done, the subgrid command bar is no longer shown and the record has to be refreshed. There is no way of removing the current default Read Only Grid via configuration.
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
Just adding my voice to this discussion to confirm that some of the users at my workplace are experiencing this issue intermittently now as well.
The issue seems to appear somewhere between zero and 5% of the time, and even then only when using the "New Look" User Interface. Reverting to the "Old Look" UI resolves the issue as/when it occurs for any given user.
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
I was experiencing this same issue on a custom entity form with a documents subgrid. I was able to resolve it by adding the "Power Apps grid control" component to the subgrid in the form editor.
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
Same here - I set up a document tab and a couple of users get the same error.
The ones who have reported it are using the New Look, but there are other users who have the New Look turned on who don't have an issue (eg I just tested and it's fine for me). I've asked those who get the error with the New Look to confirm it works when they go back to the old UI.
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
We also have this same problem, occurring only when the New Look is enabled. A couple of weeks ago it seemed to be fixed, but now it appears again. Ctrl-F5 does not help. Issue was reported several times to Microsoft through the "Provide Feedback to Microsoft" form when reverting back to the old look.
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
Question 1 Has anyone found a solution for this? We keep getting random reports of users having these issues.
Microsoft claims the error only happens when you have the "new look" enabled, to me it seems this is irrelevant so far. Refreshing the browser (CTRL-F5) also seems to fix the issue for a while
Question 2: We are using a little bit of custom code to always show the documents tab on the entity so users don't have to open the "related" menu on a record before being able to go to the documents, but have not been able to confirm that this is part of the issue. Are you using similar code?
An error occurred in Sales and SharePoint integration:getDataSetCapabilities is not a function
I'm getting this same error but it's only showing for some users.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.