question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Test run fails with WHERE ApexClassorTriggerId IN () ERROR at Row:1:Column:162 unexpected token: ')' 14/01 relase

See original GitHub issue

Summary

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:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
maaaaarcocommented, Jan 19, 2021

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 😉

0reactions
WillieRuemmelecommented, Feb 1, 2021

Closing this issue as it seems to be resolved in 50.14.0 of the VS Code Extensions

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found