The tag has no usage guidance.

learn more… | top users | synonyms

0
votes
0answers
19 views

line 10:52 no viable alternative at character '' at line 10 column 52

trigger populateContact on Account ( before insert , before update) { Set<ID> setConIds = new Set<ID>(); for(Account obj : trigger.new) { if(obj.Contact__c != null) ...
2
votes
2answers
72 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 ...
1
vote
1answer
98 views

apex:command button is not showing error message

I have a apex:commandbutton which is not showing error message on click of it and also have save method call on it.. means wt i am checking is on click of this save button need to check if amount % ...
2
votes
1answer
74 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 ...
1
vote
1answer
82 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 ...
0
votes
0answers
21 views

Can't find error location

When I compile all classes I get this message with an error But it doesn't say which class it's coming from. Is there a way I can find it quickly?
1
vote
1answer
79 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 = ...
0
votes
1answer
58 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 ...
-2
votes
1answer
98 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 ...
1
vote
2answers
488 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 ...
2
votes
1answer
153 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
58 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
1answer
312 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
1answer
283 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
91 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 ...
7
votes
1answer
657 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
555 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
402 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
513 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
713 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
3k 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
425 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 ...
3
votes
2answers
742 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
2k 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
3k 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
2k 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
81 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
1k 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, ...
7
votes
4answers
6k 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 ...