1

I am getting apex test failure messages while validating my Lightning components. I am using Ants tool.

Getting the same error "line -1, column -1: __MISSING LABEL__ PropertyFile - val dependent.class.invalid not found in section ContextExceptions Stack Trace: null" for all classes

enter image description here

Has anyone encountered such a problem ? I can't for the life of me figure out what I am missing here..

7
  • This problem may be caused by a different failure in a dependent class. What happens if you fix the WEBForecastSalesDivisionExtensionTest method signature problem on the first line of the failure list? Commented Nov 10, 2017 at 17:40
  • This seems to be problem in your test class Commented Nov 10, 2017 at 18:00
  • I am getting the same error in all of my test classes.. Many of them are already available in the target org and very minor changes are added for them in this deployment. It should not cause any problem.
    – Brav
    Commented Nov 10, 2017 at 18:06
  • are you using some custom labels in your class? Commented Nov 10, 2017 at 18:14
  • Yes.. I use one custom label. But the class I used it in is not in the apex test failure classes list
    – Brav
    Commented Nov 10, 2017 at 18:17

2 Answers 2

1

In the apex classes section of "setup" you can click "compile apex classes". This may show the invalid dependant class. This worked for me at least.

1
  • Thanks.. I had tried that before and the compilation was successful but still the issue remained.. Hwever I resolved it..
    – Brav
    Commented Nov 21, 2017 at 9:54
1

Found out what was causing the issue. As salesforce-hacker pointed out, this problem was caused by a different failure in its dependent class WEBForecastSalesDivisionExtension. Once I fixed it, all the errors were auto fixed.

1
  • that's basically what I posted a couple of minutes before you...
    – Nielsm
    Commented Nov 21, 2017 at 15:01

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .