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

Package version create error- Admin: You may not modify the permission Allow user to train and generate models for Object Detection. (Retired) while editing a Standard Profile #2733

Closed
ppbntl19 opened this issue Feb 20, 2024 · 8 comments
Labels
owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. validated Version information for this issue has been validated

Comments

@ppbntl19
Copy link

ppbntl19 commented Feb 20, 2024

Getting same issue while creating the package version.

Removed "AllowObjectDetectionTraining" -Still same issue

{
  "architecture": "win32-x64",
  "cliVersion": "@salesforce/cli/2.30.5",
  "nodeVersion": "node-v20.7.0",
  "osVersion": "Windows_NT 10.0.19045",
  "rootPath": "C:\\Users\\Loaner\\AppData\\Roaming\\nvm\\v20.7.0\\node_modules\\@salesforce\\cli",
  "shell": "cmd.exe",
  "pluginVersions": [
    "@oclif/plugin-autocomplete 3.0.9 (core)",
    "@oclif/plugin-commands 3.1.4 (core)",
    "@oclif/plugin-help 6.0.13 (core)",
    "@oclif/plugin-not-found 3.0.11 (core)",
    "@oclif/plugin-plugins 4.2.3 (core)",
    "@oclif/plugin-search 1.0.15 (core)",
    "@oclif/plugin-update 4.1.13 (core)",
    "@oclif/plugin-version 2.0.12 (core)",
    "@oclif/plugin-warn-if-update-available 3.0.11 (core)",
    "@oclif/plugin-which 3.1.0 (core)",
    "@salesforce/cli 2.30.5 (core)",
    "apex 3.0.24 (core)",
    "auth 3.3.12 (core)",
    "data 3.1.0 (core)",
    "deploy-retrieve 3.2.15 (core)",
    "info 3.0.26 (core)",
    "marketplace 1.0.24 (core)",
    "org 3.3.13 (core)",
    "packaging 1.25.0 (user)",
    "schema 3.1.3 (core)",
    "settings 2.0.26 (core)",
    "sobject 1.1.12 (core)",
    "source 3.1.14 (core)",
    "telemetry 3.1.12 (core)",
    "templates 56.0.15 (core)",
    "trust 3.3.9 (core)",
    "user 3.2.10 (core)",
    "@salesforce/sfdx-scanner 3.18.0 (user)",
    "sfdmu 4.32.1 (user)"
  ]
}

Admin: You may not modify the permission Allow user to train and generate models for Object Detection. (Retired) while editing a Standard Profile

I did some digging and found the API name of the permission that was referenced in the error and I searched in VS code and i dont have the "AllowObjectDetectionTraining" permission anywhere in vscode, so I'm thinking there is a new bug.

Originally posted by @bacasystems-IT in #2703 (comment)

image

@ppbntl19 ppbntl19 added the investigating We're actively investigating this issue label Feb 20, 2024
Copy link

Hello @ppbntl19 👋 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 Feb 20, 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.

Copy link

Hello @ppbntl19 👋 None of the versions of sf you shared match the latest release.

Shared: 2.17.14
Latest: 2.28.6

Update to the latest version of Salesforce CLI (docs) and confirm that you're still seeing your issue.
You can also try the rc and nightly releases! (docs)

After updating, share the full output of sf version --verbose --json

@github-actions github-actions bot added validated Version information for this issue has been validated investigating We're actively investigating this issue and removed more information required Issue requires more information or a response from the customer labels Feb 20, 2024
@mdonnalley
Copy link
Contributor

@ppbntl19 I would contact support to open a case. It would be rare for a CLI bug to cause the packaging commands to show that Multiple errors occurred message. That said, since your error is related to Profiles, you might try using the scopeProfiles property to see if that helps.

@mdonnalley mdonnalley added owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. and removed investigating We're actively investigating this issue labels Feb 20, 2024
Copy link

We have determined that the issue you reported exists in code owned by another team that uses only the official support channels. To ensure that your issue is addressed, open an official Salesforce customer support ticket with a link to this issue. We encourage anyone experiencing this issue to do the same to increase the priority. We will keep this issue open for the community to collaborate on.

@bacasystems-IT
Copy link

@ppbntl19 I actually have a Sev1 case with support and i was able to find the way to fix it. Can you please open a case for it. I'd recommend a sev 2 case. Tell them to reference Case 46282932 and W-15049996, The solution on how to work around is in that case and the support team can connect the cases and there is 100% a bug

@ppbntl19
Copy link
Author

Worked after moving to a minor version increment.

@horpeyjay
Copy link

<userPermissions>
        <enabled>true</enabled>
        <name>AllowObjectDetectionTraining</name>
 </userPermissions>
Find something in the profile you're working on and remove it. It should work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
owned by another team The Salesforce CLI team does not own this work but will pass on the information to the correct team. validated Version information for this issue has been validated
Projects
None yet
Development

No branches or pull requests

4 participants