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.
1
vote
1answer
18 views
Does @isTest(OnInstall=False) have any effect on unpackaged code?
I am wondering if using this attribute will keep my test from running when I push code from sandbox to production?
Specifically I would like to use this to create bulk tests that I may not want to ...
3
votes
1answer
38 views
Environment specific variables
If I have a variable that I want to vary by environment, what is the best way to implement this in Salesforce?
For example, in dev I want to point to one external server, in test different one, and ...
2
votes
2answers
25 views
Server time-out during save\deploy in Eclipse
I have continuously gotten server time-out errors ("waiting for a response from server...." etc. ) when deploying to Production from Eclipse. However, after I get the error and then go into Production ...
1
vote
1answer
18 views
Is it possible to migrate changes to OWD's / Sharing Rules via Changesets?
Is it possible to migrate changes to OWD's via a Changesets?
If it is possible, what is the category name to look under when adding an OWD to a changeset?
2
votes
3answers
477 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 ...
1
vote
1answer
32 views
How to Identify Field Usage in Page Layouts
We are cleaning up our environment and would like to know which fields are not being used in a Page Layout. Does anybody know of an app that can accomplish this for us ? Ideally, there would be one ...
2
votes
2answers
88 views
Apex class won't save for lack of test coverage
I have been using Force.com IDE to work on VisualForce pages and classes directly in a live development environment. I was unaware of the requirement that 75% of your code had to be covered by tests. ...
3
votes
1answer
58 views
Deploying classes with the Migration Tool
I'm new to SalesForce development, so forgive my if this question doesn't make sense.
I've opened my org in sales force and have synchronized labels, classes, pages, custom objects and triggers and ...
0
votes
0answers
38 views
Changes to Workflow Metadata Email Addresses in Sandbox
We maintain all of our Salesforce metadata (classes, objects, pages, etc.) in GIT, and we use this to go between our Production and Sandboxes.
Recently, when we went to do a "refresh from server", ...
3
votes
1answer
46 views
Sales force promotion
There are a few things, like sites, that have settings that contain a sandbox specific user name that blocks promotion of the object into another sandbox/org. Is there any way around this. It would be ...
3
votes
1answer
36 views
Deploying custom setting using ant
I was looking at this doc : http://www.salesforce.com/us/developer/docs/daas/salesforce_migration_guide.pdf
I am preparing a ant manifest for migration and cannot find custom setting in the doc, I ...
3
votes
1answer
51 views
Failure of a Test Method due to UserInfo.getSessionId value?
Test method which asserts expected and actual URL fails on PROD while there are no issues on a sandbox. PROD has the actual sessionId in the URL, while sessionId value at a sandbox is: ...
3
votes
1answer
35 views
Moving data to fit new data model
I am about to deploy a new version of an app. The new version has a very different structure to it, with many new custom objects. In some cases a custom object has been split into two separate large ...
2
votes
1answer
28 views
Deployment questions
We are currently working on what will be the next version of our company's main app. The changes are extensive. They will involve a great amount of change to the metadata including many new objects, ...
2
votes
0answers
36 views
Deploying metadata to Group Edition
I'm attempting to deploy a page-layout with the ant-migration tool to a Group Edition org, however, when I do so using the <sf:deploy> call, the system attempts to run the unit-tests, and throws ...
1
vote
2answers
53 views
Can code be deployed straight from the CRM?
I've got a bit of a head-thumper on my hands. I've got test cases for two new triggers written, and in the Developer Console in my sandbox, it says my code coverage for all tests is 87%. However, when ...
3
votes
4answers
61 views
What is the most effective way of creating a change set?
I'm doing a big deployment (for me anyway) of 6 custom objects and a hundred or so custom fields.
I'm now starting to build the outbound change set but I'm worried that I may forget to add some ...
3
votes
1answer
92 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"?> ...
2
votes
2answers
99 views
Running Tests from Eclipse Fail but Running Same Tests from Salesforce.com Passes
I went to make a change to a trigger today but when I went to deploy it the tests failed and said we had 0% coverage when I know the last time we deployed we had something like 80% coverage.
I ...
2
votes
1answer
85 views
I get this error when deploying reports. Why?
I get this error when deploying reports. Why?
Action: NO ACTION Result: FAILED Problem: filterlanguage:
Invalid value specified: 1.
5
votes
1answer
86 views
Unable to deploy httpCalloutMock based code to production due to NPE that does *NOT* occur in sandbox
Good morning. I've been beating my head against this for the past 24 hours.
The following three links are:
RestClient class - https://gist.github.com/2a2dd1e1b227dac24e80
RestClient Testclass - ...
2
votes
1answer
281 views
is there any way to show a single VF page as related list across all objects?
Is there any way to show a single vf page as a related list (inside a detail page layout) across multiple / all custom and standard objects like notes and attachments?
I have integrated Salesforce ...
3
votes
1answer
46 views
Help on reducing deployment time
We have a unique situation. We have a force.com site implementation where we have around 150 visual force pages and around 250 apex classes. The classes are tightly coupled from an architecture ...
2
votes
2answers
117 views
Force.com IDE: migrate custom object from one org to another
I am new to Salesforce.
I created a few custom object, triggers and classes under one Saleforce entity. Later, I downloaded them all to IDE project. I want to migrate them to another Salesforce ...
3
votes
1answer
150 views
custom object fields not showing up after deployment
I created a changeset and deployed around 40 custom objects to another sandbox. On the destination sandbox, the custom fields dont show up on the page layout when i edit or add a new record for the ...
1
vote
1answer
141 views
Deploy VF with RemoteAction
I have a visualforce page which calls methods tagged with @RemoteAction. The methods are in an extension class which is public, like methods. The class is the extension used in the page. In sandbox ...
5
votes
3answers
112 views
Do I need to test other unrelated classes when deploying a new class?
I have updated a class in a sandbox and successfully tested it. However, when I try to deploy it to production I am getting errors of tests which are failing for other classes which this class has ...
4
votes
3answers
86 views
How to dynamically update custom links between sandbox and production?
I have a custom link in my sandbox: http://cs7.salesforce.com/00Q/e?name_salut....
However, when deploying to the production, the link is still pointing to the sandbox, while the production is at eu1 ...
4
votes
1answer
76 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 ...
2
votes
1answer
33 views
Where to check the deployement
I have moved a custom object from one Developer Edition to other DE using Force.com IDE. Where can I check this deployment's status?
Can anyone tell how to resolve this?
11
votes
3answers
181 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 ...
4
votes
1answer
95 views
How to view the detailed debug log of the change set validation in production
I pushed a changeset from stage (sandbox) to production. Everything worked fine in stage but in production it didnt. It just says "Test Coverage of Selected Apex Trigger is 0%, at least 1% test ...
5
votes
1answer
146 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 ...
2
votes
1answer
33 views
Enabling Case.IsSelfServiceClosed on Dev Org?
I'm deploying a bunch of meta data, including profiles from an EE to a Developer org. I'm currently running into a dependency in the profiles referencing Case.IsSelfServiceClosed . it doesn't exist ...
4
votes
1answer
71 views
What is the Deployment Testing Scope
I have a question related to Salesforce.com Deployment. When we try to Validate/Deploy a new Change Set, am I right when I say that it will execute every single test affected by the Apex class / ...
2
votes
2answers
91 views
Is an Inbound Change Set automatically deployed if it contains just tests
I deployed a Change Set containing a single test from a sandbox to production. I received an email that states the Change Set has been successfully uploaded.
When I inspect Inbound Change Sets page ...
7
votes
1answer
724 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 ...
4
votes
2answers
169 views
Profiles promoted through change sets appear to work only if profile already existed in target org
My experience has shown two distinct behaviors.
Case 1:
Placeholder Profile "Profile 27" created in production.
Production org copied to Sandbox. Development and config occurs in sandbox. Change ...
3
votes
1answer
102 views
Ant Migration Tool - Order of Package.xml File Matter?
Does the order of the package.xml file matter? For instance:
<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<types>
...
1
vote
2answers
111 views
Why I can edit an apex class in sandbox, but not production. What works in sandbox fails to deploy in production.
I installed an unmanaged app (by @michaelforce http://goo.gl/8rx7t) to enhance the "Add Products to Opp" page. It works great in both Prod and Sandbox.
However, I need to add the Discount field to ...
0
votes
1answer
41 views
Deploy Selected Classes with Ant
Supposing you want to deploy only selected classes using ant from the force.com ide to various orgs. This can be tricky because you need to ensure both your package.xml and your payload (either your ...
0
votes
3answers
843 views
Generating package.xml for deploying with Ant from Eclipse
I'm using Ant to deploy from within Eclipse and facing a challenge of having to manually manage my package.xml files.
Currently I am unhappy that I a) have to manually manage my package.xml entries ...
0
votes
1answer
34 views
How to use the Migration Tool with Single Sign On?
I've used the Ant Migration Tool previously, but only in an Org that allowed a username/password login. Now I'm trying to get it to work for deployment to an Org that uses single sign on, but I can't ...
1
vote
1answer
127 views
Deploying source for a Managed Package to new development environments
Our Managed Package is quite large and we are looking to spin up a couple of new Developer Edition environments for our developers. I'm wondering how others are managing the initial metadata ...
3
votes
7answers
746 views
Deployment with Force.com IDE Taking Forever
We're experiencing extremely long deployment times even when deploying single classes using the force.com IDE plugin to eclipse. The deployment takes up to 1 hour yet running all unit tests from the ...
7
votes
3answers
194 views
Can the PackageVersions element of the metadata be automatically updated
I'm working on an application that consists of a base package and an extension package. Every time I update the base package in the development environment, I have to change the ...
2
votes
2answers
129 views
How do I deploy a changeset from Sandbox to UAT sandbox to Production?
I want to create a deployment chain where I configure a changeset in a DEV sandbox, deploy to UAT (where it can be tested but not changed) and finally deploy that same changeset from UAT to ...
3
votes
2answers
504 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 ...
2
votes
1answer
135 views
Deploy long assignment rule from sandbox to production?
What is the easiest way to deploy long (~100 steps) assignment rule from sandbox to production?
Edit: Currently it is not possible to automate this. What I am looking is for best practices to reduce ...
1
vote
2answers
148 views
Deploying an Apex Class for a Custom Button - Too Many DML Statements Error
I am attempting to deploy an Apex Class from a sandbox environment to a production environment of Salesforce and I am having issues with the deployment. I am very new at this, so please forgive my ...