Questions tagged [deployment]

Deployments in Salesforce incorporate any action that needs to be taken to get a system from one organization to another, be it a sandbox to production, sandbox to sandbox, or even developer org to developer org.

Filter by
Sorted by
Tagged with
0
votes
1answer
226 views

Deploy fields in field sections on dynamic forms

I am deploying an app that uses Dynamic Forms with multiple field sections. However, the target deployed environ only shows the field sections without any of the fields in them. There are no records ...
1
vote
1answer
107 views

deploying managed package to scratch org failing giving Invalid username, password, security token; or user locked out

Trying to deploy a managed package using ant migration tool getting the above message. Username and password+token from the scratch org are correct. I used the same credentials to test retrieving the ...
0
votes
0answers
263 views

force:source:deploy : only error "Unknown"

After a branch merge, while deploying to an org or trying to create a new scratch org, I also see the same following error "unknown" sfdx force:source:deploy -x /tmp/sfdx-hardis-1g1ugd/...
0
votes
1answer
39 views

Creation of Custom Metadata in a Managed Package

This is an expansion to this question by Robert. Originally he did not put "Managed Package" in the title so I feel like most of the answers missed that part. I am building a managed package ...
1
vote
1answer
27 views

Is there a way to get the ids of the inserted records when using Metadata.Operations.enqueueDeployment

I was going through the documentation and I saw this example public void updateAndDeployMetadata() { // Setup custom metadata to be created in the subscriber org. Metadata.CustomMetadata ...
0
votes
0answers
66 views

Source Deploy, does the package adhere to the package.xml api version?

If I deploy with Force:Source:Deploy command, and the version in the package.xml file is old (48), when the code or other metadata present in the package is at the later version (50). Will it only ...
1
vote
2answers
154 views

Salesforce Git Repository using VS Code

I am trying to set up the Git Repo for our Salesforce instance, we are trying to use VS Code. This is my first time setting up and never used the ANT migration tool. We do manual Change set deployment ...
2
votes
2answers
597 views

A simple try for deploying gets an "An internal server error" from the production

I have installed and configured the Ubuntu 20.04 and Visual Studio Code. It is connected to the my org. But a simple deploying in the production I gets "An internal server error". Sometimes ...
0
votes
0answers
57 views

Unable to deploy analytics studio in sfdx

I have created a dashboard and dataset in scratch org. and I need to pull the code of analytics studio in sfdx with Vscode.. But unable to pull the code. There is any possible any to pull code in sfdx....
4
votes
2answers
300 views

How to deploy parts of ExperienceBundle from source with package.xml (-x option)

I have enabled the ExperienceBundle metadata type and am using SFDX-git-delta to generate package.xml files. SFDX-git-delta will generate a package.xml file like the following when one of the files in ...
3
votes
1answer
331 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 ...
1
vote
0answers
149 views

SFDX force:source:retrieve won't pulldown Workflow, WorkflowFieldUpdate, WorkflowRule, WorkflowAlert

I have tried the following: sfdx force:source:retrieve -m "Workflow, WorkflowAlert, WorkflowFieldUpdate,  WorkflowRule, ApprovalProcess, CustomObject:FF__Process__c" Trying to get a specific ...
7
votes
3answers
3k views

Error: INVALID_SESSION_ID: Session expired or invalid when Deploy on Visual Studio Code

I found some public question which treat this topic, but I didn't get a specific solution. I have this error message when I try to deploy my files from local to my org. Error: INVALID_SESSION_ID: ...
0
votes
2answers
47 views

SFDX - Identify tests for a specific class

I am working on a github action that is supposed to validate a "delta" package of changes in a merge request in a target sandbox. For this validation process i am not supposed to run all ...
0
votes
0answers
9 views

Wrappers Impact on Overall Code Coverage? [duplicate]

If a given wrapper doesn't have any method(even no get;set;) that class won't get listed under 'Overall Code Coverage' section in the developer console. Does this mean such Apex wrappers do not impact ...
1
vote
0answers
80 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 ...
0
votes
3answers
160 views

Deployment Manager not opening

I have installed deployment manager on SFMC account enterprise BU but it is continuously throwing the following error. Can anybody have an idea why i am getting this error. error : mc9gph0gwn67-wz4y01....
0
votes
1answer
42 views

SFDX force:limits:api:display Shows Incorrect / Misleading Values

Today 2021-02-20, 14:30 local time, force:limits:api:display shows: Package2VersionCreates 6 6 Package2VersionCreatesWithoutValidation 500 500 At the same ...
1
vote
1answer
87 views

force:package:version:create fails unless --skipvalidation is specified - How Can I Fix The Problem

I am trying to produce an unlocked package from my VS Code project. The code and components deploy without complaint to my Dev Org (SFDX: Deploy Source to Org) and work according to expectations. I ...
3
votes
1answer
48 views

This app can't be installed. Mismatching Versions

Getting below error message when trying to upgrade my package. The Current Version i have in developed Org is 1.16 and I Created the New Version 1.17 , Now I trying to install in Another Org which i ...
0
votes
1answer
23 views

Field label and page layout updates

I've made an update to a field label and I also updated few page layouts. Assignments have not changed for different profiles. Now I need to deploy these changes from one sandbox to another. Do I need ...
0
votes
0answers
37 views

Community Deployment using Metadata API & ExperienceBundles

We have deployed our community to a sandbox successfully with below components. experiences navigation menu sites Network branding networks Content assets Profiles Static resources and other ...
0
votes
0answers
21 views

Renamed components in Scratch Org and trying to retrieve them

I have created a custom object Named ExampleObject__c and Fields as "Field1__c", "Field2__c", "Field3__c" in my scratch org. and pulled this source from scratch org to ...
1
vote
0answers
109 views

Deploy custom labels using metadata deploy request via rest api

I am trying to deploy some updates to custom labels using rest API via metadata/deployRequest. I found this in salesforce documentation. I want to invoke this rest method via powershell scripts but ...
3
votes
2answers
146 views

Why would unit test failures only occur during deployment?

Got some unit test failures when I am deploying from sandbox to sandbox. Tests pass in source sandbox Tests pass if I deploy with "NoTestRun" and then run them manually afterwards. They ...
0
votes
1answer
179 views

0% coverage error on running specified tests while validating/deploying any change set in Production

I am getting 0% code coverage error while trying to validate changesets in production using run specified tests. I tried 3 unrelated deployments and all of them gave the same error. The changesets are ...
1
vote
1answer
41 views

Migration issue from sandbox to dev org during package creation

I am planning to create a managed package. Since managed packages cant be created in sandboxes , I created one dev org and tried to move the Profiles and Objects from my sand box to Dev org. But I am ...
0
votes
1answer
23 views

How to access changeset without data access?

I want to ask a serious concern due to data privacy. As I have to work from outside country and due to data protection production user data is not allowed to share with me as I have stay outside ...
0
votes
1answer
46 views

Why does a name change result in an invalid type?

I have two Apex classes that differ by literally only their name. Here's MaintenanceRequestBatch.cls: public with sharing class MaintenanceRequestBatch implements Database.Batchable<sObject>{ ...
0
votes
2answers
133 views

Using Destructivechanges.xml and force:source:deploy --ignorewarnings to Production Environment

We are using Github as our source control and Drone.io CI/CD pipelines to handle builds and releases to multiple sandbox environments and our production environment. We would like to use ...
0
votes
1answer
220 views

Error when deploying discord.py bot to Heroku: pathspec 'rewrite' did not match any file(s) known to git

so when I'm trying to deploy my discord.py bot to Heroku, it shows following error when executing the last command: > error: pathspec 'rewrite' did not match any file(s) known to git I already ...
1
vote
1answer
261 views

Permission Set: Existing other OLS/FLS permissions are wiped off in Production

Deployment: We deployed a custom permission set through Copado tool to Production and the git commit for this permission set contains 2 FLS permissions on User object. The scenario here is - other OLS/...
0
votes
1answer
74 views

Error deploying change set

I am validating a change set containing multiple LWCs and Apex from Sandbox to Sandbox. Everything works in the sandbox originating the change. Error when validating: ORA-20070: Assertion Failed ORA-...
0
votes
1answer
160 views

Anyone experiencing deployment being 'stuck' using SFDX?

I am currently experiencing issue with deployment using SFDX being "stuck" without completing the deployment with no errors. This seems to have happened about 4 hours ago. I am ...
1
vote
0answers
23 views

Docker redownloading base image at each deploy (heroku.yml)

My build logs, but the important bit below: aac6a114e757: Pull complete Digest: sha256:48b6801235e4179dec2427bd57853239553ea8bba20fba496df219469370b11c Status: Downloaded newer image for mhart/...
0
votes
0answers
18 views

Trying to delete some classes and triggers using workbench....but it runs the test class i'm trying to delete then it fails

<?xml version="1.0" encoding="utf-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>...
1
vote
0answers
50 views

How can I resolve circular dependencies in Ant destructive changes

Trying to change a field type, that fieldtype is referenced by a page, which is referenced by a weblink, which is referenced on a layout. I'm attemptiong a destructiveChangesPre.xml to take them out ...
0
votes
1answer
64 views

CI Continuous Integration with AWS & Jenkins

I found some examples how to implement CI with AWS ad Jenkins but none of these examples explains clearly what AWS does. As i understood Jenkins is the CI server that interacts between master branch ...
0
votes
1answer
338 views

SFDX - deploy a brand new custom object with only specific fields from one org to another

I have a scenario where I need to deploy a brand new custom object only with specific custom field(s) to another org. The other org does not have that custom object at all. I'm using sfdx for VS Code ...
0
votes
0answers
135 views

ProcessException not available in Winter '21 environment

I have been having issues with the new ProcessException object. It’s available on API v. 50. I have 2 sandboxes that I’m deploying between (the process exception layout, profile metadata, and sharing ...
11
votes
1answer
160 views

Why do we have higher apex async executions on days we deploy to Production?

We call the following endpoint at the same time each day to get a count of our daily async executions to track our usage. /services/data/v50.0/limits The following response gives us the # of daily ...
0
votes
2answers
204 views

Destructive changes for all apexclasses and components

I want to delete all the LWC components and Apexclasses using destructiveChanges.xml. I tried with <types> <members>*</members> <name>LightningComponentBundle&...
1
vote
1answer
147 views

Deploying a Process Builder results in error: The element has an invalid reference to "myVariable_current.RelatedToId"

Given a Process Builder on EmailMessage that references a related parent object in an Update Records action element [EmailMessage].Related To ID (Case) When Deploying this Process Builder to ...
0
votes
0answers
409 views

Deployment to Production org through VS code [duplicate]

I am trying to deploy the components to production org through VS code. I am getting the below error "sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production ...
0
votes
1answer
22 views

Unlocked package is not fully deployed

I have unlocked org-dependet package. There are some layouts on org, for example: Account- layout A, Account- layout B, Account- layout C, Account- layout D, Account- layout E Then I retrieve theese ...
-1
votes
2answers
31 views

INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id:[] error on deployment of test class to UAT

I am trying to deploy the test class to UAT, the test class is working fine dev and have 100% coverage. But when the same test class in deployed to UAT I am getting ...
0
votes
0answers
30 views

Salesforce Workbench vendor/autoload.php

This may be a silly question but where can I find the autoload.php file the shared.php is calling for saleforce workbench. I have been running version 43 for the longest time and went to upgrade to ...
0
votes
1answer
377 views

Custom Metadata Error: Developer name already exists for given entity or has been previously used. Please choose a different name

We are trying to update custom metadata records via deployment from source org (Dev Sandbox) to target (i.e. Packaging environment - Dev Edition), these records were packaged into a managed release in ...
0
votes
2answers
73 views

Is there a best practice on which metadata types can be directly created in Production directly?

We are moving to Copado for migrations and deployments until now we were using change sets etc. If I have to put a governance for which metadata types can be created directly in Prod, what should be ...
0
votes
1answer
22 views

Cloning .json files on python app

I have an issue of Heroku only cloning .py files but skipping .lock and .json ones. The files are necessary for my python script. Is there any reason why deploying from GitHub would cause it? Update, ...

1 2
3
4 5
29