The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
21 views

error message at page level for visualforce page

At page level , it's showing single error message but we have multiples error messages on multiple fields level. How can show multiple error message at page level. .... public PageReference ...
2
votes
3answers
48 views

Salesforce APEX: Propagating a custom exception error to the record page

Propagating a custom exception error to the record page Hi, I have a Visualforce page embedded into an Opportunity page layout. Interacting with this page results in an Opportunity update trigger ...
0
votes
1answer
19 views

Test Method to check the error message is displayed in a certain scenario

I got this test method written, static testMethod void test_ValidateImpactCategories(){ Test.startTest(); tester(); ic8 = new Category__c(Name = 'HR',Symbol__c ...
0
votes
1answer
37 views

Getting error CANNOT INSERT UPDATE ENTITY

can anybody help me here. I am not able to push a trigger into production, I am getting this error for all the test.classes. I hope someone can tell me what is wrong here. I will appreciate any help. ...
4
votes
3answers
125 views

How to display an error message from a trigger insert failure

I have an odd problem. A trigger was creating a record which failed to insert due to workflow field update being too long for the field. The error did appear in error log, but did not in the standard ...
1
vote
2answers
44 views

Meaning of “SoapFaultException: connection was cancelled here”?

We have a nightly Java process which uses the Force.com API library (which underneath looks to use the SOAP API). The Apex code that this calls uses SendGrid to send emails with status updates to our ...
0
votes
1answer
125 views

Visualforce Error dealing with visual flow and custom button

I created a visual flow that creates an opportunity, contact, and account department from one form. I made a custom button called "Create Service Contract" and put it on the account page layout that ...
0
votes
1answer
36 views

Getting the “Non selective query” error on a selective query

I'm running a very simple SOQL query which I've renamed objects and included here: List <ObjectA__c> allRecords= [ select name, Id,Contact__c,... from ObjectA__c where Contact__c IN (SELECT ...
0
votes
1answer
49 views

New developer console does not show errors in VF Page

If there is any compilation error, developer console does not show errors and what is more confusing is that it does not report that save was not successful. There is also no feedback on successful ...
1
vote
1answer
85 views

Problem Setting Id variable - List has no rows for assignment

Not sure if I'm doing something incorrectly, but I'm having an odd issue. Below is a sample of my code which works fine in an execute anonymous window, but errors when I try to run it in a test class. ...
1
vote
0answers
16 views

System.ListException: List index out of bounds: 0 error for Custom Employee Profile User [duplicate]

I HAVE ALSO TRIED "isEmpty()" When i create new User Account and login with that credentials, it gives me this problem if admin doesnt have set thier values yet !!! AllotmentList = [select id, ...
0
votes
1answer
265 views

APEX unit test for lead trigger error : “Invalid field subject for Sobject Lead”

I have an error message for a test class that i try to create for 2 triggers. The error message is: "Invalid field subject for Sobject Lead" . Can anyone look at this and tell me what i do wrong , ...
1
vote
0answers
70 views

Custom Button Using Search Functionality

I have a project I'm stumped on. I'm adding a detail page button that uses the search functionality to create a Find Duplicates Button on Contacts. Below is the code I'm using. I'm getting the ...
0
votes
3answers
1k 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 ...
1
vote
2answers
76 views

“Uninstalling Package Failed” error persists in Production Org

Problem in uninstalling package from production Org. Error Code : Error Number: 1418461257-25979 (2077356007) Solved all Dependency Errors while uninstalling package that were received .But still ...
1
vote
3answers
118 views

Fetch Secondary contact id while creating an event with multiple contacts

I am creating an Event with Multiple contacts. I want to display an error message if the status of any related contact is not active. I am unable to fetch Secondary Contact id's even through ...
3
votes
1answer
1k views

Displaying error message from Apex Code

How to display error message at the top of page in Salesforce from Apex? (I'm not using Visualforce)
1
vote
2answers
323 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 > ...
0
votes
0answers
34 views

Security warning on Internet Explorer

We are facing an issue with some of our users where whenever they login they are getting IE Security warning mixed content prompt. We have added salesforce in the trusted sites and have also enabled ...
1
vote
1answer
437 views

Mysterious OP_WITH_INVALID_USER_TYPE_EXCEPTION, Operation not valid for this user type: []

I had following situation. When I tried to edit and save some of custom object CustomObject1__c instance, I received error in the top of the page Error: Invalid Data. Review all error messages below ...
5
votes
3answers
1k views

How separation of Test Class can solve 101 SOQL Queries Limit Exceeded Error?

Recently one of my colleagues was trying to deploy to production some opportunity trigger activation, but during validation deployment two of ten test methods from TestMyMysteriousApexClass failed ...
0
votes
2answers
73 views

Error Creating Standard Object Quote Instance in Apex

I want to create quote instance in custom controller but its giving me an error Quote q = new Quote(); q.Name = 'quote'; // error variable does not exist: Name What am I doing wrong?
10
votes
1answer
188 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 ...
2
votes
1answer
650 views

Method does not exist or incorrect signature: [Id].contains(String)?

Error Error: Autocompletefields Compile Error: Method does not exist or incorrect signature: [Id].contains(String) at line 20 column 21 public class Autocompletefields { public ...
5
votes
4answers
669 views

How to locate the Country/State error? Which account is the cause?

While in Mass Transfer of Accounts process, I get the following error: Error: There's a problem with this state, even though it may appear correct. Please select a state from the list of valid ...
3
votes
1answer
719 views

query against large object type

I have my own custom code(before insert trigger) for check on Dead Leads. for storing dead Leads there is a custom object. Currently the custom object has more than 200000 records. Due to large ...
4
votes
1answer
202 views

RecordType Label Error: Duplicate Values Not Allowed

I deployed a new RecordType to an Opportunity (where other RecordTypes/Sales Processes already existed). I notice that my RecordType, when selected on a new Opportunity, returns bad data for my Stage ...
3
votes
2answers
1k 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 ...
4
votes
1answer
248 views

Salesforce Compile Error: Expression cannot be assigned at line -1 column -1

I'm getting the error message that is the title of this question. I don't see any documentation for this error and my google searches don't reveal anyone else running into it either. Any guidance? ...
1
vote
3answers
1k views

AfterUpdate trigger operation fails; Record is currently being modified by another user

ERROR 1 : Subject: Developer script exception from Nicomatic : quotepotential : quotepotential: execution of AfterUpdate caused by: System.QueryException: Record Currently Unavailable: The ...
3
votes
1answer
3k 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 ...
4
votes
1answer
279 views

Change error message on unique field when there is duplicate

I have custom field which I use together with workflow to insure a unique key on two other custom fields. If user tries to enter duplicate values and workflow tries to populate duplicate value into ...
8
votes
2answers
335 views

Format a Validation Rule Error Message

I would like to include line breaks within a Validation Rule Error Message without the use of Visual Force. Is this possible?
7
votes
3answers
1k 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 ...
5
votes
3answers
641 views

Salesforce SOAP Exception - Expecting Envelop found Fault

I have a problem with parsing a response I am receiving via a SOAP callout in Salesforce. The error I am receiving is : Web service callout failed: Unexpected element. Parser was expecting element ...
3
votes
1answer
67 views

Visualforce error placeholder

The error on my page is covering the label of the form. Is there a way to position the error message in a specific place? See image of the result: http://i.imgur.com/DJF1kaL.png Some code: <div ...
1
vote
0answers
561 views

Why we get “input stream can not be null” error while implementing Bulk API

i tried implementing an example of bulk api provided at link : http://code.google.com/p/sfdc-bulkapi-demo/source/browse/trunk/demo/src/com/jeffdouglas/BulkLoader.java At run time, i am getting ...
1
vote
1answer
615 views

Get Error record on bulk upsert

I'm upserting a list of SObjects using Database.upsert and I need to know which records are not inserted. This is an example: Account[] accts = new List<Account>{ new ...
2
votes
1answer
3k views

Visual force error message in a new page

I'm creating a custom VF page for the registration of new users. Page: simple form to get the user's email. Controller: public with sharing class SiteRegisterController { public ...
0
votes
1answer
219 views

Developer Sandbox Issue: Email Privileges Revoked

Sending emails works fine in production (Enterprise Edition) but for some reason, I seem to not have the send email option in the corresponding Developer sandbox. This is what I see in the latter, no ...
2
votes
1answer
44 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 ...
2
votes
1answer
97 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
428 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 ...
1
vote
2answers
2k views

Getting a Method does not exist or incorrect signature Save Error. Tried using an instance along with making method Static. No luck

I have an error popping up when I'm trying to call a method from another class. It's telling me the method doesn't exist or incorrect signature. Here's the breakdown of how it's working: public with ...
0
votes
1answer
512 views

Invalid Foreign Key Relationship

I have the following snippet of code: List<ID> AccountIDx = new List<ID>(); List<ID> ContactIDx = new List<ID>(); List<ID> OppIDx = new List<ID>(); ...
4
votes
3answers
518 views

REST API & Validation Rules error

Question Is there any way to determine which validation-rule caused an error on a POST to REST API? Background I have a customObject A__c which has many Validation Rules. Also, I'm trying to ...
3
votes
1answer
62 views

How to troubleshoot user error messages?

What is the best way to troubleshoot errors encountered by users? Normally, I try to reproduce the error in an System administrator User Account to see the output in the Developer Console. This way, I ...
3
votes
1answer
260 views

Deploying classes with the Migration Tool

I'm new to SalesForce development, so forgive my if this question doesn't make sense. I've opened my org in sales force and have synchronized labels, classes, pages, custom objects and triggers and ...
5
votes
1answer
355 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 ...
2
votes
2answers
2k 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 ...