Ask a Question
Ask Question Login
Corporate Training
  1. Community
  2. Salesforce
  3. Question
Salesforce

IntelliJ - Cannot resolve symbol after adding a label

Asked by Julia Graham Aug 2, 2021 2.1K views 2 answers
Share

About this question

I added a label and came from :

doc.addError('vous ne pouvez pas ajouter de PJ');*
to :
doc.addError(System.Label.Document_messageErrSuppressionPJ);

It's fine on dev console, but IntelliJ isn't able to find the Custom Label ; I tried retrieving metadata but I'm missing something... Any idea how to resolve this ? I can delete my project and import it from scratch, but it's a waste of time even if it would do the work..

A screenshot from the error:

enter image description here

Thanks !

edit: my src file (that doesn't contain CustomLabels ?!)

enter image description here

edit2 : I'm trying to add custom labels by adding it to the package.xml enter image description here

Your answer

2 Answers

Dayna Yost Latest answer

Answered on Apr 25, 2025

Customize the same as the good product structure already Squid Game Online in the first version so as not to make mistakes. find some more information on reputable sites on social networks. Good luck!

Was this helpful?

More Salesforce discussions

Learn & Explore

Free tutorials and interview questions from industry experts — learn the skill, then get ready to prove it.

Latest Salesforce Blogs

Guides, tips and career advice on Salesforce from JanBask experts.