Skip to content

Managed Report Types (read only) are modified and pulled if "Auto add to custom report type" checkbox is checked on field creation #13

@FabienTaillon

Description

@FabienTaillon

Describe the bug
On field creation, Managed Report Type is pulled if "Auto add to custom report type" checkbox is checked. This is an issue because Managed Report Types are read only (if I try to edit it in the UI it's not possible). If I try to deploy the pulled report type, or recreate a scratch org from pulled metadata I have an error saying that I can't modify a managed object:
squivr__Contacts_with_Relationships - Custom Report Type - Cannot modify managed object: entity=CrtLayoutSection, component=null, state=MANAGED_INSTALLED - sections

To Reproduce
Steps to reproduce the behavior:

  1. Create a Scratch Org
  2. Install a Managed Package with Managed Report Types, for instance Squivr (sf package install -p 04t8V000000ksxyQAA -w 60)
  3. In the Org create a custom field on Contact (there is a Managed Report Type from Squivr on Contact), for instance a Test__c checkbox field. You can omit all field level security and page layouts
  4. Pull the changes
  5. Additionally you can try to create a new Scratch Org and push everything

Expected behavior
Only the new field is pulled.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions