The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
43 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 ...
6
votes
1answer
112 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 ...
3
votes
3answers
270 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?
2
votes
3answers
74 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 ...
4
votes
1answer
265 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 ...
2
votes
1answer
345 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 ...
1
vote
2answers
2k 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 ...
2
votes
1answer
114 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 ...
2
votes
2answers
471 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 ...
5
votes
3answers
837 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 ...
3
votes
2answers
2k 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 ...
3
votes
1answer
838 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"/> ... ...
1
vote
1answer
77 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 ...
4
votes
2answers
705 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, ...
4
votes
4answers
3k 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 ...