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 Carl Paige Jul 19, 2021 1.3K views 1 answer
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

1 Answer

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.