1

I have 2 fields that I'd like to use in my VFP.

enter image description here

Valores_ativos_e_passivos__c is working fine, but when I try to use Ativos_e_passivos__c I receive the Invalid field for SObject error. What am I missing?

Working FINE:

<table>
                <h4>
                   Ativos e passivos
                </h4> 
                {!KYC_Form__c.Valores_ativos_e_passivos__c}
 </table>

NOT working:

<table>
                <h4>
                   Ativos e passivos
                </h4> 
                {!KYC_Form__c.Ativos_e_passivos__c}
</table>

I've tried "KYC_Form__r.Ativos_e_Passivos__c" but the error still the same. The problem can be the type of the field?

9
  • Are you have field access for that field?
    – MohanRaj
    Oct 1, 2021 at 13:03
  • Yes, I have. It's visible to all profiles
    – Sabrina T.
    Oct 1, 2021 at 13:24
  • 1
    In the org where you are experiencing this issue, did you create the field in the org, or deploy the field from a different org into this one? This issue usually appears after you deploy a new field to an org. Field Level Security for the field does not get deployed along with the field, so you need to set FLS manually in each org you deploy it to (permission sets can contain FLS and be deployed, though it is a pain to initially assign permission sets to users).
    – Derek F
    Oct 1, 2021 at 13:41
  • I've created the field in the org that I'm experiencing the issue... The field is visible to all profiles
    – Sabrina T.
    Oct 1, 2021 at 13:46
  • 1
    Are you sure your IDE is connected to the correct org? Oct 1, 2021 at 20:09

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.