You need to sign in to do that
Don't have an account?
Swapna Mistry
Error: Compile Error: Found punctuation symbol or operator '%' that isn't valid in Apex
I am not a developer. I am just trying to update a test class based on instructions provided to me by a previous contractor. I added the necessary info, but I am getting a compile error on a line that I did not touch and did not have any issues with when I updated this test class about a month ago.
Please help. What is the correct syntax supposed to be?
User u = [SELECT Id FROM User WHERE UserRole.Name LIKE '%TSM%' LIMIT 1];
Please help. What is the correct syntax supposed to be?
All Answers
I tried executing same line of code in my org.I am able to execute without any errors.There is nothing to correct in syntax.Try by removing all the code from controller and paste same code.
Hope this helps you
If this helps kindly mark it as solved so that it may help others in future.
Thanks and Regards