Skip to main content

Questions tagged [mdapideploy]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
35 views

Failed to Deploy Apex classes with sfdx mdapi

In my nodejs code, I created a function to deploy all apex classes i have in a folder within the project. that's the part of the code responsible for that : function deployAllApexClasses(orgAlias, ...
TheHmad Al's user avatar
0 votes
0 answers
31 views

Retrieve enhanced List views for Flows via metadata API?

Currently, whenever we retrieve an object via sfdx, whether custom, standard or cmtd, it will retrieve the list views too. However, I cannot seem to find the correct metadata folder or xml which ...
vio's user avatar
  • 61
0 votes
0 answers
24 views

How do I set <tabVisibilities> for Connections tab (SF2SF) in metadata?

We have multiple orgs and I would like to deploy the setting to Hidden for all profiles other than SysAdmin for the Connections tab (Salesforce to Salesforce). I have tried by using these options, but ...
Irene's user avatar
  • 1,849
0 votes
1 answer
62 views

How does one delete a CompactLayout via mdapi?

I have a descructiveChangesPost.xml file to delete any components no longer required to which I've added a section for CompactLayouts, but it's not doing the delete. Is it not possible to delete these ...
Irene's user avatar
  • 1,849
1 vote
2 answers
290 views

Deleting a Flow via CI/CD - how?

