-
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
Duplicate name '<Artifact name>' specified in ci/cd pipeline using sf version 2.9.1 #2456
Comments
Hello @surbhigarg11 👋 It looks like you didn't include the full Salesforce CLI version information in your issue. A few more things to check:
Thank you! |
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. |
This is how my yaml looks: variables: default: |
Use a docker image in your builds instead of installing sfdx on every run. |
Please see the installation instructions for The section you have in |
Yes, Thanks for the suggestion. We switched to a new docker image now to use npm to install CLI |
So I followed the instructions already through this link, used a new docker image too, still I get the below errors: |
I suggested you to use a docker image based on the ones salesforce maintain in docker hub. It has the cli already. |
@surbhigarg11 any chance that your metadata has the problems that the error messages are saying they do? ex: if you search for |
Yup, it is all there. There are no duplicates too. I checked. And the weird thing is, the errors started coming when we changed the cli version. I have found a workaround or more like a temporary fix, the cli version we are using now does not cause any issue during org deployment, but it still fails in scratch org deployment. So for now, we are not testing our feature branch on scratch org and directly deploying to qa org. |
I was able to resolve the issue. Tried a newer SF V2 version and suddenly everything works. Thanks all for the help. |
you're welcome |
You were using 7.65.4 ?! Without looking at your metadata, I know there were issues where old CLI versions would let you put multiple versions of the same filepath into the zip file that gets sent to the metadata api, and that no longer is allowed. The other clue I see is this:
That, and the errors around Standard Objects suggests that there is metadata in your qa/prod org that isn't in your scratch org, and what you're deploying depends on that. next issue is that scratch org create error. It looks like you've got a wrong instanceUrl in there, somehow, with |
Summary
Started using
export CLIURL=https://developer.salesforce.com/media/salesforce-cli/sf/channels/stable/sf-linux-x64.tar.xz
for our ci/cd gitlab pipeline and now the deployment fails with below erros:Case.General | Record Type Duplicate name 'Case.General' specified
Opportunity.Fundraising | Record Type | 0 | 0 | Duplicate name 'Opportunity.Fundraising' specified
Opportunity.Sales | Record Type | 0 | 0 | Duplicate name 'Opportunity.Sales' specified
Opportunity.Fundraising | Record Type | 219 | 18 | Picklist value: Elevator Management in picklist: Opportunity_Type__c not found
Opportunity.Sales | Record Type | 799 | 18 | Picklist value: Elevator Management in picklist: Opportunity_Type__c not found
Case.General | Compact Layout | 0 | 0 | Duplicate name 'Case.General' specified
Steps To Reproduce
Expected result
Actual result
System Information
gitlab yaml fileThe text was updated successfully, but these errors were encountered: