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
1
vote
0answers
40 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
30 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
6 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
1answer
24 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
0answers
34 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
19 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
26 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
38 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
11 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
21 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
17 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
61 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
121 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
37 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
21 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
21 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
28 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
35 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
40 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
55 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
51 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
47 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
20 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
16 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
36 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
32 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
60 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
49 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
115 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
1answer
63 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
36 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
175 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
17 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
29 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
23 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
64 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 ...
1
vote
1answer
31 views

Unable to deploy profiles alone using change sets

Which components need to be added to deploy profiles using change sets
0
votes
2answers
40 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
19 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, ...
2
votes
0answers
173 views

Metadata retrieve works, but deploy fails

Org API=49. Process Builder flow API=49, I retrieve flow with no error, then try to deploy it back to the same Org without any changes and get an error: C:\2\force-app\main\default>sfdx force:...
3
votes
2answers
376 views

Deploying Profiles and Fields with SFDX in VSCode

We're deploying from Stage to Prod via VSCode and package.xml. We're concerned of overwriting certain existing Profiles on Production. We haven't updated Stage from Prod in too long. We still need to ...
0
votes
1answer
34 views

Class having 100% code coverage on UAT can't be deployed due to 63% during production deployment text check

I have apex class SalesProcess which has 100% code coverage in UAT. But during deployment to Production I get error saying that it is only 63 % covered. No other error just that. The class: public ...
0
votes
0answers
314 views

External String does not exist error when doing a validation deployment

As part of a new development, I am deploying a set of metadata. I have an ApexClass and a CustomLabel among other things. The ApexClass is making use of a new CustomLabel I am also deploying, however, ...
0
votes
1answer
27 views

Disable 'Deploy' button for inbound changeset

Is there any way to disable the 'Deploy' button for inbound changesets? As per my requirement, certain profile users should not have permission to deploy inbound changeset in production, so I wanted ...
1
vote
1answer
62 views

Deploy Metadata with Apex Testing Using REST error

I'm trying to deploy some ApexClass from Apex to Production Org using multipart/forma-data to /services/data/v48.0/metadata/deployRequest following docs. In the documentation is this example: POST /...
0
votes
1answer
63 views

Salesforce Community: Adding Asset files to a change set and validating without errors

I am in the process of migrating a salesforce community from the dev sandbox to full sandbox. I have successfully created and validated all required Components Available in Change Set, (https://help....
1
vote
0answers
470 views

ERROR running force:source:deploy: InvalidPackageDirectory

Facing below issue in Jenkins Deployment from yesterday(It was working fine till yesterday). Can you please suggest a solution to resolve this issue? sfdx force:source:deploy -p ./deploy-sf -l ...
0
votes
0answers
11 views

Apex Test Class for PageReference urlRedirection() [duplicate]

I'm hoping someone may be able to help with a very rudimentary test class. I'm brand new at coding apex and I have a very simple redirecting VF page with a very simple controller that I need to ...
0
votes
0answers
41 views

Vs code Sfdx Authorize org failed after update

I used to work on Vs code for lwc development . I am not aware of the previous version but After Updating to version : 1.50.1 . I'm unable lo authorize to dev hub . I have uninstalled multiple times ...
1
vote
1answer
46 views

How can I automatically detect if any deployment is running in a sandbox?

I have several sandboxes available that my Azure DevOps pipeline can deploy to. I want my pipeline to check each sandbox to see if there is a deployment running. If there is, try the next one, if not,...

1
2 3 4 5
27