function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Lakshya KanchanLakshya Kanchan 

Issue on upgrading a managed package

Hi

I have a managed package with the version 4.7.

The version 4.7 of the package has some code along with the report types built using the below object combinations:

1. Account & Task
2. Contact & Task

Some reports are also built using these report types which are present in the v4.7 managed package.

I am getting the below error when installing an upgrade (v4.7.1) of the managed package:

An unexpected error occurred. Please include this ErrorId if you contact support: 603504159-3613 (1535757581), Details: Contacts_with_Touchpoint_Activities: An unexpected error occurred. Please include this ErrorId if you contact support: 603504159-3613 (1535757581)

In the error, "Contacts_with_Touchpoint_Activities" is a report type making using of fields of Contact & Task object.

I am facing challenge in understanding the issue here and request your help.

Regards,
Lakshya
SwethaSwetha (Salesforce Developers) 
HI Lakshya,

Based on salesforce backend logs the GACK's stack trace Id (1535757581) points to 
Subject: Metadata gack caused by: NullPointerException
ExtendedMessage: java.lang.NullPointerException: crt id = 0708Y000000BW0Y, crtObjId = 0718Y000001DhWm, crtObject = Activity, crtObject.getTable = Activity, and crtObject.getDetailField = Who, childRelationships=[OCR-Opportunity.Contact(Contact), AuthorizationFormConsent.ConsentGiver(Contact), Account.00N8Y00000JMgEz(Contact), 01I8Y000003c6uQ.00N8Y00000JMgFJ(Contact), CleanInfo-CleanRule.TargetEntity(Contact), 01I8Y000003c6uO.00N8Y00000JMgF8(Contact), Asset.Contact(Contact), 01I8Y000003c6uS.00N8Y00000JMgFp(Contact), 01I8Y000003c6u3.00N8Y00000JMgCX(Contact), 01I8Y000003c6uG.00N8Y00000JMgDl(Contact), CampaignMember-Campaign.Contact(Contact), EntitlementContact-Entitlement.Contact(Contact), ContentDocumentLink-ContentDocument.LinkedEntity(Contact), 01I8Y000003c6uR.00N8Y00000JMgFQ(Contact), 01I8Y000003c6uP.00N8Y00000JMg6x(Contact), SocialPersona.Parent(Contact), Case.Contact(Contact), MultiFieldJoinCrtRelationShip, DuplicateRecordItem.Record(Contact), SocialPost.Who(Contact), ContactFeed.Parent(Contact), WorkOrder.Contact(Contact), 01I8Y000003c6uB.00N8Y00000JMg73(Contact), 01I8Y000003c6u4.00N8Y00000JMgCY(Contact), 01I8Y000003c6uH.00N8Y00000JMgCo(Contact), 01I8Y000003c6uE.00N8Y00000JMgE1(Contact)] on id 0708Y000000BW0Y

Hope the provided details will help in decoding the GACK

Thank you
Swetha Maddali
Salesforce.com support