Questions tagged [errormessages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
2 answers
3k views

I am seeing the Visualforce page message in my debug logs but cannot get it to display on the page!

First, let me state that all of the following code works except forgetting the error to display on the page and that is a big problem! With that said, I have googled all day and have read at least 25 ...
AstroLovesCodey's user avatar
3 votes
1 answer
1k views

How to test for Visualforce required fields in Apex?

I have a VF page with some required fields on it. These fields are not marked as required in the data model, and my controller is not doing any validation on them either. How can I properly test this ...
Mossi's user avatar
  • 3,926
0 votes
2 answers
1k views

Dreaded "Method does not exist or incorrect signature" Error when executing

Here is the full Error message: Method does not exist or incorrect signature:Line: 1, Column: 1 Method does not exist or incorrect signature: CompareNewAndOldFiscalPeriod.compareMonths(...
Thaddeus Ward's user avatar
2 votes
2 answers
3k views

how to get error/validation messages in a variable either at page side or class side for field validations

I want to customize the error msg which comes like: when i give wrong format of email id to email field so on below the fields error appear Error: Invalid Email Address. at the same time in debug log ...
Ankuli's user avatar
  • 670
2 votes
1 answer
887 views

Create custom error message for batch process

Good day everyone, At the moment, I've created a batch process wherein its purpose is to parse csv file and save the parse data to salesforce object. During the batch process I have to check the data ...
Hope's user avatar
  • 1,253
1 vote
2 answers
1k views

Converting Database.SaveResult error messages in more friendly feedback messages

I am implementing an interface from where you can update & insert records in SFDC, through a CSV file. After I process the files accordingly to my specifications, I want to perform an Update and ...
Endrit Sino's user avatar
1 vote
1 answer
743 views

exception handling - how to avoid system error

I'm writing code to upload attachment. I've written follow code around insert statement in my controller extension try{ insert att; } catch(exception e) { apexpages.message msg = ...
curious_techy's user avatar
0 votes
1 answer
237 views

redirect select record error to current page

I have a page that filter records based on a field, when a user search for a record that do not exist the following error page is displayed I want to display a customized error like "record does not ...
Yousra's user avatar
  • 133
-3 votes
1 answer
168 views

I am getting System.LimitException: Too many SOQL queries: 101 error [closed]

for(Project_Milestone__c b: [Select id,name,Project_Milestone_Percent__c,Payment_Schedule_Template__c,phase__c From Project_Milestone__c WHERE Payment_Schedule_Template__c =: PS_nomal ORDER BY ...
Salesforce Learner's user avatar
1 vote
2 answers
4k views

REGEX Pattern for "PO BOX"

I have a requirement to create a validation rule on custom object Address_vod__c. There is a picklist field in the object,'Type'. If 'Type' value is not 'mailing' then restrict to create or edit ...
Testing_SFDC's user avatar
  • 2,940
2 votes
1 answer
319 views

Is there an easy way to repopulate a VisualForce page form when it is returned with an error?

I have a VisualForce page which, under "normal" circumstances, upon submission, via the custom controller extension, inserts a record. But sometimes, as it should, it does not insert the record, but ...
Brian Kessler's user avatar
1 vote
1 answer
105 views

Received Trigger Error when inserting Records via API

Received Error below when bulk inserting lead records into system LeadCompany: execution of BeforeInsert caused by: System.ListException: List index out of bounds: 4 Trigger.LeadCompany: line 12, ...
Andrew Sims's user avatar
2 votes
1 answer
1k views

How to handle No Records found in visual workflow

I have a flow which works fine when it finds records, however the issue is when there are no records found I want to exit the flow nicely but having a hard time with that for some reason. The error ...
Fifedog's user avatar
  • 661
0 votes
1 answer
456 views

Help with Trigger Compile Error: Method does not exist or incorrect signature: [MAP<Id,AccountTeamMember>].containsKeys(Id)

I am VERY new to apex coding and am trying to figure out why the trigger below gets the "Compile Error: Method does not exist or incorrect signature: [MAP].containsKeys(Id) at line 10 column 13". I ...
Blair Kristin's user avatar
1 vote
2 answers
176 views

Force.com public API Governor limit error codes

I am developing a public Force.com API (published using Force.com site) using Apex REST services. I am planning to list all possible errors (especially governor limit errors) that can be returned when ...
Siva's user avatar
  • 355
11 votes
2 answers
5k views

Reproduce UNABLE_TO_LOCK_ROW error

We're receiving the: caused by: System.DmlException: Insert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] exception in ...
Jess's user avatar
  • 472
3 votes
3 answers
2k views

how to add email id as hyperlink in trigger error message?

How can I add an email id as a hyperlink in a error message in a trigger?
SalesforceAspiration's user avatar
2 votes
3 answers
1k views

How to disable "Error: Invalid Data" in trigger error message?

I have a trigger in which error message is getting displayed in a standrad page using adderror method.Which gives an error Error: Invalid Data. Review all error messages below to correct your ...
SalesforceAspiration's user avatar
4 votes
1 answer
866 views

custom error message in trigger-for a chatterexception

My use case is to create a more specific error message when user tries to create a chattergroup(in the background by apex). error message is for when user has reached the limit of 100 chattergroups ...
sfdc99999's user avatar
  • 3,585
2 votes
1 answer
1k views

Apex batch is failing to Delete the records, giving an error

We have scheduled a batch apex for deleteing 400K records daily intially it was worked fine but from last few days that batch job is terminating by giving this error First error: SQLException [...
B.Naveenkumar's user avatar
3 votes
2 answers
5k views

Display all error messages

Visualforce page is displaying one error message at a time not all error messages if validation is failed for all fields.Below is my code in the controller.I have apex:pagemessages in visualforce page ...
sfdc's user avatar
  • 13.6k
2 votes
1 answer
996 views

A problem setting up Canvas - strange error message

Have anyone seen this error message before? The requested URL was rejected. Please consult with your administrator. Your support ID is: 9169748803228620297 I am trying to set up a canvas ...
Shvek-Vek's user avatar
4 votes
1 answer
1k views

When do validation failures automatically generate an Apex.PageMessage?

On all of my Visualforce Pages that involve user input and DML actions I include the handy <apex:pageMessages/> tag. This is great when I'm creating my own custom error messages, and in some ...
Ralph Callaway's user avatar
6 votes
3 answers
6k views

No such column 'lastvieweddate' on entity 'Quote__c

This is a bit odd. Sandbox org created under V27.0 Sandbox org now upgraded to V28.0 a few weeks back VF page at V28.0 that interacts with a controller at V27.0 that updates custom object Quote__c ...
cropredy's user avatar
  • 70.7k
4 votes
2 answers
11k views

System.LimitException: Too many DML rows: 10001

A user is trying to update some records in Salesforce, he is getting this error: OrderHistory: System.LimitException: Too many DML rows: 10001. He added that he is not able to insert 100 records ...
abc's user avatar
  • 323
4 votes
1 answer
4k views

Manage (and re-use) apex:pageMessages from Javascript

I would like to know if is possible to set and show a apex:pageMessages block from javascript I've been trying to do something like this: VF page: ... <apex:pageMessages id="jserror"/>...
Martin Borthiry's user avatar
1 vote
1 answer
91 views

Why does this code always produces a "Internal System Error: 1731640370-112053 (-1981348559)"?

To add Ids to a Set without looping over a list of SObjects I tried to do the following. In every org I tried it leads to this error: Set<Opportunity> myset = new Set<Opportunity>([SELECT ...
Robert Sösemann's user avatar
8 votes
2 answers
4k 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, ...
Ganesh's user avatar
  • 799
10 votes
5 answers
14k views

Clear Apex:PageMessages without losing viewstate

Is there a way to clear the PageMessages in my controller without losing my Page's viewstate? At the moment I'm doing a ajax call from my visualforce page, which rerenders part of my page, but this ...
pjcarly's user avatar
  • 7,451