Questions tagged [error-messages]

A reference to text or codes that's displayed on a screen or written to a log from numerous possible sources including: system debug logs, page messages, exception handlers, API's such as REST, etc., that will often contain diagnostic information helpful in troubleshooting the actual source of an issue that caused an operation to fail.

Filter by
Sorted by
Tagged with
27
votes
1answer
63k 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 ...
41
votes
2answers
73k views

How to fix insufficient access rights on cross-reference id?

I am getting the error: INSUFFICIENT_ACCESS_ON_CROSS_REFERENCE_ENTITY, insufficient access rights on cross-reference id: [] Scenario is, I am inserting an Opportunity and then Opportunity Line ...
17
votes
1answer
2k views

Adding an error on a dynamic referenced field

Is there a way to add an error on a dynamically referenced field? Let's take this simple example: opp.get('Name').addError('Invalid name'); This is not working, I'm looking for a similar minded way. ...
32
votes
10answers
44k views

How to debug the mysterious “duplicate value found: <unknown> duplicates value on record with id: <unknown>” error

I've just spent several hours trying to fix a deployment that was failing with the following extremely helpful error message: Error: objects/Opportunity.object(2098,13):duplicate value found: <...
12
votes
5answers
7k views

Organization Administration Locked…?

After having my Developer Console not be able to save a class that I edited, I faced this error message when trying to edit/save the class directly in the browser: Organization Administration Locked ...
16
votes
5answers
6k views

When do we really need try/catch?

I know about 'always in DML operations'. But for what? What do we get? The code will crash anyway, and we can find the error in logs even without this construction. What's the main point of try/catch? ...
0
votes
1answer
55 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 ...
8
votes
2answers
3k views

Can we have a DML not roll back when i use an adderror method?

We have a scenario where in the before insert trigger of object Asset, which looks for a duplicate and if a duplicate is found a record is inserted in the junction table and after the dml is complete, ...
3
votes
2answers
10k views

TestMethod do not support Web service callouts, test skipped

I have written a test class for a trigger on the lead object. When i run the test class i get the following error: Methods defined as TestMethod do not support Web service callouts, test skipped ...
6
votes
2answers
8k 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?
2
votes
2answers
2k views

How to addmessage from a trigger to a visualforce page

I have a visualforce page with a controller extention. This page has some inputfields where I want to send a waring on the page before insert if the fielsd are filled in incorrectly. I am using a ...
8
votes
3answers
5k views

Error: j_id0:j_id1:j_id28:j_id30: Validation Error: Value is required

I am getting above ugly error.How to clean the error without custom error handing in controller. <apex:page standardController="Account" extensions="EventController"> <apex:form > <...
4
votes
1answer
5k views

LWC Navigation: “this[f.NavigationMixin.Navigate] is not a function”

When attempting to use the Lightning navigation service in my component's base class (.js), I receive the following hard error when functionally testing in the UI: this[f.NavigationMixin.Navigate]...
4
votes
4answers
23k views

Trying to create a trigger to prevent creation of duplicate accounts

This is the trigger i have wrote to prevent the creation of duplicate accounts, i am getting an error message saying "Intial term of field expression must be a concrete SObject:LIST ". Can someone ...
2
votes
3answers
4k views

How to display different error messages at different places on a Visualforce page

