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 (InvalidIdLengthError): Parsing --job-id #3106

Open
Faizahamed-dev opened this issue Nov 12, 2024 · 4 comments
Open

Error (InvalidIdLengthError): Parsing --job-id #3106

Faizahamed-dev opened this issue Nov 12, 2024 · 4 comments
Labels
more information required Issue requires more information or a response from the customer

Comments

@Faizahamed-dev
Copy link

i am using the command for deployment status , i tried with two command still i am getting status_output=$(sf project deploy report -i "$deploy_id" -u "${SALESFORCE_USERNAME}" --wait 0 --json) as well status_output=$(sf project deploy report -i "$deploy_id" -u "${SALESFORCE_USERNAME}" --wait 0 --use-most-recent). i am getting an error Error (InvalidIdLengthError): Parsing --job-id The id must be 15 or 18 characters. See more help with --help . i am using salesforce/cli/2.67.4 .pls tell me how to fix

@Faizahamed-dev Faizahamed-dev added the investigating We're actively investigating this issue label Nov 12, 2024
Copy link

Hello @Faizahamed-dev 👋 It looks like you didn't include the full Salesforce CLI version information in your issue.
Please provide the output of version --verbose --json for the CLI you're using (sf or sfdx).

A few more things to check:

  • Make sure you've provided detailed steps to reproduce your issue.
    • A repository that clearly demonstrates the bug is ideal.
  • Make sure you've installed the latest version of Salesforce CLI. (docs)
    • Better yet, try the rc or nightly versions. (docs)
  • Try running the doctor command to diagnose common issues.
  • Search GitHub for existing related issues.

Thank you!

@github-actions github-actions bot added more information required Issue requires more information or a response from the customer and removed investigating We're actively investigating this issue labels Nov 12, 2024
Copy link

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.

@Faizahamed-dev
Copy link
Author

output below and i am using sf version with latest
{
"name": "InvalidIdLengthError",
"message": "Parsing --job-id \n\tThe id must be 15 or 18 characters.\nSee more help with --help",
"exitCode": 2,
"context": "DeployMetadataReport",
"stack": "InvalidIdLengthError: Parsing --job-id \n\tThe id must be 15 or 18 characters.\nSee more help with --help\n at SfCommandError.from (file:///usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/sf-plugins-core/lib/SfCommandError.js:39:16)\n at DeployMetadataReport.catch (file:///usr/local/lib/node_modules/@salesforce/cli/node_modules/@salesforce/sf-plugins-core/lib/sfCommand.js:316:47)\n at DeployMetadataReport._run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/command.js:306:29)\n at async Config.runCommand (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/config/config.js:425:25)\n at async run (/usr/local/lib/node_modules/@salesforce/cli/node_modules/@oclif/core/lib/main.js:95:16)\n at async file:///usr/local/lib/node_modules/@salesforce/cli/bin/run.js:15:1",
"cause": "undefined",
"warnings": [],
"code": "InvalidIdLengthError",
"status": 2,
"commandName": "DeployMetadataReport"
}

@cristiand391
Copy link
Member

are you able to print the deploy ID and see if it's 15/18-char?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
more information required Issue requires more information or a response from the customer
Projects
None yet
Development

No branches or pull requests

2 participants