Questions tagged [production]

An instance of the Force.com platform that has active paying users accessing business critical data

Filter by
Sorted by
Tagged with
88
votes
8answers
21k views

Can we determine if the Salesforce instance is production org or a Sandbox org?

I am looking for the most efficient way of identifying the type of org (Production or Sandbox) via Apex code. URL scraping is not useful to me, since I'd like to get this information inside a trigger ...
10
votes
4answers
16k views

How to delete a class from production using destructiveChanges.xml

Can any one tell me the steps to delete a class using destructiveChanges.xml
10
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
1answer
2k views

Deleting a class without IDE

Salesforce makes it hard to delete classes in a production org. Our change control policy doesn't allow for the use of the IDE to make changes to the production org...everything goes through change ...
10
votes
1answer
275 views

Independent Auto-Number Sequence

How do I specify API 30.0's new Independent Auto-Number sequence feature for tests run while migrating code from Sandbox into Production? I see the checkbox for this on Test Options, but how do you ...
8
votes
2answers
3k views

How can we delete/remove all the customization from production environment

What is the best way to remove all the customization apex classes / pages from production. One way I know is using eclipse, delete the classes in sandbox and deploy the changes in productions. But its ...
8
votes
4answers
1k views

Can I choose which records are copied in a Partial Copy sandbox?

We have a partial copy sandbox that we're using for development and testing. This is really helpful as some of our applications internally store Salesforce id's. However, there is a limitation with ...
7
votes
2answers
911 views

Disable trigger in production. What are the consequences?

The salesforce documentation says: How do I disable a Trigger in a production environment? You must consider the consequences of disabling a trigger in the production environment during work ...
7
votes
2answers
422 views

How to migrate entire production org to a new production org?

For legal reasons we have to clone a salesforce production org (i.e. migrate entire org to a new one - recreate all the standard and custom metadata, data, managed packages, users, integrations etc) ...
6
votes
5answers
1k views

Background color scheme for distinguishing between environments (Sandbox vs Production)

Can we brand Staging environment(Sandbox) differently than production environment because it was causing confusion with the end users not knowing which they were logging into. With more users moving ...
5
votes
1answer
1k views

Stumped! Sandbox code coverage 89%, no org data in test class, yet deploy error - average code coverage is 0%

I created a rather simple Apex class VF11_controller in sandbox, which I'm looking to deploy to production. This apex class has one dependency, a VF page, which I added too in the change dataset. ...
5
votes
2answers
869 views

Disable User In All SF Environments/Orgs (Production and Sandbox)

Anyone know of a clever way to disable users who's left the company in all Orgs? In our particular case, one Production with several Sandboxes. The closest I can come up with is to perhaps grab ...
4
votes
4answers
2k views

Differentiate Production/Sandbox Instance?

I know it is fairly straightforward in Apex to determine if the Salesforce instance is production org or a Sandbox org, but I wonder if the same is possible via formula? I have also read What are ...
4
votes
2answers
252 views

Salesforce development and security review lifecycle

I'm a bit confused about the number of orgs needed (and their purpose) for a development and security review process for a managed package. Do I need separate orgs for development and packaging? ...
4
votes
3answers
2k views

Formula Field Deployment to Production

I am trying to deploy a couple of formula fields from sandbox to production but I am receiving this error: The formula references fields across 11 relationships while only 10 are allowed. Now I know ...
4
votes
2answers
3k views

Performance difference between Sandbox and Production instances?

I am seeing little bit difference in the page response time in sandbox and production org's. Actually, i am thinking the production org instance is faster than the sandbox instance because it might be ...
4
votes
2answers
2k views

Managed app installation on Salesforce Production Org

Salesforce has two versions of Managed app Managed App ( Beta ) Managed App ( Released ) Currently inorder to do a prototype testing I released a Managed App (Beta) and simulated how a real ...
4
votes
2answers
614 views

Getting production organization ID from sandbox using API