I have a flow that was deployed to multiple production orgs via mdapi CI/CD process. This flow updates 2 fields. Turns out this was not a solution and I now need to delete all 3(the flow + the 2 ...
Irene's user avatar
  • 1,849
1 vote
1 answer
160 views

Unclear deployment error An object 'parent' of type LightningComponentBundle was named in package.xml, but was not found in zipped directory

Try to deploy project on new scratch org sf project deploy start --ignore-conflicts --source-dir=./force-app --async --json And get unclear deployment error. "details": { "...
Siarhei's user avatar
  • 121
2 votes
2 answers
306 views

sfdx project:deploy:start misses files on deployment

It was recommended by sfdx to move from sfdx force:mdapi:deploy -d mdapi/ -u ... to sfdx project:deploy:start -d mdapi/ -o ..., however, I'm getting errors like: An object 'https_force_com' of type ...
Mariia Illarionova's user avatar
0 votes
1 answer
648 views

Deploying Experience Bundles fails with: "The topicId property of component xxxx references an object with the ID value 0TOxxxxx

I recently attempted to deploy a change in my Experience using ExperienceBundles. The only files that were changing were: MySite/themes/customerService.json - change in CSS MySite/config/helpCenter....
cropredy's user avatar
  • 72.1k
0 votes
0 answers
521 views

How do I resolve this deployment "fatal error?"

I receive the below "fatal error" running a deployment to a dev sandbox that includes destructive changes. The error occurs after tests run: EntityObject can not be initialized with null ...
parkerbbrown's user avatar
0 votes
1 answer
63 views

What is the <userPermission> for RunFlows to add it to an MDAPI deploy

I've extracted the metadata for the profiles, but cannot find any setting that allows me to deploy this. I tried using this, but it tells me 'RunFlows' it not a valid option. How can I deploy this ...
Irene's user avatar
  • 1,849
0 votes
1 answer
2k views

An object '' of type Dashboard was named in package.xml, but was not found in zipped directory

When I am trying to deploy a dashboard with its dashboard folder, I am receiving an error through package.xml. Below is the error: Error SalesRepDashboardsTableauxdebord An object '...
Dips's user avatar
  • 1
3 votes
2 answers
1k views

Deploying with sfdx but no component is deployed with no errors

My actual problem is that I am trying to deploy my package with sfdx using following command : //to create a folder of only the specified element of the package.xml sfdx force:source:convert -x ...
vanessen's user avatar
  • 2,705
1 vote
2 answers
2k views

No Package.xml Found In Destructive MDAPI Deployment

I've already looked at the existing questions and made sure of the following: Only package.xml & destructiveChanges.xml are in the folder I'm trying to deploy. package.xml is empty outside of the ...
MadameEvil's user avatar
1 vote
1 answer
2k views

Issue deploying file using package.xml due to 'Required Field is missing: label' but "MyFile.page-meta.xml" exist in folder

I have a apex class "MyFile.page" that I cannot deploy. I had no issues deploying it to my sandbox using Illuminated Cloud. I have added the VF page to the package.xml file along with all ...
Lamar Barnett's user avatar
3 votes
1 answer
1k views

Apex tests using Finalizers causes Metadata API deploy to result in LIMIT_EXCEEDED?

We've used Copado to deploy changes between environments for a couple years, but for the past couple weeks, we've seen our deployments in Salesforce complete successfully (in the Deployment Status UI ...
Peter Yao's user avatar
1 vote
0 answers
1k views

How do I turn off all the pop-ups in Lightning?

Lightning these days has so many pop-up messages - notifications from Salesforce for this and that and then there's the in-app notices too. All this is fine and well when you're in the org as you can ...
Irene's user avatar
  • 1,849
11 votes
3 answers
4k views

How do I successfully Deploy a Configuration Component for a Platform-Event Trigger to Override the Automated Process User?

I am trying to override the Automated Process user with another user for a platform event. This Salesforce documentation covers it: Configure the User and Batch Size for Your Platform Event Trigger ...
Gabriel Rivera's user avatar
0 votes
1 answer
291 views

SFDX: Move from Changeset Deployment to Org Development Model

I'm planning to move from changeset Deployment approach to org development model which can provide more flexible and scalable environment for development. Also it can provide source tracking in ...
Angus HO's user avatar
1 vote
1 answer
1k views

Why does my SFDX deployment validation fail while a change set with the same components and specified tests passes?

I needed to validate that the deployment of some components would succeed. The deployment would be between two sandboxes of the same production org. The components were two class/test class pairs that ...
Gabriel Rivera's user avatar
3 votes
0 answers
134 views

Error "permissionsets/MYPERMSETNAME'S.permissionset -- Error: insufficient access rights on cross-reference id" when deploying using ANT

We are currently using Azure Pipelines as our tool for CI/CD. For our Deployments, we are currently ANT and everything was working fine until we added "Permission Sets" and "Profiles&...
Rodrigo's user avatar
  • 1,295
5 votes
1 answer
639 views

Deployment is failing due to "weird" character

Our admin created a new picklist field (Client_Temperature_Status__c) on the Account object and the values added are actually emojis selected using the Emoji Picker on Windows. Here are the values ...
Rodrigo's user avatar
  • 1,295
0 votes
0 answers
497 views

Admin.UserCanEditFieldPermissions error while deploying using Bamboo

Error: "profileName", line 0: Error Admin.userCanEditFieldPermissions Having trouble finding information about the above error when deploying Profiles using Bamboo. The deployment in ...
wbrproductions's user avatar
1 vote
2 answers
5k views

Property 'itemInstances' and 'processOrder' not valid in version 48.0 error when deploying in Production, even though Production is 49.0

When trying to deploy the converted metadata using VS code sfdx force:mdapi:deploy deploy to my Production Org and I get the error Property 'itemInstances' not valid in version 48.0 and Property '...
nSv23's user avatar
  • 554
0 votes
0 answers
3k views

SFDX force:mdapi:deploy Profile Search Layout: - System Administrator - not appropriate for object

I am trying to use force:mdapi:retrieve with force:madpi:deploy to move some sandbox dev org custom objects and supporting customisations to a scratch org, in order to be able to subsequently push a ...
josephh's user avatar
1 vote
2 answers
5k views

Deploying mdapi and source to org is failing with "Unexpected file found in package directory"

I'm having trouble deploying my mdapi Steps: sfdx force:mdapi:retrieve -s -r ./mdapipkg -p -- This gets the latest version of managed package from our Packaging Org -- I did not convert to the new ...
Ryan McNeely's user avatar
2 votes
4 answers
3k views

Does SFDX force:mdapi:deploy respect .forceignore file?

I'm trying to work in a github repository project that is not in Source format and is using Metadata API format structure. The repository has stored all component code into an src folder including ...
VarunC's user avatar
  • 6,000
2 votes
2 answers
8k views

Deployment to Production Org using VS Code

I need one help to deploy different components like classes, triggers, objects, profiles, permission sets, etc from sandbox to the production org. I used following command to deploy all the items on ...
Ghanshyam Kumar's user avatar
3 votes
1 answer
907 views

Deploy only modified metadata in GitLab to Org

I followed this Trailhead "Build an Automated CI/CD Pipeline with GitLab" and have successfully built a pipeline that can deploy [or install] a package into an Org each time I push some changes into ...
Zhuang Paulus's user avatar
2 votes
1 answer
457 views

How long does deployment of custom metadata from apex take in a production org

We are looking at using custom metadata type in a managed package. When in a scratch org deployment of custom metadata is speedy. For those of you who have done this in production, does deployment of ...
Eric's user avatar
  • 54.2k
3 votes
0 answers
7k views

SFDX deploy ECONNRESET

During a sfdx deploy, the CLI launched a random exception: ERROR running force:source:deploy: read ECONNRESET Build step 'Execute shell' marked build as failure Someone has an idea of the problem? ...
Oscar's user avatar
  • 41
0 votes
0 answers
661 views

Deactivate all triggers and validation rules as post refresh step?

I have multiple sandbox related to the production org. Currently I wanted to refresh my full copy sandbox, There is a way that i can provide an apex class to run post refresh. The apex class which ...
Sudarshan's user avatar
  • 391
1 vote
1 answer
1k views

ANT deployment error in Communities?

I have a partner community which had a 'New Lead' link on community header which opened up Lead list view. Now i have changed it to open a community page. When i deploy this change set using ANT to ...
Rikshit Rawat's user avatar
0 votes
1 answer
315 views

Second Generation Package metadata deployment to packaging org

I'm having issues deploying my mdapi output directory to my packaging org. I'm using SFDX and second generation packages. I'm almost considering trying to create a 1GP from my source. Do the following ...
Ben Baik's user avatar
0 votes
0 answers
496 views

force:mdapi:deploy fails with RunLocalTests + test coverage > 75%

As other people (see Code Coverage during sfdx force:mdapi:deploy) I am unable to move code using sfdx force:mdapi:deploy to another org due to Apex Class Coverage. But as @sfdcfox notes out: If ...
Robert Sösemann's user avatar
0 votes
1 answer
3k views

How to check deployment history in production org

In production org when I click on the deployment status, it shows a list of passed and failed deployments like below image if it is deployed from a changeset then in name section it shows the name ...
gs650x's user avatar
  • 2,680
0 votes
1 answer
90 views

Test methods not executing on sandbox org while deploy metadata

I'm trying to run ant command - deploy and deployCodeCheckOnly - on my sandbox org. In both targets, testLevel attribute value is RunSpecifiedTests and RunLocalTests. Commands executed successfully ...
Anurag Bhardwaj's user avatar
1 vote
1 answer
203 views

SFDX: force:mdapi:deploy -r to reference a file

Is it possible to reference a file within force:mdapi:deploy -r in order to extract the names of the test classes to run? What I am trying to achieve is something like: sfdx force:mdapi:deploy -c -d ...
Arthlete's user avatar
  • 4,957