Thanks for reaching out to Microsoft Q&A
It looks like you’re encountering a query parsing error when using the new Salesforce OAuth 2.0 connector in your Azure pipeline. The error message indicates that there’s an issue with the SOQL query syntax,
specifically an unexpected token: ‘as’.
Here are a few steps you can take to troubleshoot and resolve this issue:
- Check the SOQL Query Syntax: Ensure that your SOQL query is correctly formatted. Salesforce SOQL does not support the
AS
keyword for aliasing columns, unlike SQL. - Review the API Version: Make sure that the API version you’re using in the request URL (
v53.0
in your case) is compatible with the features and syntax you’re using in your SOQL query. - Pipeline Configuration: Double-check the configuration of your pipeline step that executes the SOQL query. Ensure that the query is correctly passed to the connector without any modifications that might introduce syntax errors.
- Error Handling: Implement error handling in your pipeline to capture and log detailed error messages. This can help you identify the exact point of failure and the nature of the error.
Refer to the Salesforce SOQL documentation for detailed syntax rules: https://developer.salesforce.com/docs
If you’ve checked all these and the issue persists, please do let us know