Forcetalks | Charan | Activity https://www.forcetalks.com/charan-ayyappa/activity/ Activity feed for Charan. Mon, 08 Jun 2026 04:06:27 +0530 https://buddypress.org/?v=2.16.0 en-US 30 hourly 2 2b52b845ec9381de04fccb147a73febc Charan replied to the discussion How to resolve System in QueryException: unexpected token: ',' message in Salesforce? in the forum Salesforce® Discussions https://www.forcetalks.com/salesforce-topic/how-to-resolve-system-in-queryexception-unexpected-token-message-in-salesforce/#post-82304 Tue, 04 Aug 2020 17:18:27 +0530 Reply to How to resolve System in QueryException: unexpected token: ',' message in Salesforce?

Sumit,
Please try removing comma (,) and replace it with AND operations as below.

String query = ‘SELECT id, name FROM contact WHERE LastName =:lastname AND MailingPostalCode = :mailingCode’;

]]>