The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
0answers
30 views

Error “System.String Exception: Invalid Id :Second External Entry Point ”

Getting This Error For Only 1 Specific Record this is my Trigger It is Working fine for 500+ Records but, Only for One Record I Am getting this Error trigger Create_Payment_Schdule on ...
0
votes
3answers
30 views

SendEmailError Messaging.SendEmailError[getTargetObjectId=null;]

I've written a method which should send messages to the current user, the System Administrator, and a list of other addresses that I specify. public static void sendErrorEmail(String body) { ...
4
votes
1answer
150 views

Winter 15 preview new error messages: valueOf() function

We have been experiencing serious issues today with the release of Winter 15 into our sandboxes... Salesforce System Error: 1702643372-49547 (938791604) (938791604) Error is in expression ...
0
votes
0answers
19 views

UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: []

The code below is for an API that runs all day long. sometimes I get this error:UNABLE_TO_LOCK_ROW I made some research about this issue and I am using FOR UPDATE in the query but is still happening. ...
0
votes
1answer
24 views

Custom errors using apex:pageMessages

I have created a custom Login page for my customer portal but the problem is that if I want errors to display when the user enters wrong credentials I am forced to use <apex:pageMessages id="error" ...
1
vote
1answer
25 views

Removing inputField causes visualforce page to error out

I have created a page and am currently converting the page to use bootstrap. I was using an apex:inputField and nothing is wrong except that inputField does not accept disabled as an attribute. So I ...
4
votes
1answer
41 views

Return custom event.message using Javascript remoting?

Short version: Can I return my own messages in the javascript remote event.message object? Long version: I use a javascript remote call to perform an ajax search. This is the code (pretty much ...
0
votes
0answers
54 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
83 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
34 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
58 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
253 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
70 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 ...
1
vote
1answer
183 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 ...
1
vote
0answers
46 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
51 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
121 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, ...
1
vote
1answer
362 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
89 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
2k 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
88 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
152 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
411 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
37 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
551 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 ...
1
vote
2answers
95 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
202 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
773 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
809 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
867 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
240 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
293 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 ...
4
votes
1answer
4k 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
333 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
396 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
726 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
69 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
691 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
691 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
240 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
46 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
108 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
450 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 ...