"sf project deploy start" failing with MetadataTransferError - "Metadata API request failed" #3398
Unanswered
haidernaseem
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Summary
I recently updated the sf CLI version in my Gitlab pipeline to '2.105.6'. Since the update I am facing an odd issue.
The pipeline runs the following deploy command
cd $(SALESFORCE_DIR) && sf project deploy start --source-dir $(CI_BUILDS_DIR)/cicd/delta/ --json --ignore-conflicts --target-org $($(SF_USERNAME_DEVELOPER_SANDBOX)) --wait 60 --test-level RunLocalTests; \and the deployment in Salesforce starts, runs, and succeeds. But as soon as the deployment in Salesforce has completed, the pipeline throws the following error:
I have added the following command to the makefile to see the folder structure :ls -R $(CI_BUILDS_DIR)/cicd/delta/
and the output does not show any apparent issues with the file path.
I tried adding the applications folder to .forceignore to validate if the issue was with the application folder. But then the same error came for the class folder.
I am completely lost as what to do to fix this. I am blocked from merging from sandbox to higher environment until the pipeline is fixed.
Highly appreciate any help and suggestions.
Beta Was this translation helpful? Give feedback.
All reactions