SalesforceFoundation / NPSP

The current version of the Salesforce.org Nonprofit Success Pack
http://www.salesforce.org/nonprofit/nonprofit-success-pack/
BSD 3-Clause "New" or "Revised" License
623 stars 361 forks source link

Customizable Rollups UI Error When Einstein Opportunity Insights is Enabled #4022

Closed jesslopez-sf closed 4 years ago

jesslopez-sf commented 5 years ago

When Einstein Opportunity Insights is enabled, the Customizable Rollups UI returns an error when attempting to load an existing rollup or create a new one: "Error displaying the Rollup List index out of bounds:0"

screen shot 2019-01-29 at 4 00 54 pm

The error occurs in Line 479 of CRLP_RollupUI_SVC. fieldObject.put('referenceTo', dfr.referenceTo[0].getDescribe().name);

Most fields of type Reference have a [0] referenceTo item, but this error was occurring when a field called "topinsightid" was encountered. This field is specific to Einstein Opportunity Insights. We aren't excluding it because it doesn't contain __system in the name (line 471).

screen shot 2019-01-29 at 4 02 25 pm

Stack Trace: screen shot 2019-01-29 at 4 02 50 pm

jesslopez-sf commented 5 years ago

**Lurch: Add

LurchTheButler commented 5 years ago

Tracking W-030987

coriobriensfdo commented 5 years ago

Workaround:

1) From NPSP Settings > Customizable Rollups, I disabled the Customizable Rollups option. 2) From Setup > Einstein > Einstein Sales > Assisted Setup, I disabled Einstein Opportunity Insights, and Einstein Opportunity Scoring. All other Insights I left enabled. 3) From NPSP Settings > Customizable Rollups, I enabled the Customizable Rollups option. Thereafter, I was able to open existing rollups and create new rollups without the error.

coriobriensfdo commented 5 years ago

Another comment

salesforce-org-metaci[bot] commented 4 years ago

Included in beta release 3.176 (Beta 18)

salesforce-org-metaci[bot] commented 4 years ago

Included in production release 3.176