-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting "Metadata API request failed: Cannot read properties of null (reading 'split')" #2439
Comments
Thank you for filing this issue. We appreciate your feedback and will review the issue as soon as possible. Remember, however, that GitHub isn't a mechanism for receiving support under any agreement or SLA. If you require immediate assistance, contact Salesforce Customer Support. |
@steinwinde I have the same situation. Do you have any updates about this? Thanks! |
@steinwinde @oagostinho When you get to the place where you can encounter the bug, can you do a
I'm looking for something that is missing its Also, did this start happening after the v59 (winter24) release? |
@mshanemc , thanks for picking this up. I've created a new project and don't have this problem inside of the new project. There is nothing indicating a problem in the SourceMember table. I'm attaching the complete output of |
@mshanemc -- I, too, have been seeing this issue on and off over the summer. The only thing that seems to resolve is to scrap the scratch org and build a new one. I do not know what triggers the condition, but once it is triggered, VSCode does the deployment but still registers the error. When I follow-up by executing the cli |
@mshanemc , in my setup the problem turned out to be that many of the [project directory]/.sf/orgs/[org ID]/localSourceTracking These are files with the name |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Yeah, you generally don't want to mess around with deleting the tracking files. They're not meant to be manually modified--we don't test all the ways you could get those into an invalid state. You should be able to restore the whole project's tracking by calling |
@mshanemc , okay, I learn from that that deleting the .sf/orgs/[org ID] directory of the project is unsupported. (Nevertheless, I will experiment with the |
This issue has not received a response in 7 days. It will auto-close in 7 days unless a response is posted. |
Summary
I'm getting this error when deploying a single Apex trigger (both with
sf
and via VSCode), after struggling with issue 4935 and following the advice in the latter issue to delete the .sf/orgs/[org ID] folder. The error appears despite the deployment being successful.Steps To Reproduce
The end of .sf/sf-2023-08-30.log is this:
After deactivating telemetry the last line in the log is the one with "sf:connection". Does parsing the result from the SourceMember query fail? There was an entry for the trigger in the table, but even after deleting it (and deleting all returned entries), the error remains.
The same problem exists when deploying diverse other triggers and classes.
I've finally done
sf project reset tracking
and this resulted in "Error (1): Cannot read properties of null (reading 'split')" too. This was successful too, because I'm back where I came from now.
System Information
Same with VSCode Salesforce Extension Pack 58.13.1 (see thread here) and even after reverting to 57.10.2.
Sandbox Version: 59.0
cmd
The text was updated successfully, but these errors were encountered: