Skip to main content
Hello everyone, 

I have to prepare a new release. When I run all apex tests, I get a validation failed with 100% errors : "ORDER BY DISTANCE(GC_PG_location__c, GEOLOCATION(:Latitude ^ ERROR at Row:5:Column:48 No such column 'GC_PG_location__c' on entity 'Gare__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names."

I was surprised because the last release, I did, didn't detect these errors..

I decided to compilate all the apex class and I have 3 apex class with 2 differents errors.

  1. line 100, column 28: SELECT Id, AccountId, Account.Name ^ ERROR at Row:1:Column:23 Didn't understand relationship 'Account' in field path. If you are attempting to use a custom relationship, be sure to append the '__r' after the custom relationship name. Please reference your WSDL or the describe call for the appropriate names.
  2. line 51, column 29: ORDER BY DISTANCE(GC_PG_location__c, GEOLOCATION(:Latitude ^ ERROR at Row:5:Column:48 No such column 'GC_PG_location__c' on entity 'Gare__c'. If you are attempting to use a custom field, be sure to append the '__c' after the custom field name. Please reference your WSDL or the describe call for the appropriate names.Each test class runs correctly individually, without error.

Each test class runs correctly individually, without error.

I check the profile and the permission set (FLS ok), change the API version of each class, create a new class with the same code and a new API version : after a new compilation, the same error appears again.

I don't know how to resolve this issue.

Have you got any clue about this ?

Thank you.

Best regards,

Q.Tiercelin
4 respostas
0/9000