Skip to content
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

Error after updating sf-cli #3170

Closed
Alfystar opened this issue Jan 9, 2025 · 5 comments
Closed

Error after updating sf-cli #3170

Alfystar opened this issue Jan 9, 2025 · 5 comments
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated

Comments

@Alfystar
Copy link

Alfystar commented Jan 9, 2025

Hello,

I encountered an error after updating sf-cli. The error details are as follows:

sf force source read --target-org SYSTEST01 --chunk-size 5 -m 'Profile:APP Customer Community Pe','Profile:Admin','Profile:Agente QSF','Profile:Analytics Cloud Integration User','Profile:Analytics Cloud Security User'
[Profile_5--10] Error command execution:
Error (ExpectedSourceFilesError): src/main/default/staticresources/Formulario_para_corporativos.resource-meta.xml: Expected source files for type 'StaticResource'

I believe this issue might be related to the recent update of sf-cli, as the plugin has not been updated for a while and it worked with previous versions of sf-cli.

Could you please assist in resolving this issue?

Thank you!

Best regards,

System Information

{
  "architecture": "darwin-arm64",
  "cliVersion": "@salesforce/cli/2.71.6",
  "nodeVersion": "node-v23.4.0",
  "osVersion": "Darwin 23.6.0",
  "rootPath": "/opt/homebrew/lib/node_modules/@salesforce/cli",
  "shell": "zsh",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.2.14 (core)",
    "@oclif/plugin-commands 4.1.14 (core)",
    "@oclif/plugin-help 6.2.19 (core)",
    "@oclif/plugin-not-found 3.2.31 (core)",
    "@oclif/plugin-plugins 5.4.22 (core)",
    "@oclif/plugin-search 1.2.17 (core)",
    "@oclif/plugin-update 4.6.18 (core)",
    "@oclif/plugin-version 2.2.18 (core)",
    "@oclif/plugin-warn-if-update-available 3.1.28 (core)",
    "@oclif/plugin-which 3.2.21 (core)",
    "@salesforce/cli 2.71.6 (core)",
    "apex 3.6.8 (core)",
    "api 1.3.2 (core)",
    "auth 3.6.82 (core)",
    "data 3.13.5 (core)",
    "deploy-retrieve 3.15.18 (user) published 33 days ago (Fri Dec 06 2024) (latest is 3.17.1)",
    "info 3.4.29 (core)",
    "limits 3.3.43 (core)",
    "marketplace 1.3.7 (core)",
    "org 5.2.11 (core)",
    "packaging 2.9.7 (core)",
    "schema 3.3.45 (core)",
    "settings 2.4.9 (core)",
    "sobject 1.4.46 (core)",
    "telemetry 3.6.27 (core)",
    "templates 56.3.34 (core)",
    "trust 3.7.51 (core)",
    "user 3.6.5 (core)",
    "sfdx-plugin-source-read 1.4.1 (user) published 19 days ago (Fri Dec 20 2024)"
  ]
}
@Alfystar Alfystar added the investigating We're actively investigating this issue label Jan 9, 2025
@github-actions github-actions bot added the validated Version information for this issue has been validated label Jan 9, 2025
Copy link

github-actions bot commented Jan 9, 2025

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.

@iowillhoit
Copy link
Contributor

The Salesforce CLI team does not own that plugin. I see you also opened an issue on that repo amtrack/sfdx-plugin-source-read#112

If you determine it is actually an issue with the CLI itself, please open a new issue with more details.

  • What version of the CLI were you using
  • What is the output when using the --dev-debug flag
  • Detailed steps to reproduced the issue

Thanks

@Alfystar
Copy link
Author

Alfystar commented Jan 9, 2025

Hi @iowillhoit

I open the same issue also to the plugin page to notify the creator.

About the version is the last one (yesterday): @salesforce/cli/2.71.6

To reproduce, simply install the plugin with sf plugins install sfdx-plugin-source-read
and execute: sf force source read --target-org SYSTEST01 -m 'Profile:Admin'


I have to say, however, that after running the command again on my device, now, without any further changes or updates, it works.

Before opening the ticket I tried several times always with the same error...
For now, ok, close the ticket, I hope it doesn't have to be reopened and sorry for the inconvenience

@Alfystar
Copy link
Author

Hi @iowillhoit

I was finally able to replicate the issue and obtain the log using --dev-debug. Unfortunately, it only occurs in the remote environment 🤦‍♂️; it doesn't appear on my personal device.
This leads me to believe it might be a package issue, but I can't figure out which ones.

I've uploaded the entire log in the tool's issue, but I would be really grateful if you could verify whether it's a problem with that plugin or if it's related to some internal change in sf-cli.

Thanks.

@Alfystar
Copy link
Author

I want update this thread, the solution was fount and is reported here: amtrack/sfdx-plugin-source-read#112

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
investigating We're actively investigating this issue validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

2 participants