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
59
votes
8answers
44k views

What is the best way to deploy profiles in Salesforce? (especially system admin)

What is the best way to deploy profiles in Salesforce? I have a system admin profile with access given to the objects that i have created in my sandbox. I have about 1000 fields across these objects. ...
36
votes
2answers
3k views

Ghost Schedulable Classes Blocking Deployment

Recently I've been running into issues where deployments were blocked due to a Schedulable job pending or in progress when I'd already cleared the Schedulable job from that class. Any tips for ...
35
votes
5answers
16k views

Object Deploy fails with: “duplicate value found: <unknown> duplicates value on record with id”

When I try to redeploy an object that exists in source and destination orgs, the deploy fails with the cryptic and useless error message: duplicate value found <unknown> duplicates value on ...
34
votes
2answers
311 views

Which kind of issues will be shown at trust.salesforce.com and which issues will be omited?

In the context of a different question, we encountered a deployment performance degradation on EU5 of between 6000% to 10000% using Metadata-API. This means that work (saving a single APEX file to the ...
29
votes
3answers
3k views

Flows/Processes, Version Control and CI

I've started using Processes and Flows and am really excited about these features -- but am still wrapping my mind about how to manage them in Version Control (which I use) and Continuous Integration (...
26
votes
7answers
33k views

How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with id: <unknown>” error

I've just spent several hours trying to fix a deployment that was failing with the following extremely helpful error message: Error: objects/Opportunity.object(2098,13):duplicate value found: <...
23
votes
4answers
16k views

best way to delete unused apex classes and triggers in production [duplicate]

We currently have around 20 apex classes and 5 triggers which are not used in our production org. We want to delete them in our production instance. We dont have ant scripts ready yet to be used for ...
22
votes
4answers
4k views

Ignoring Validation rules when deploying code

Scenario: Production org has sufficient code coverage with unit-tests. Someone adds validation rule(s) which cause the tests to break. Minimum 75% code coverage is no longer there. We come along to ...
20
votes
4answers
5k views

Ant vs other deployment tools

I am wondering if there are any use cases for using Ant specifically over all other deployment methods and tools? It seems Eclipse, changesets and packages have all the functionality you need.
20
votes
6answers
3k views

Problems saving Visualforce page changes in Force.com IDE due to new “sf_com_apps” package

Is anyone else out there encountering problems with the "Salesforce clients connected apps" package (namespace: sf_com_apps) that is being automatically installed into orgs since the Winter '14 ...
18
votes
7answers
6k views

InstalledPackage Failure When Deploying to Sandbox

I'm a bit of a force.com IDE newbie - still learning. I'm trying to migrate a simple custom object (no fields) from one sandbox to another and I'm running into this error: # Deploy Results: File ...
17
votes
7answers
12k views

Do Salesforce developers use Git? How?

Do Salesforce developers use Git? If they do, how does their development cycle look? How do they import projects? Do they do that manually like "create zip - deploy using Ant"? Or maybe there is a ...
17
votes
6answers
2k views

How to keep sandbox in sync with changes from other developers?

We are a team of 9 developers, working on a large project and commits are made to master branch all the time. When I needed to work on any new enhancement I used to pull everything from master branch ...
15
votes
2answers
8k views

Failed to create deployment: This container has a save in progress with deploymentId=[YOUR-DEPLOYMENT-ID]

I received this error message yesterday in the Developer Console, preventing me from saving any new code (Apex, Visualforce) for the past 24 hours. FIELD_INTEGRITY_EXCEPTION Failed to create ...
15
votes
1answer
466 views

Did something change with deploy run test behavior with sandboxes in Spring '14?

Starting a few days ago my apex class compilation time suddenly ground to a halt. After going into the setup deployment monitoring I was at first delighted with the new deployment monitoring UI, then ...
14
votes
2answers
9k views

How can I deploy a connected app from my sandbox environment to my production environment?

I built a changeset and I was able to include all my classes, but it was a surprise that salesforce has not provided any option to deploy a connected app. So how do I go about deploying a connected ...
14
votes
3answers
6k views

How to push code to production with Visual Studio Code & DX

I am using Visual Studio Code to develop new functionality. However, after completing the testing in the sandbox, I want to push the code to production. When I choose "SFDX: Deploy Code to org", it ...
14
votes
1answer
6k views

How to deploy more than one sharing rule in one deployment?

If I keep two criteria based sharing rules in Account.sharingRules XML file, there is a deployment error in start line of the the second rule: sharing operation already in progress. How do we deploy ...
14
votes
3answers
14k views

Why am I getting a not in package.xml error on custom fields when the custom object is in my package.xml?

Question Doing a deployment with ANT that includes some apex and a custom object. However, when I test deploy I'm getting errors about fields not being in the package.xml. Has something changed ...
14
votes
3answers
1k views

Deploy to Production - Cancel Deploy After Test Failure

I am using the Ant Migration Tool for deployments. While utilizing this tool, all deployments are visible under the Monitor Deployments page. In a client's production instance, they have more than ...
13
votes
7answers
11k views

Rolling Back changes in Production

As we know there are two ways to deploy the code from Sandbox to Production Using Ecclipse Using ChangeSet - which is Unidirectional, once committed no changes can be rolled back from Production ...
13
votes
3answers
9k views

How to reduce the test class execution time while deploying?

I have optimized almost all my test classes but the "Run All Tests" execution time is still not reduced. I ran the tests in my full copy sandbox and it took 28 minutes. There are about 464 test ...
13
votes
2answers
928 views

Different symbols when deploying change sets

Does any one know if there is any significance of these different symbols when deploying change sets:
12
votes
4answers
4k views

Why is migrating changes between multiple orgs such a pain

So I've developed a couple of Salesforce / Force.com projects but the one thing I really hate is migrating changes between orgs. Maybe I'm doing it wrong, or I'm missing tools but something just ...
12
votes
2answers
7k views

Deploying Profiles / Permission Sets that include object & field permissions for Managed Objects

Anyone know if it's possible to deploy profiles/permission sets via Eclipse or an Unmanaged Package that contain object & field permissions for 3rd party managed objects? I'm trying to deploy a ...
12
votes
4answers
6k views

Deploy incremental changes using Github and Jenkins

We are using Jenkins and Github to automate deployments from dev to test to production and currently do a full deploy (the whole package) based on what is stored in GitHub. We would like to improve ...
12
votes
1answer
6k views

Getting an error that a flow “was” activate and cannot be overwritten

I'm using Salesforce Migration Tool (Ant) to deploy flows and processes. If memory serves, so long as the flow in the destination org was not activate (or deactivated) I could overwrite it. If you ...
11
votes
5answers
452 views

2-10x Slower Deployments with Winter '15?

We've recently had deployments spike in several of the client orgs we work with. The worst example jumping from 45 minutes to upwards of 7 hours. A current deployment is 3 hours in and has only ...
11
votes
1answer
2k views

Why not use unmanaged packages to migrate metadata to production?

Recently we've been developing an unmanaged package to bundle all our ongoing client metadata in one unit. This is useful when attempting to move stuff between sandboxes before the package goes to ...
10
votes
2answers
3k views

Upgrade from a Beta managed package install to the full Release version

In a sandbox I had the current production release v1.14 of a managed package installed. In the developer Org I created a new v1.15 Beta managed package to test out the features for the next release. ...
10
votes
5answers
16k views

Deploy to different environments using Eclipse

I am new to deploying from one org to another, Can someone refer some good documentation on how to deploy using Eclipse. Also, any steps / pointers would be great..
10
votes
2answers
5k views

How to use new SandboxPostCopy?

The new Sandbox Post Copy tasks are a great addition and I'm eager to try them but until the release to Production starts on Feb. 6, it seems impossible to experiment with the behavior. I ...
10
votes
2answers
1k views

Unable to deploy code to Sandbox as installed Managed Package test methods are failing

I am using ant tool to deploy code to Sandbox which has Managed package test methods failures. Build error shows the validation rule message. Build is executed by Jenkins schedule job, so turning on ...
10
votes
2answers
2k views

Deploying From Sandbox (Enterprise) - loss of permissions, field security, etc

I have been reading up on this particular area of concern and from what I'm reading, it sounds like the solution I've been creating for the past two weeks is going to be a nuisance to deploy from ...
10
votes
2answers
1k views

When building a package with a dependency how is the minimum version of the dependent package determined?

I've a managed package, which I'll call Package A, that has a dependency on another package which I'll call Package B. The meta.xml files for the classes in Package A have the majorNumber and ...
10
votes
1answer
3k views

Is it possible to deploy workflow rules and field update actions which reference PersonAccount record types?

I am performing a deployment from one sandbox to another using ant. The sandboxes both have PersonAccount functionality enabled. The source org has a PersonAccount record type with the name of HCP and ...
9
votes
3answers
2k views

Can't install managed package because packaged permission set seems to have lost a read permission

I developed a Managed Extension Package. When I try to install it or create a patch org for it, this fails with no error but the note to call Salesforce. Support told me that it fails due to: ...
9
votes
2answers
7k views

Cannot set sharingModel to ControlledByParent on a CustomObject without a MasterDetail relationship field

I am trying to deploy an update to a custom object. The object and classes associated with it work perfectly in my sandbox, but when I try to deploy, I get the following error: Cannot set ...
9
votes
1answer
5k views

sf:retrieve gets a file, but sf:deploy can't find it for the deploy?

I have the following set up in my build.xml file: <target name="retrievePackage" description="Retrieves the specified package from the specified organization. Pass the name of the deployment file ...
9
votes
4answers
29k views

Invalid Cross Reference Key : Record Type ID value isn't valid for User: 012v00000008f4nuBB

I am having some issues. The below is a code snipet of my test class. The class complies and produces 96% of coverage with no errors. When deploying in production it throws the above error. ...
9
votes
2answers
6k views

Inbound changeset not showing up in target organization

I am trying to deploy a change set and even though I have received the email notifying me that it is ready, nothing appears in the target organization. This is after multiple successful uploads ...
9
votes
3answers
4k views

Can't Deploy Due to Errors in 3rd Party Packages

Short Version: I am getting errors in 3rd party unmanaged packages that are preventing me from deploying any code to our production instance. I'm using eclipse as my IDE is their anyway to bypass the ...
9
votes
1answer
650 views

How to clean organization?

I want to delete all custon things (custom objects, pages, Apex classes, trigers and so on) by using Ant build tool. How can I implement It. My destructiveChanges.xml looks like: <Package xmlns="...
9
votes
2answers
2k views

Ant Migration Tool - Not retrieving Task fields

I'm not able to retrieve any custom fields on the Task object. I'm able to get Contact custom fields fine. These fields are included in a managed package, but I don't understand why the Contact ...
8
votes
3answers
5k views

Is there a way to view recently changed Apex Classes in Salesforce?

I can see multiple use cases for this, but today's case is: When deploying, we have to choose classes to add to the change set. It would make it much easier to know what classes to add if we could ...
8
votes
3answers
7k views

1.how to stop run all tests? 2.validation running for about 6 hours in production. how to stop it?

How to stop run all tests? I have clicked run all tests in my sandbox and usually gets completed in about 15 minutes. Now its running for about an hour and still not completed? Note :- Mine is a ...
8
votes
1answer
10k views

how to deploy a report type from sandbox to production

It does not seem to be possible to deploy a report type using the deployment wizard in salesforce. How can I deploy a report type from my sandbox to my production org? I need detailed instructions.
8
votes
2answers
4k views

Is it possible to Remove fields using Change Sets deployment?

I want to Remove some custom fields by using changesets. Is it possible to remove fields using Change Sets deployment? Or is it dono manually in Production env.?
8
votes
2answers
6k views

Deploy custom labels with Ant

We are trying to start using custom labels, but are having issues deploying them using our ant script. Our custom labels file looks something like this: <?xml version="1.0" encoding="UTF-8"?> ...
8
votes
2answers
584 views

Why is this Apex Class dependent on a bunch of completed Apex Jobs?

I've got a Batch Apex Class like so. (It happens to use the Dan Appleman decoupler pattern, augmented for batch. Thanks Dan!) public with sharing class Dispatcher implements Database.Batchable<...