Test run fails with WHERE ApexClassorTriggerId IN () ERROR at Row:1:Column:162 unexpected token: ')' 14/01 relase
See original GitHub issueSummary
Sometimes when I run a test that fails I am getting an error in CLI, test class is run on SF and results can be checked in SF UI: 16:05:57.228 Starting Run Apex Tests
WHERE ApexClassorTriggerId IN ()
^
ERROR at Row:1:Column:162
unexpected token: ')'
Steps To Reproduce:
1 Run test class that fails. It don’t happen always. Rather after longer time of running tests.
Expected result
I should see test run results.
Actual result
I see an error. Probably internal CLI error as test don’t fail with such message.
Additional information
SFDX CLI Version(to find the version of the CLI engine run sfdx --version): sfdx-cli/7.84.2-a2868a68d5 win32-x64 node-v12.18.3 OS and version: Windows 10
Issue Analytics
- State:
- Created 3 years ago
- Reactions:2
- Comments:8 (1 by maintainers)
Top Results From Across the Web
Unexpected token error when trying to run test class [closed]
The only locally defined method is runPositiveTestCases , yet you call: getAvailableMailings(); testAvailMailings(); upsertCampaigns() ...
Read more >Unexpected Token error when attempting to test a Test Class
Hello Experts! I am trying to create a test apex class, which saves just fine, however when I attempt to actually run the...
Read more >Are you facing Unexpected Token ERROR?
Hence: public Map oppMapMethod() { The other issue is that your object creation syntax is wrong. Map oppMap = new Map.
Read more >What does the error unexpected token 'public' mean?
Uncomment the line to initialize your list before the loop. Return just the variable itself, no need to have the brackets. It's already...
Read more >InvalidBatch : Failed to process query: MALFORMED_QUERY
When running a task to filter the records for the last 12 months in Salesforce, following error occurs: "[ERROR] Salesforce could not process ......
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
This is an issue related to the VSCode Extension. In this discussion there’s a workaround to disable a beta feature https://github.com/forcedotcom/salesforcedx-vscode/issues/2863 😉
Closing this issue as it seems to be resolved in
50.14.0
of the VS Code Extensions