You need to sign in to do that
Don't have an account?
Andries.Neyens
SOQL and User Locale
Something as simple as:
[SELECT Id FROM Profile WHERE Name='System Administrator' LIMIT 1]
can fail if the language locale of the current running user is different than English.
Is there a clean workaround?
May be this helps...
http://boards.developerforce.com/t5/Apex-Code-Development/SOQL-queries-fail-when-user-changes-their-language-multi/td-p/474021
Maybe dirty, but it does the job (test scenario):