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
Pranav S SanvatsarkarPranav S Sanvatsarkar 

common.formula.InvalidFieldReferenceException: Could not access the following field

Hello there,
  • I am not getting the cause of this error - common.formula.InvalidFieldReferenceException: Could not access the following field: some_field_name__c.
  • This field is refferred by a Formula Field, which is again referenced by another formula field.
  • ​Something like this,
    • Formula Field ( Hidden ) -> Formula Field ( Visible ) ->  some_field_name__c
Need assistance in this.

Thanks in advance.
VineetKumarVineetKumar
can you paste your formulaes?
Pranav S SanvatsarkarPranav S Sanvatsarkar
Hi Vineet,
  • Opportunity -> Grant_Number_Hidden__c -> Formula - ( RIGHT(FGM_Base__Request_Number__c,5) )
  • Opportunity -> FGM_Base__Request_Number__c -> Formula - ( IF( FGM_Base__Request_Number_Legacy__c <> "", FGM_Base__Request_Number_Legacy__c , FGM_Base__Request_Number_Apex__c ) )
Pranav S SanvatsarkarPranav S Sanvatsarkar
Error -> common.formula.InvalidFieldReferenceException: Could not access the following field: FGM_Base__Request_Number_Legacy__c
VineetKumarVineetKumar
This is a known issue with salesforce :
https://success.salesforce.com/issues_view?id=a1p300000008ZA3AAM

Seems like some managed package is haviing similar name.
  • Try renaming FGM_Base__Request_Number_Legacy__c field to something else and try.
  • Or introduce namespace in your org.
I would suggest you do the former one.

Do mark my answer as best answer if it helped you.