Is there a queryable ressource through the API from a Salesforce sandbox instance that can return the related production environment organization ID?
3
votes
1answer
379 views

Salesforce Sandbox as a backup

Can a Full Sandbox be used as a backup to your production environment? When you start a copy, if changes are still being made in your production environment are these changes also being copied into ...
3
votes
1answer
1k views

Query works in Anonymous Window but fails in Test Class

I am new to APEX and ask forgiveness if the answer to my question is obvious, but I can't find a reason for the action that occurs in the Test class versus production and the Developer Console ...
3
votes
2answers
310 views

Formula field: Distinguish between PROD and FULL copy sandbox

Inside a formula field I want to be able to determine whether the org is the production org or a full copy sandbox. After researching I came up with this: IF($Organization.Id = 'XXXXXXXXXXX', "PROD", ...
3
votes
1answer
3k views

Is it posible to upload Change sets from Production to Sandbox?

I was trying to upload a change set from my production org o sandbox but I always got the same error: Change set: CP_ChangeSet10/01/2014 (04td0000000VI0v) Organization: Casas Platino (Production) (...
3
votes
1answer
85 views

How do I return a dynamically casted list?

So I have the below code which I created that dynamically creates and runs a query, and stores it within a type casted List. But I cannot figure out how to get it to work with the initial declaration '...
3
votes
1answer
303 views

Is deploying of custom metadata records from sandbox going to overwrite existing metadata records in production

I wonder about this. Let's say: Step 1: I deploy custom metadata from Sandbox to Production. Step 2: Then somebody adds records to the deployed metadata in Production. This will create a difference ...
3
votes
1answer
171 views

How to get a “real” production org for testing

Disclaimer: I know how to create any type of orgs using the Environment Hub app. For our ISV app we need to test a feature that is deploying Apex classes to the user's org. Code-Deploying on non-...
3
votes
1answer
233 views

Steps for completely resetting production environment

The only answer I find seems to be the ant undeploy tool, but this requires an xml specifying the changes, + we've never worked with it before. Is there any way to completely reset a production org ...
3
votes
1answer
384 views

Developer Console checkpoint in Salesforce Production

Is it possible to use checkpoint feature for apex classes and triggers directly in production instance? I could not find any details about that here in Salesforce documentation. Thanks!
3
votes
2answers
1k views

Apex trigger keeps failing in Production but passes in Sandbox?

I have a trigger that works in my Sandbox, but when I try to deploy in Production, it keeps failing with the following result: Deploy Error Average test coverage across all Apex Classes and Triggers ...
3
votes
1answer
144 views

Test class completes successfully in production AND newly refreshed sandbox, but fails on deployment

We have some custom code from before I joined the company that is showing some unusual behavior. Code was somehow successfully deployed to production (before my time), and the test code passes within ...
2
votes
4answers
9k views

Copy Data from Production to Sandbox after sandbox refresh [duplicate]

We have a developer sandbox which is refreshed quite frequently. There are some some seed objects that need to have data so that the sandbox becomes usable. I am trying to develop a script which will ...
2
votes
1answer
97 views

Whats the best way to clean the production environment?

I have the Production environment with full of unwanted configuration. I have developed and developing things in my Sandbox environment and I will start pushing that to production later sometime next ...
2
votes
3answers
1k views

Production code coverage error on deployment but in sandbox coverage is above 75%

I'm trying to deploy a change set to my production org. I'm running only tests for the test classes I'm including in the package. But there is still one class with coverage below 75%. In my sandbox, ...
2
votes
2answers
674 views

<Production> Query works in Developer Console but not on Apex Class

I have simple query in my apex class. It works 100% in all the developer orgs we tested. List<Account> allAcc = new List<Account>([SELECT Id FROM Account WHERE Primary_Adviser__c =:...
2
votes
1answer
273 views

What is the Relation of Profile Ids across Sandboxes and Production?

Is there any relationship between Profile Ids across Sandboxes and production? Found somewhat similar post here. I have noticed that the id is equal for System Administrator profile and I am using it ...
2
votes
1answer
3k views

Unable to deploy code due to code coverage < 75%

I have in my prodn org test coverage of over 82%. I ran the Test-> runall test from developer console. I want to move in a few fields and 2 classes and 1 test class into prodn. These 2 classes have ...
2
votes
1answer
1k views

How can tests fail in production?

This question is connected to my previous question here: User with read only profile updates records We have a test case that started failing recently. It is also failing in production. As far as I ...
2
votes
1answer
177 views

Require Secure Connections (HTTPS) field in production environment

I have a force.com site. Currently it has http, I would like to change it to https in production environment. I wanted to changed it to https by checking the checkbox Require Secure Connections(HTTPS) ...
2
votes
3answers
291 views

Deployment from Production(Enterprise) to Production(Enterprise)..?

Hi i have one enterprise org where there is a lot of work including VF pages,triggers,reports etc...I want to deploy all the work to a new Production(Enterprise) instance..How can i achieve this...I ...
2
votes
1answer
148 views

How to upload from sandbox to production quickly?

Is it everyone that faces the same issue? I am trying to upload one class and it takes up to half a day. This platform supposedly should be easy to manipulate, but one hour in today and I can't ...
2
votes
1answer
145 views

Advice on recompilation of production classes

I have an APEX Class that needs some updates, that is on version 18. When I make the updates, the version is also updated to the most recent (v41). When I try to push to production I get errors saying ...
2
votes
1answer
194 views

Merging sandbox to production - SFMC integration

We have integrated SFMC with our SIT SFDC sandbox. But what will happen with the integration when we merge to production? The integration is linked to the SFDC Org ID, so we assume that we will lose ...
1
vote
1answer
265 views

Production and Developer Sandbox

My company's Salesforce Org has everything(Data) in Production Sandbox. But the salesforce best practice would be to develop in developer sandbox and to deploy in production(Correct me if I am wrong). ...
1
vote
4answers
3k views

Change sets from sandbox to production

I have moved my custom object(Reservations) with the custom fields(near to 50 fields) created in Sandbox into Production but when i try and create a new res I can use only the standard field of that ...
1
vote
1answer
137 views

No sandbox with the production org.

I have client who have purchased a salesforce licence. He provided me production org. When I asked for sandbox he replied that there is not sandbox when he purchased this licence. Is there any ...
1
vote
2answers
1k views

Salesforce Production Org - Login action link missing in Users in Manage Users->Users. How to login as other user?

I am trying to login as other users in production org using Login action link in Manager Users --> Users page. But i did not find the link except the Edit action link but in sandbox. How to login as ...
1
vote
1answer
58 views

Returning PRODUCTION Org to Virgin Status Without DEVELOPER Tools [duplicate]

I have a scenario: Previous consultants and users had initially done some work inside our Production org (we have NEVER DEPLOYED to Production - they simply started to do the setup of this company's ...
1
vote
2answers
48 views

Duplicated informations

I’m looking for a way to know which are the “duplicated ” records in production . I want to know witch are the leads record matching the following condition: lead email=Contact email. So check for ...
1
vote
2answers
409 views

Moving code to production

I am developing a code in my Dev org. I wish push this change to the production org but I do not have the latest prod copy. How do I go about this? If I copy the prod to Dev first will my new code in ...
1
vote
1answer
1k views

Deploy Sandbox to production: Cannot specify a startsWith attribute for this language

I'm trying to migrate some changes to the org org sandbox to production. Use the Eclipse IDE to develop, however, when I try to migrate a custom object in the "deploy to server" option get the ...
1
vote
1answer
335 views

Is there a quick way to load an apex class to a production environment?

I work in a 10-people company, I did a small Lightining app in order to make our everyday Salesforce life better. I developed it in the sandbox, an it works just fine. Now I would like to load it in ...