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
0 votes
0 answers
18 views

PDF Generation Failed. Check the page markup is valid in Production

I am trying to create a pdf that will print a page multiple times depending on how many signatures are attached to the record. It's all working fine in sandboxes but is getting the "PDF ...
user avatar
0 votes
1 answer
151 views

Salesforce Marketing Cloud SSO (Multiple MID) with Azure

We are attempting to configure Single Sign On in our Salesforce Marketing Cloud sandbox. We already have SSO set up in Production. We noticed that when we configure SSO in sandbox, the SSO in ...
user avatar
0 votes
2 answers
89 views

Permission Set Groups feature is not available in the Salesforce production org

I have Permission Set Groups created in my scratch org, but when I am trying to deploy it to the production org it is showing an error "Not available for deploy for this organization". When ...
user avatar
2 votes
3 answers
368 views

How to prevent accidental config changes made directly in Production?

Too many times we've had developers (as well as our release manager, who also dev's) inadvertently make a change directly in Production because they had the Prod org open alongside their dev org in ...
user avatar
0 votes
1 answer
37 views

How to get rid of Apex class that is not in use

I want to delete an apex class that is not used anymore but has dependencies with Flows and LWC etc. What would be an ideal way to retire the apex class? Commenting out the lines or deleting the class ...
user avatar
0 votes
1 answer
30 views

Can we create sandbox via metadata in apex salesforce?

I know that it can be impossible , I have requirements to create a sandbox for organization via a button on Custom object record. Can we create a sandbox via metadata in Apex or some process ? Any ...
user avatar
1 vote
0 answers
34 views

Too many soql queries when trying to create a json packet for customers with Active orders

I'm trying to port over my code below to production but continue to get System.LimitException: Too many SOQL queries: 101. @RestResource(urlMapping='/my_endpoint') global with sharing class ...
user avatar
  • 11
0 votes
1 answer
85 views

Scheduled job is not querying the records as expected

I have a schedulable class(entire code is in schedulable class), which deactivates the users based on thier lastLoginDate(if lastLoginDate > 30 days) We have scheduled the job in production, which ...
user avatar
  • 41
0 votes
1 answer
65 views

Can I delete a custom field and a custom object manually in the production org?

I know that some options that are in the sandbox might not be in production. I'll have to delete a Custom Field and a Custom Object in production org. I need to know if it's possible to do manually ...
user avatar
  • 123
0 votes
1 answer
130 views

Impact of uninstalling installed package from production on sandbox?

I have to remove all of the installed packages (mostly managed packages) from Production. Reason: Some of the packages are unwanted now and for others a different package version(not higher) is ...
user avatar
  • 405
1 vote
1 answer
127 views

How do I prevent developers from deploying directly to Devhub and instead push the code to sandbox?

I have a production org that is the Devhub. I have a full copy sandbox. I want that the developers that are working on their respective scratch orgs, don't deploy their changes to production directly. ...
user avatar
0 votes
1 answer
36 views

Deletion of Class / Trigger in PROD

I try to delete a trigger and a test class in prod. However, when I use the command: sfdx force:mdapi:deploy -c -d destroy -w 20 I get the error: Here my packages in the folder "destroy" ...
user avatar
0 votes
0 answers
30 views

What would make the same code produce different results in a different sandbox?

I have this test class for a vf controller that runs ok in one sandbox but in the other there is an Id field that is returning null. What am I missing? The reason for creating a second sandbox was to ...
user avatar
  • 197
1 vote
0 answers
35 views

System.NoAccessException: Script-thrown exception while trying to access record type in managed package

We are encountering a problem in our production environment when trying to run the following line of code in developer console to retrieve the record type. The app is a managed package but we are ...
user avatar
  • 197
0 votes
1 answer
48 views

Is it possible to return Salesforce to previous version?

We found that the production org of one of our clients was updated to Winter'21 today. After this uest users can't log in to home website (made of Aura components). Here is what cause problems: https:/...
user avatar
0 votes
1 answer
61 views

Do you need to create new outbound changeset when components are modified?

Let's say I have created an Outbound ChangeSet with a few components like Page Layouts and Lightning Flows. I haven't pushed the change set to Production yet. In the meantime, I decided to make some ...
user avatar
0 votes
1 answer
63 views

My production instance has moved from EU10 to EU41, does the IP change too?

If yes, how can I get the new one?
user avatar
0 votes
1 answer
457 views

Copy all Metadata from Sandbox to Production [duplicate]

How do you transfer all setting & metadata (not data) from a sandbox to production? I have just joined a project which has been tested and approved by the client. My first job is to move ...
user avatar
1 vote
2 answers
4k views

Property 'itemInstances' and 'processOrder' not valid in version 48.0 error when deploying in Production, even though Production is 49.0

When trying to deploy the converted metadata using VS code sfdx force:mdapi:deploy deploy to my Production Org and I get the error Property 'itemInstances' not valid in version 48.0 and Property '...
user avatar
  • 456
0 votes
0 answers
42 views

Your code coverage is 73%. You need at least 75% coverage to complete this deployment [duplicate]

Already run test but no luck. public class UNILAB_NMAP { /* wrapper class to store required properties for "lightning:map" component' */ public class accountLocationWrapper{ @...
user avatar
0 votes
1 answer
42 views

List of Elements that are editable in Salesforce Production Environment

Is there an article or a document by Salesforce where I can find a comprehensive list of elements or types that can be modified in Salesforce Production Environment? Thank you!
user avatar
0 votes
0 answers
166 views

Package Retrival is not working

We are trying to retrieve the package from Salesforce Developer org While performing the retrieve we are getting errors for the below components. [sf:retrieve] package.xml - Metadata API received ...
user avatar
  • 31
2 votes
2 answers
765 views

Production Deployment of CustomLabel using VS Code (INVALID_ID_FIELD: Source validate did not run tests in the org)

I am trying to deploy customLabels to the production org. But, I am not able to deploy it as it asks to run the test classes. As we know the custom label is just the configurations, not the codes. So, ...
user avatar
1 vote
2 answers
180 views

Is my after insert trigger efficient and safe to port to production?

Recently I created an after insert trigger to update a field in my sponsorship object. it works so far in sandbox and has passed the unit test that I have created and has 100% code coverage. here is ...
user avatar
2 votes
1 answer
2k views

Delete classes/trigger from Prod via VSCode

I need to delete classes and a trigger from prod via VSCode. I have retrieved the according classes/trigger via package.xml into VSCode. There is the command "SFDX: Delete This from Project and Org", ...
user avatar
0 votes
0 answers
655 views

How to use "NameSpace" on Visualforce Page in salesforce?

I have facing problems on the VF page when I've to use StanderdController on VF than how I get "namespace" before the default field in a package org. Here "Charge_Item__c" is a custom object in ...
user avatar
1 vote
1 answer
798 views

I do not have Prod access in my org. I want to know can we edit Lightning component in Production?

Can we edit Lightning component in production?
user avatar
2 votes
3 answers
1k views

LWC without APEX: sfdx force:source:deploy into Production

I have a simple LWC component that is only made up of html, javascript, and css (no APEX). When deploying to production via vscode, I am confused on what I am suppose to be testing as I receive the "...
user avatar
  • 31
0 votes
2 answers
223 views

Can I reuse/ edit the Batch Apex code on sandbox that was deployed into production environment-

I have a batch apex class that deletes all the records from a custom object and it is deployed from sandbox to production. Now I have to write an other batch apex to delete all records from other ...
user avatar
1 vote
1 answer
72 views

Custom Notification now showing in production

I recently played around with the process builder in a sandbox, and managed to create a scheduled event that would send a custom notification to a user. I finally have a purpose for this feature, but ...
user avatar
0 votes
3 answers
239 views

New instance of Custom Object

I'm trying to create a new instance of an existing Custom Object. I have modified an existing object in the sandbox environment and want to preserve the original object when I push to production. ...
user avatar
12 votes
2 answers
13k views

sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations

While deploying code in vsCode from sandbox to production I get the below error sf:INVALID_OPERATION: INVALID_OPERATION: testLevel of NoTestRun cannot be used in production organizations As per ...
user avatar
  • 2,215
0 votes
1 answer
298 views

System.QueryException: List has no rows for assignment to SObject - Sandbox to Production in salesforce

I am new to Salesforce. I am creating an application where the user will email the JSON data to insert that data and attachment to the Lead Object using Email Services. It is working fine in Sandbox ...
user avatar
0 votes
1 answer
689 views

Scratch Org Login and Pushing to Production

I have been having issues setting up a scratch org. So I decided to try out (in Intellij/IlluminatedCloud) creation of a new project under the Sandbox Organization Type. I used my scratch org log in ...
user avatar
  • 3,167
0 votes
3 answers
449 views

Prevent users from logging in during production delivery

We will delivery in our production org and we want to avoid users to log while the time of reconfiguration and delivery. It is recommended to modify Login Hours but we have a lot of profile to ...
user avatar
  • 341
0 votes
2 answers
319 views

Running an APEX class in Production, what are @isTest?

I'm trying to learn about apex test classes, I have attached the below code. I can't execute this in production developer console, but works fine on my sandbox. I was asked to write a @isTest, is this ...
user avatar
0 votes
1 answer
50 views

Changing sub domain name

I want to create tab for lightning components but I am unable to do so as I saw it is mandatory to change domain in order to create lightning component tabs. Currently my org is having various ...
user avatar
  • 62
0 votes
1 answer
560 views

Deploy opportunity change from sandbox to production

For a project the client has multiple changes including apex files, some metadata changes, and a few custom object changes. But they have also modified the Opportunity table and added two new fields. ...
user avatar
  • 169
0 votes
1 answer
286 views

Questions regarding deploying visualforce pages to production

I’m new to Salesforce and this is my first project. My project requirement is about creating customer service related case through a Vf page on the case object. I’ve created two vf pages one for input ...
user avatar
1 vote
1 answer
173 views

Salesforce Global Values organization-wide (sandbox vs. production)

Is it possible to add custom global values in Salesforce so that we can use that global value in any apex class or controller? And this values will be Ids of custom objects, so they will be different ...
user avatar
0 votes
2 answers
3k views

What are two ways a developer should deploy code from a developer org to an unrelated production org?

I am preparing myself to the developer 1 certificate and I encountered the following question: What are two ways a developer should deploy code from a developer org to an unrelated production org? ...
user avatar
  • 1,107
0 votes
1 answer
32 views

Entity scope parameter: objectName is invalid:

When i moved community to production and trying to access the one of the header tab than i am getting an error saying "Entity scope parameter: objectName is invalid:", when i tried to look around it, ...
user avatar
  • 377
1 vote
1 answer
368 views

Why does Dataloader.io not recognize my custom fields?

I added the fields "External ID" and "Display URL" to my Product object. They are visible for all profiles and not read-only. They are visible on the product layout, and shown when I do a "New ...
user avatar
0 votes
1 answer
2k views

Not able to see login button in PROD except for two users

I have a PRODUCTION org with unlimited edition and I am trying to login as another user but I am able to see login button for only two users and these users are not system admin. Login button is not ...
user avatar
  • 1,367
2 votes
1 answer
313 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 ...
user avatar
  • 43
2 votes
1 answer
384 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 ...
user avatar
  • 3,167
-2 votes
1 answer
124 views

Copy Data from Production/Sandbox to Sandbox after sandbox refresh in salesforce [closed]

We need to load data from sandbox to sandbox for testing & Dev proposes. Right we are using Microsoft ETL for this purpose, but that is too lengthy and we need to maintain metadata after every ...
user avatar
-1 votes
1 answer
2k views

Is it possible to copy fields from Sandbox to Production?

I have had to manually add 100+ fields (don't ask...) to a clients sandbox environment in order to test some updates. However now that the testing seemed to be fine I am tasked with replicating all ...
user avatar
0 votes
1 answer
23 views

Licensing for desktop application: determine the production organization id from a sandbox?

I am building my very first desktop application using c# and visual studio! It currently logs into an org through the Partner WSDL / SOAP API. But I have no idea how to license it! Ideally, I would ...
user avatar
  • 1
4 votes
3 answers
2k 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", ...
user avatar
  • 4,441