• Charles Hill 18
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 2
    Replies
Following a recent upgrade to our FinancialForce PSA System we are no longer able to deploy into production certain APEX Classes (message below) Any of our test classes that creat a Contact Record are experiencing this issue. We tried Setup > APEX Classes > Compile All Classes and Setup > APEX Triggers > Compile All Triggers without any success. PSA has not been able to assist and have indicated that the issue is related to the following: https://success.salesforce.com/issues_view?id=a1p3A000000mCXpQAM

As PSA is a managed package we have absolutley no control over the trigger that is causin this. Any help would be appreciated?

=========
System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, pse.ContactTrigger: execution of BeforeInsert caused by: line 48, column 22: Dependent class is invalid and needs recompilation: Class pse.SearchResourcesGeoLocationManager : Dependent class is invalid and needs recompilation: Class pse.MockHttpResponseGeneratorForGeolocation : Dependent class is invalid and needs recompilation: Class pse.ExternalAPICredentialService : Dependent class is invalid and needs recompilation: Class pse.Application : Dependent class is invalid and needs recompilation: Class pse.TimecardHeaderSelector : Variable does not exist: LastReferencedDate: [] 
Stack Trace: Class.RWW_TestHelper.getContact: line 143, column 1 Class.RWW_TestHelperTest.testGetContact: line 28, column 1
=======


 
  • August 29, 2018
  • Like
  • 0
Hello,

We have been receiving this error in our Sandbox and can no longer use the Timecards app in Financial Force PSE:

Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, pse.TimecardHeaderTrigger: execution of BeforeInsert caused by: line 36, column 16: Dependent class is invalid and needs recompilation: Class pse.EstVsActualsManager : Dependent class is invalid and needs recompilation: Class pse.ResourceScheduleManager : Dependent class is invalid and needs recompilation: Class pse.Assignments : Dependent class is invalid and needs recompilation: Class pse.ProjectSelector : Dependent class is invalid and needs recompilation: Class pse.ProjectApplication : Dependent class is invalid and needs recompilation: Class pse.OpportunitySelector : Variable does not exist: ForecastCategoryName: [] An unexpected error has occurred. Your solution provider has been notified. (pse)

I recompiled all Apex classes and it doesn't fix the error. The undeclared variable is in a managed package so I cannot view or modify the Apex code. I opened a case with FinancialForce, but they have been unhelpful so far. Has anyone else dealt with this before?

Thank you,
Matt Kowalski