Questions tagged [error]
Error - A mistake or Getting unexpected output or Bug
75
questions
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...
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?
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 ...
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 = ...
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 ...
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 ...
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 ...
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 ...
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+...
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 ...
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 ...
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 ...
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 ...
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 ...
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: ...
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 ...
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 ...
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 ...
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 ...
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....
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....
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 ...
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&...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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="...
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:
...
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: ...
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 ...
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":&...
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 ...
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 ...
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 '...
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 ...
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 ...
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 ...