0

When running

SFDX: Update Checkpoints in Org

using Salesforce Extensions for Visual Studio Code I get the error

Checkpoints can be set on valid line of Apex source. Invalid checkpoint location

Why?

1

The issue was a space character in the path to my project, e.g.

My Projects/Project1

I removed the space in the path and was able to successfully update checkpoints.

Special characters cause same issue, e.g.

R&D/Project

To resolve, I would suggest to first close the folder in VS Code, edit folder name outside of VS Code, then open renamed folder in VS Code.

Thanks to this post for resolution https://github.com/forcedotcom/salesforcedx-vscode/issues/1476

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.