The tag has no wiki summary.

learn more… | top users | synonyms

2
votes
1answer
39 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 ...
1
vote
1answer
31 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, ...
1
vote
0answers
34 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 ...
0
votes
0answers
12 views

What object record ID should I be trying to provide?

I am using FormAssembly to connect to Salesforce. I am trying to create an Opportunity and then an Opportunity Line item so I can product line items. When I try to submit a form I get the following ...
0
votes
1answer
48 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 ...
1
vote
2answers
49 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
154 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
326 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
108 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
281 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
428 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 ...
2
votes
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
148 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
495 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
917 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
918 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
79 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 ...
5
votes
2answers
764 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, ...
5
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 ...