You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug "Cannot update or delete a picklist while a picklist background job is being executed" thrown upon pre picklist deployer (see screenshot below).
To Reproduce
This is an intermittent, but frequent issue (≈ 5–10% of pipeline runs). This occurs when there are multiple picklists to be deployed in the pre deployer.
Expected behavior
When getting "Cannot update or delete a picklist while a picklist background job is being executed", retry the picklist deployment.
Screenshots
Platform Details (please complete the following information):
OS: Linux
Version [e.g. CLI Version eg: 1.6.6]: 25.5.3 (December 23)
Salesforce CLI(sfdx cli) Version: sf version that is on 25.5.3
CI Platform: Azure DevOps
The text was updated successfully, but these errors were encountered:
Hi @petter-eikeland Also for you the info . The picklist background job is a known Salesforce error that can also occur in the install and build jobs. So I can't guarantee whether 3 minutes (6 retries a 30 seconds) is enough. In my tests, 10 seconds wasn't enough. But more runs doesn't make sense at first. So we should start with this settings.
Sounds good! If the picklist background job is still running after 3 minutes, then it is more a Salesforce issue, than a deployment issue. Thank you for following this up swiftly @Rocko1204 😄
Are one or more of your picklists dependent on one another? This is the issue that made it obvious to me. I handled it by making the deployment of the dependencies a separate step inside the post-folders, while only keeping the values in my package. That resolved the issue for me mostly.
Describe the bug
"Cannot update or delete a picklist while a picklist background job is being executed"
thrown upon pre picklist deployer (see screenshot below).To Reproduce
This is an intermittent, but frequent issue (≈ 5–10% of pipeline runs). This occurs when there are multiple picklists to be deployed in the pre deployer.
Expected behavior
When getting
"Cannot update or delete a picklist while a picklist background job is being executed"
, retry the picklist deployment.Screenshots
Platform Details (please complete the following information):
The text was updated successfully, but these errors were encountered: