Questions tagged [error]

Error - A mistake or Getting unexpected output or Bug

Filter by
Sorted by
Tagged with
31 votes
1 answer
92k views

Can anybody explain the UNABLE_TO_LOCK_ROW error?

Error Message: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.DmlException: Update failed. First exception on row 0 with ...
Teja's user avatar
  • 1,412
15 votes
2 answers
12k 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 ...
jpmonette's user avatar
  • 4,390
8 votes
2 answers
5k views

"REGEX too Complicated" error

Is "REGEX too Complicated" error while attempting to upload a CSV via Apex into SFDC an undocumented limit? What should be the optimal data volume for a CSV upload via Apex? I was trying with 10,000 ...
KaLi's user avatar
  • 1,519
1 vote
1 answer
181 views

Opening Lightning Application with not enough security access level raises internal error with Gack Id -227057212

Opening Lightning Application which refers to SObject for which current running user doesn't have permission raises internal server error with Gack Id -227057212 Steps to reproduce: Create custom ...
Patlatus's user avatar
  • 15.8k
0 votes
1 answer
79 views

List has no row exception: Queryerror

I have below line placed in controller that fires list has no row exception. I just need to show a custom message instead when the query returns no value. Apex code: Id CI=[select ...
Testing_SFDC's user avatar
  • 2,940
5 votes
2 answers
6k views

How to capture those records that was unable to get inserted?

Say, I have a list of 1000 records to be inserted. How to capture those records that failed to get inserted? I realize that I can use DMLException to get the error. But how to get a list of failed ...
MnZ's user avatar
  • 3,152
2 votes
2 answers
5k views

Error #16 loading Highcharts with Lightning Components

I have a Salesforce Lightning customer community and I have several lightning components with different charts and maps using Highcharts and the map.js module. I have the following code. Map ...
David Carnicer's user avatar
10 votes
3 answers
14k views

Error Implementing force:showToast - Cannot read property 'setParams' of undefined

Component <aura:component implements="force:lightningQuickAction"> <ui:inputNumber aura:id="num1"/> + <ui:inputNumber aura:id="num2"/> <br/> <ui:button ...
david raj's user avatar
  • 623
10 votes
3 answers
55k views

Apex compile error : variable does not exist

I'm having issues with creating a pretty simple test Utility Class. I want to create two records: an account and a related child contact. The error I see in the developer console is: Variable does ...
KierenJ's user avatar
  • 123
6 votes
2 answers
2k views

Customize the Duplicate Username error message in a Community

When a Community user tries to register using an email address that already exists in the system (using self-registration), they receive a very generic error message: "Your request cannot be ...
JustinF's user avatar
  • 391
6 votes
2 answers
1k views

java.sql.SQLException error caused by OpportunityLineItem DML request

In our Salesforce.com organization, we have a trigger on the OpportunityLineItem object (insert/update), automatically generating OpportunityLineItemSchedule. The product is schedule by revenue, ...
jpmonette's user avatar
  • 4,390
6 votes
2 answers
9k views

Customize standard error message on the visualforce page

I want to customize the error message box which comes for various errors. i want only a single custom message for all types of errors and also a different custom icon. How can i implement this?
Pankaj's user avatar
  • 2,525
4 votes
1 answer
4k views

Apex TRY ... CATCH ... FINALLY Syntax

I have gone through at least 10 sites explaining the use of this. What I cannot ascertain is if I simply want to try something and if it fails, go on (don't need to do anything with the error). I ...
AMM's user avatar
  • 4,664
4 votes
2 answers
2k views

Mixed DML operation error [duplicate]

I am facing Mixed DML error in the following case: static testmethod void method1() { User u1 = DataFactory.createUser('testUser','[email protected]','permissionSetAPIname'); Obj1 rec1 = ...
starhunter's user avatar
4 votes
2 answers
956 views

Methods defined as TestMethod do not support Web service callouts (tried other posts, can't get it to work)

I'm receiving the following error during validation/deployment: "Methods defined as TestMethod do not support Web service callouts" My trigger doesn't contain a callout, but from what I've read it's ...
Matt's user avatar
  • 1,017
3 votes
3 answers
5k views

Check for error messages on vf pages

Can we check if there are any error messages on a Visualforce Page? My scenario is to redirect to a record after a record is inserted on button click. I have an oncomplete attribute on a commanbutton ...
Anurag's user avatar
  • 2,206
2 votes
1 answer
872 views

LockerService in Lightning Components is blocking Canvas element color fill completely

When LockerService is activated, it makes <canvas> element unusable. And if I deactivate LockerService, it would display <canvas> in filled color. Consider following code and actual result ...
VarunC's user avatar
  • 5,848
2 votes
1 answer
4k views

Unexpected Identifier for Onclick Javascript button

I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window ...
Ian Bury's user avatar
2 votes
5 answers
4k views

Formula field is too big to execute (5,480 characters)

I got an error when i am trying to add fomrula in formula field. Error: Compiled formula is too big to execute (5,480 characters). Maximum size is 5,000 characters My formula is (ED__c+...
Vijay Kumar's user avatar
1 vote
1 answer
1k views

System.UnexpectedException: Invalid parameter value for parameter "Decryption Exception"

I tried to execute some code in a sandbox and I got an odd error message: System.UnexpectedException: Invalid parameter value '****' for parameter "Decryption Exception". Looks like it happened ...
NSjonas's user avatar
  • 10k
1 vote
1 answer
6k views

Error Using Flows - Required Field Missing

I am attempting to create an automation that populates opportunity contact roles when contacts are selected by the user creating the opportunity. Upon pushing the flow live, I am getting the ...
Anne's user avatar
  • 11
1 vote
1 answer
2k views

APEX Unit tests hello world

I am trying to learn how to do APEX testing but all the tests in the documentation are too complex and I can't find an example of a simple APEX Controller that is a Hello World Test. I have this APEX ...
proteuscanvas's user avatar
0 votes
1 answer
333 views

System.QueryException: Non-selective query against large object type (more than 200000 rows)

I have created an app that would change CampaignMemeber Status Values by calling our web application api and storing info in custom objects. In my developer org where the package is created works fine ...
Kyri Z.'s user avatar
  • 49
0 votes
1 answer
996 views

How to fix "System.QueryException: List has more than 1 row for assignment to SObject"

While cloning record i am getting the below error in the 1st line of the code, the SOQL. Can anyone help me with that. XX_Segment__c desc1 = [select Id, XXX_New_Keyword_Description__r.Description__c ...
sfdc_to_learn's user avatar
0 votes
2 answers
3k views

How to avoid ISOTrigger: System.LimitException: Too many SOQL queries: 101

I received the following error: Error: Invalid Data. Review all error messages below to correct your data. Apex trigger ISOTrigger caused an unexpected exception, contact your administrator: ...
sfdev's user avatar
  • 349
14 votes
2 answers
24k views

Browser Error: "Refused to set unsafe header 'User Agent'"

Just today I started having a very odd layout issue on our standard Account layout. The org in on the NA6 server. This is the standard layout. It's always happening when I use chrome. I haven't ...
Chris Duncombe's user avatar
14 votes
1 answer
13k views

Log to console in a Lightning Web Component

I am attempting to write a Lightning Web Component, but continually run into errors in my Javascript that I can't debug. I've been trying to log my error but when I put console.log() anywhere in the ...
BlondeSwan's user avatar
  • 1,068
11 votes
2 answers
4k views

Deployment Error on save from Developer Console

I noticed that I cannot save orupdate any code from the Developer Console (Apex Classes, Visualforce...). When I try to save a file, I get an error similar to this one: An unexpected error has ...
jpmonette's user avatar
  • 4,390
7 votes
1 answer
2k views

Unable to upload an Attachment - Bulk API

I'm using Bulk API to upload attachments and getting an error: InvalidBatch : Failed to parse CSV header. Number of Records Processed: 0 While I'm getting following error at the Salesforce ...
sanchit's user avatar
  • 918
6 votes
1 answer
3k views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
Sebi's user avatar
  • 203
5 votes
1 answer
18k views

Keep Getting Error "Bad Message 431"

Starting today, I keep getting the error "Bad Message 431", followed by "reason: Request Header Fields Too Large" when I refresh a console page in Salesforce. The page is "https://mycompanyname.my....
J. Schneider's user avatar
4 votes
2 answers
8k views

custom error logging, batch apex, failure/success counts

This may be simple, but I want to implement custom error logging for a batch class, where handled exceptions get written to a logging object in the database. So I could use the technique in Andrew's ...
mscholtz's user avatar
  • 1,304
4 votes
2 answers
478 views

Can I put a package's LWC that uses other custom LWCs from the package in a flexipage for a custom object?

We developed a package, with a fully lowercase namespace, that includes custom objects. We created an LWC, we'll call it "c-container". This LWC uses another LWC, we'll call it "c-child&...
Phil W's user avatar
  • 33.4k
4 votes
1 answer
11k views

LWC quick action not working

I am trying the new summer 21 feature: LWC from quick action. I am trying this on my developer edition, already updated to summer 21 version. But with a very simple code, the modal is not opening and ...
Raphael D's user avatar
  • 516
4 votes
1 answer
604 views

Error when trying to create an User-Initiated object (ETEmailSendDefinition)

I'm trying to use fuelsdk-0.999.jar and fuelsdk-0.9999.jar (both gave me the same error) in a Java projetc downloaded from https://github.com/ExactTarget/FuelSDK-Java/releases and when I try to call ...
Ralf Davi's user avatar
4 votes
4 answers
12k views

Getting the "com.sforce.ws.ConnectionException: Failed to parse detail: START_TAG seen" while connecting Salesforce instance from Java code

Getting the below exception while connecting Salesforce instance from Java code. I am using Partner WSDL now. But still getting the same exception. com.sforce.ws.ConnectionException: Failed to parse ...
Rakhi Tayal's user avatar
4 votes
1 answer
861 views

Problem sending email from Salesforce to web.de and gmx.de domains

We're using a form that automatically creates a lead in Salesforce after which an email to the person filling out the form is sent automatically as well. This works well for just about everything but ...
David van Driessche's user avatar
4 votes
1 answer
3k views

Error: Cannot find module '@oclif/config'

I already sort of asked this question but there doesn't seem to be a solution for it. So I figured I would ask a new question about work arounds people have done. When running any form of sfdx ...
Olivia's user avatar
  • 3,391
4 votes
1 answer
763 views

HTTP error code 420 at standard sales cloud pages

Today, all our users have had Salesforce pages intermittently fail to load with only the error message http error 420. The developer console also doesn't provide additional information to the cause of ...
Kasper's user avatar
  • 2,873
3 votes
1 answer
2k views

Visualforce Remoting Javascript Uncaught Reference Error

Am using the following buttons on visualforce page: input class="buttons" id="forecastButton" type="submit" value="Forecast" onclick="refreshRemoteChart" input class="buttons" id="exitButton" type="...
Antigoni's user avatar
  • 106
3 votes
2 answers
953 views

Metadata API exception: IO Exception: Exceeded max size limit of 3000000

I am using Metadata API to get information about org. I want to retrieve all custom fields present in my org. I am using listMetadata() method which returns list of components. Below is my code: ...
user1311813's user avatar
3 votes
1 answer
5k views

<unknown> duplicates value on record with id: <unknown>

As part of an ant deployment, to recently cleaned Org, I get the following: All Component Failures: 1. objects/CustomObject__c.object (CustomObject__c.SomeQueue) -- Warning: Added entity: ...
powlo's user avatar
  • 2,620
3 votes
1 answer
1k views

New protected methods cannot be defined in non-virtual classes Error

Im trying to re-create a class with new namespaces and a new name to the class. In the process i'm getting the save error "New protected methods cannot be defined in non-virtual classes" please find ...
Tinkerbell's user avatar
3 votes
1 answer
9k views

No apex action available for class.method error

I am getting a very weird error. My LWC Component is referencing two methods from an Apex class. Everything was working fine. Suddenly after a week, I am getting this error: /{"message":&...
user3353758's user avatar
3 votes
1 answer
730 views

prevent from checking errors on rerender a section

When I rerender a pageBlockSection and a field is required but not filled, then an error is displayed on page. I don't want these errors untill I click on save button. So, how to prevent the checking ...
user2844's user avatar
3 votes
1 answer
290 views

Package install worked yesterday, but not today. Very strange error reported

We are creating a managed package, which recently passed the received security review, and have had no issues installing it in DE and EE orgs...until today. Today, installs are failing in production ...
ArtieBrosius's user avatar
3 votes
2 answers
6k views

System.LimitException: Too many DML statements: 151

To complete this challenge, you need to add a trigger for Opportunity. The trigger will add a task to any opportunity inserted or updated with the stage of 'Closed Won'. The task's subject must be '...
Joy's user avatar
  • 41
3 votes
1 answer
1k views

In Lightning/Aura, is it possible to dynamically set the id for ui:inputText and ui:InputSecret?

I'm currently trying to refactor the Discover Lightning Actions source code into something which wouldn't make my eyes bleed on a professional project. Most especially, I wish to reduce all the ...
Brian Kessler's user avatar
3 votes
0 answers
819 views

Javascript custom button stopped working, Synchronous XMLHttpRequest is deprecated

We have a custom javascript button on the quotes object in our org that has been working for several months that someone has noticed today is not working. I'm not sure if there was an update that ...
rodneyaz's user avatar
  • 364
2 votes
0 answers
5k views

Workbench error

When the use the following query: SELECT Id,Name,Status_vod__c FROM Call2_vod__c WHERE Status_vod__c = 'Submitted_vod' and LastModifiedDate<= 2017-03-31T23:59:00Z I get the following error ...
user66886's user avatar