I have a flow that calls an Apex method where the following SOQL query is executed:

SELECT Id Name FROM Contact WHERE Name LIKE '%%'

After the Summer 19' preview was applied in our sandboxes the flow is now failing with the following:

The field "Name" isn’t valid for the "Contact" object.

I tried recompiling all classes in the sandbox, but that did not take care of the issue. Any thoughts?

  • I saw someone mention a similar issue with a condition in Lightning App Builder that referenced contact name -- I'm raising it internally. Commented May 9, 2019 at 17:56
  • Thanks, I do have a case opened as well.
    – Jay
    Commented May 9, 2019 at 17:59
  • Can you give me the case number? I have an email thread I can add it to. Commented May 9, 2019 at 18:07
  • Thank you - 22836213
    – Jay
    Commented May 9, 2019 at 18:10
  • Hi Jay - just wanted to let you know, engineering checked in a fix for this yesterday and it should go out in the next patch (May 28). Bug number is W-6166739. Commented May 22, 2019 at 15:03

1 Answer 1


if your flow calls Apex class, there is similar issue know issue by Salesforce after summer 19 release Please try below work around see if it works. Link

Please recompile all classes in org by using compile all classes link on apex classes page under setup or you can do runAllTest in org which will recompile the covered classes. This will fix the issue. We faced a similar issue after Summer 19 release and got it fixed by recompiling all the classes.

  • I did come across that before posting this particular one, but it did not work. I thought it was related, but I guess not.
    – Jay
    Commented May 9, 2019 at 18:20

You must log in to answer this question.

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