SFDO-Community/Salesforce-Indicators

Can't add bundle to the page layout when an Indicator Item references a field in an Suspended Managed Package

JodieM opened this issue · 1 comments

JodieM commented

This is a weird one but adding it here for a future fix and as a known issue.

Steps to recreate

  • Add Indicator Bundle Component to the Page Layout
  • The Bundle displays correctly but the list of Indicator Bundles doesn't show anything.
  • Turn on Debug Mode and find in the console that it raised a gack.

The Gack contents is

java.lang.NullPointerException at metadata.catalog.schema.EntityParticleFunctions.getDurableId

The error is coming from a query on EntityParticle is returning null

In a weird twist of fate the org had a managed package that that day had been put into a Suspended state by the managed package provider. There was a Indicator Item record referring to a field in that package. So it is an issue as to why that gack would occur on a query on entity particle on a suspended package... but that is something to solve on another day and I don't think it's related just to our package.

We also probably need to test an Indicator item referencing a field in a managed package that then expires. And test an Indicator Item that has an advanced field relating to a field in an Expired or Suspended managed package.

This all "should" work... the field should be inaccessible so the SOQL queries should return fine without that field and should not gack. So that's why I'm adding this note here as a known issue and if we can find out more I will add to this post.

JodieM commented

Closed as known-issue