How can I control how error messages from apex show at different places on a page? I`d like to show ErrorA to RegionA if ErroA occured, and ErrorB to RegionB if ErrorB occured. Does anyone have any ...
0
votes
2answers
636 views

System.NullPointerException: Attempt to de-reference a null object

I keep getting the System.NullPointerException: Attempt to de-reference a null object on my trigger at line 21. I've attempted to add != null to that line and I get an error too. Please see the code ...
13
votes
0answers
892 views

why is the value in [] for insufficient access rights on cross-reference id: [] always/usually empty?

OK, I know how to debug this error and there are plenty of web resources to assist so please don't answer with those techniques. What I'm more after is why the ID value in [] is typically null for ...
9
votes
2answers
6k views

Issue with error messages on Lighting:recordform

There seems to be an issue with the error handling on lightning:recordForm, and some real limitations on lightning:recordEditForm. Trying to determine if this is a bug or a mistake on my part. ...
14
votes
3answers
6k views

Can I throw an exception in apex and still log the caught exception?

I'm really wrestling with the best error handling strategy. My goal is to handle all exceptions that I can identify, log them to a table in the database, and surface a helpful message about what ...
11
votes
1answer
474 views

Bests practices for handling potential errors as a result of time based workflow

Question Any tips or tricks for providing a good user experience when a time-based workflow field update can lead to an exception? Detail For each wrench in the Salesforce toolkit there is often a ...
6
votes
1answer
2k views

this._setInputValue is not a function

getting a strange issue on a Lightning page. In the background, I'm trying to update a Long Text Area field with Apex (before update trigger) but it seems to throw this error whenever I try to update ...
2
votes
1answer
675 views

How to track down an internal server error?

I'm getting an internal server error message, wondering how I track down the cause? I have a custom lightning component (lwc) that runs fine when dropped into a tab on a Campaign record page. ...
2
votes
1answer
774 views

Error Message in Visualforce page

I have a visualforce page which has a apex:pagemessage tag. A method on the controller is checking if a field in the visualforce page is valid. I want to display an error message but I do not want ...
1
vote
3answers
28k views

Alert message on vf page

I need to display a message on vf page based on onchange of data from picklist. In my controller the method is boolean type....based on data selected from picklist which call my method...if the method ...
6
votes
2answers
136 views

How to handle error emails from customer orgs as an ISV partner

We currently send all the error emails produced by our ISV package installed in customer orgs to a generic email list. The more packages we have and the more dynamic we assign developers to product ...
3
votes
2answers
3k views

Radio button required=“true” not displaying an error message when no selection

I've created a Visualforce page to receive input form a user. I've converted a Picklist into a radio button and set it to required. For whatever reason, the red bar that represents a mandatory field ...
3
votes
2answers
6k views

Error handling for View State of vf page in Apex Salesforce

I have one vf page in which I have a requirement to display huge data but as we know Vf page has View state Limit as 135 KB , hence after reaching this Limit salesforce throws Exception as "Maximum ...
3
votes
1answer
10k views

Displaying an error message on a visualforce page

So I'm trying to display an error message on a visualforce page using ApexPages.addMessage or ApexPages.addMessages As suggested in numerous threads and posts like this one: https://www....
3
votes
1answer
127 views

ToolingAPI.cls for Apex: How to get CompilerErrors at ContainerAsyncRequest in v31+?

Im trying to patch ToolingAPI.cls in order to use it with API v32. I run it successfully for a couple of month now with v29/30, but due to changes to the API, I need to adapt some parts. Unfortunately ...
3
votes
2answers
1k views

UNABLE_TO_LOCK_ROW error

I'm getting this error on before insert: Developer script exception from Organization : Chat_copyUserAgentToNewCase : Chat_copyUserAgentToNewCase: execution of BeforeInsert caused by: System....
2
votes
1answer
143 views

How to access to Salesforce2Salesforce error messages?

We have two instances (A and B) and we are pushing a record from A to B. There's a trigger executed on the instance B on insert doing various manipulation. When I look at the status in instance A, it ...
1
vote
1answer
902 views

Visualforce Google Maps has stopped working [closed]

The code has not been amended for more than 4 years and now Google maps does not load, say: This page has not loaded Google Maps correctly. See the details technical of the problem in the console of ...
0
votes
1answer
461 views

Is it possible to show standard and custom error message at the same time?

I want to know that is there a method to show the standard error message and custom error message at the same time? Also, in my script, there are several custom error messages. Is it possible to show ...