Tagged Questions

The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
27 views

System.FinalException: Record is read-only

I have two questions. Firstly, is the following code correct to update the field report__C which simply displays the email address of the person who created the case. Secondly, when i tried to test ...
3
votes
1answer
57 views

New protected methods cannot be defined in non-virtual classes Error

Im trying to re-create a class with new namespaces and a new name to the class. In the process i'm getting the save error "New protected methods cannot be defined in non-virtual classes" please find ...
0
votes
1answer
33 views

How can I communicate a trigger exception to user in a bulk upsert for each record?

I am performing a bulk upsert with a large batch (sometimes as much as 3000 records at one time). I am splitting the list of 3000 into 5 batches and performing an upsert using the Bulk API. When I ...
0
votes
1answer
21 views

Validation for close date

IF( ISBLANK( Close_By__c ), TODAY() - Open_Date__c , Close_By__c - Open_Date__c ) When i am using this formula for close date validate. An error is occurring like: Error: Formula result is data ...
0
votes
0answers
19 views

Flow Element Error

I have a working flow that ends with an email alert action built outside the Flow designer (not the Send Email static action). This email alert goes to the owner of the new record created by the same ...
2
votes
1answer
16 views

Counting Activities (Open/Closed Tasks and Open/Closed Events) Compile Error: expecting a colon, found 'system.now'

Issue: Below is a part of my class for updating Activity Count fields. I want to only select the id's from closed Tasks and also closed Events. I have no clue why my two lists below give me the ...
2
votes
2answers
40 views

Code Coverage 70% but I can't figure out how to make it to 75% or 100%

I am new to triggers. I will admit that but this is my first trigger and I really want it to work! My problem is that I still am receiving only 70% Code Coverage when the trigger works fine in ...
0
votes
0answers
12 views

System.UnexpectedException: only picklist fields (or Record Type Name in the SELECT list) support translation

In a query in the test class, while translating picklist fields to Label in a SELECT query;this error is thrown. Please suggest some workaround or solution.
1
vote
0answers
28 views

help identifying error: insert failed unable to lock row

I have a process (apex controller) that creates a task when an order is placed. This process has been running fine, but recently in the last month, we are starting to sporadically get the following ...
2
votes
1answer
44 views

Receiving 403 when doing REST POST to Windows Azure Message Queue

I'm am trying to drop messages into an Azure message queue from Salesforce with apex. I started with a basic c# console app to understand the REST API in Azure and was able to get it to work as ...
0
votes
1answer
40 views

Found null SObject at position 0 in data taken from Batchable Map

I am running the below code but getting a DML error for my database.delete statement found null SObject at position 0 error. global class RevenueSchedulerBatch implements Database.Batchable ...
2
votes
1answer
17 views

Oracle Error ORA-06512 when Copied a Class

I got this Error When I copied a Old class And Pasted in the new Controller ..the Reason I did It because It Had a Single Email service Method I wanted to use same Method Till I Change The New Class ...
0
votes
0answers
51 views

<unknown> duplicates value on record with id: <unknown>

As part of an ant deployment, to recently cleaned Org, I get the following: All Component Failures: 1. objects/CustomObject__c.object (CustomObject__c.SomeQueue) -- Warning: Added entity: ...
5
votes
1answer
103 views

Where Statement issue with SOQL

I am trying to do the impossible here. I have a parent object that I am querying along with 3 of its child objects. I have filtered each of the child objects and the parent objects based on an input ...
0
votes
0answers
11 views

SINGLE_EMAIL_LIMIT_EXCEEDED [duplicate]

I wrote one trigger for sending mail to admin account. " SINGLE_EMAIL_LIMIT_EXCEEDED". anybody knows the solution? trigger MailToAdminAfterDeletingEmployee on Employee__c (after delete){ ...
0
votes
3answers
78 views

Unit testing a trigger - expecting right curly bracket, found 'insert'

I am creating unit tests to test a trigger that makes a calculation with particular variables depending on the value of a different. I believe the code below is correct, however I cannot figure out ...
0
votes
0answers
93 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 ...
2
votes
1answer
48 views

Compile Error: sObject type 'Custom__c' is not supported in Managed Package

I'm creating an apex class that implements Schedulable and in the execute it queries a Custom Object but I can't understand why I'm getting this error when trying to query. Some other related ...
4
votes
2answers
210 views

Declaring a map with String as keys and Integer as values

I'm getting two errors while compiling this snippet: map <String,Integer> CharToNumber = new map<String,Integer>(); CharToNumber.put('A', 0); CharToNumber.put('B', 1); Errors ...
0
votes
2answers
56 views

SObject row was retrieved via SOQL without querying the requested field: Opportunity.Unsolicited_Bid__c:

I get the following error in my SalesForce app: Error:Apex trigger UpdateOpportunity caused an unexpected exception, contact your administrator: UpdateOpportunity: execution of BeforeUpdate caused ...
0
votes
0answers
59 views

System.QueryException: Record Currently Unavailable:

I am having issues with one DML operation. This control is for an API that runs all day long, so jquery checks for the size of the list and when is equals to 0 it starts over again. So the page do not ...
1
vote
3answers
64 views

How to auto-refresh page after Visualforce Error

is there any way to refresh page after an Visualforce error: like 'Unable to lock row' please I need help, i was trying to use window.onerror to reload the page but that doesn't work. so I was curious ...
0
votes
0answers
29 views

Test Class Error : Duplicate ID in List

I have written 1 VF page where I am having list of all Tasks in Org, and added checkboxes in front of them,I want to perform Mass delete operation on selected tasks.My Controller code works fine, but ...
1
vote
1answer
55 views

Missing Organization Feature: DataDotComClean Error While Installing an App

I have one app (Private) published. and When I try to install i get this error message. Any suggestions, I have passed Appexchange Review, Did I miss something in my Managed Package ??
2
votes
0answers
46 views

Mass Lead Conversion Error

I have written the common lead conversion snippets within for loop and I got this Error. Yes following code creates Account and Contacts properly but it doesnt create any Opportunity. ERROR : ...
0
votes
0answers
62 views

Insert contact statement in test class is causing 0% code coverage

I've written a simple trigger to prevent duplication of a lead based on existing leads and contacts. My test has 90% code coverage based on the tests that I've written to prevent lead duplication. ...
1
vote
1answer
82 views

Package install worked yesterday, but not today. Very strange error reported

We are creating a managed package, which recently passed the received security review, and have had no issues installing it in DE and EE orgs...until today. Today, installs are failing in production ...
0
votes
1answer
33 views

Does anyone recognize this error message pop up in Salesforce?

I'm trying to run some tests in the Salesforce 'Apex Test Execution' page and suddenly this error message has popped up, it keeps appearing when I press the 'Select Tests...' button. Has anyone seen ...
1
vote
1answer
71 views

APEX Unit tests hello world

I am trying to learn how to do APEX testing but all the tests in the documentation are too complex and I can't find an example of a simple APEX Controller that is a Hello World Test. I have this APEX ...
3
votes
1answer
102 views

Why i get “An error occurred when processing your submitted information.” after a standard field validaton?

I have 3 inputfields from Account object in a pageblock table: personemail personbirthdate personmobilephone If i type a misformatted email address (for eg. missing @ sign) or birthdate than i ...
0
votes
1answer
33 views

Error on searching for OwnerId

I'm getting an error while filtering the search by OwnerId for Task object. Following is what i'm doing and it is giving me an error : Error: Compile Error: expecting a semi-colon, found ' and ...
0
votes
1answer
77 views

“FIELD_INTEGRITY_EXCEPTION:Week: invalid date: Fri Jun 29 00:00:00 GMT 14 Error fields: Week__c ” [duplicate]

I am getting below error when I am trying to insert records using data loader.I see file contains Week__c column with value as 6/29/14 and Week__c is Date field in the custom object.What may be the ...
0
votes
1answer
46 views

Error in query for multiple fields

When i write 'Select Id, Subject,Status from Task where Subject like \'%'+searchText+'%\' OR Status like \'%'+searchText+'%\' Order By Subject,Status'; it is working but when i include OR ...
3
votes
2answers
181 views

Why does the getErrors() method on DataBase.SaveResult return a List?

Each instance of a Database.SaveResult corresponds to a result of a DML operation on a single record. According to the documentation, the method to get error details for a record actually returns an ...
1
vote
2answers
105 views

Trigger to Insert Child Object Records

On update of a Parent Object (Recipe Sheet) to be set to "Add to Inventory" I need to add Child Records (Recipe Sheet Items) based on another table in Salesforce tied to the Product table (Product ...
1
vote
0answers
37 views

ExactTarget A/B Testing page is blank

When I try to load the A/B testing page of the Email app, it fails to load the javascript source page-overview.js. This is using Chromium Version 34.0.1847.116 Ubuntu 12.04 (260972). What is ...
5
votes
1answer
178 views

How to capture those records that was unable to get inserted?

Say, I have a list of 1000 records to be inserted. How to capture those records that failed to get inserted? I realize that I can use DMLException to get the error. But how to get a list of failed ...
2
votes
0answers
118 views

ExactTarget “Index was outside the bounds of the array” Error

We've had a page running for a year now. It suddenly stopped working. It processes appointment confirmations or cancellations. The error I am receiving is this: An unexpected error has occurred! ...
0
votes
0answers
219 views

SSLHandshakeException while connecting to SF from a standalone java client via a proxy

I am trying to connect to a SF hosted APEX web service. previously i managed to do so when i was accessing the service without a proxy mediating the communication. On port the same standalone java ...
2
votes
1answer
146 views

System.DmlException: Insert failed

I am having trouble with one of my test classes (PortalControllerTest) which keeps failing validation. This is the error I receive: System.DmlException: Insert failed. First exception on row 0; ...
1
vote
2answers
70 views

De-Reference Null Object

I am reusing some old code here - i've made slight changes but the code itslef is so old it contained the test class within the main class. I have seperated them out but I am getting a pile of errors ...
1
vote
4answers
196 views

Formula field is too big to execute (5,480 characters)

I got an error when i am trying to add fomrula in formula field. Error: Compiled formula is too big to execute (5,480 characters). Maximum size is 5,000 characters My formula is ...
3
votes
2answers
737 views

Understanding 'List has no rows for assignment to SObject' in a trigger creating new record on custom object

I'm having an issue with my Apex Test Class from a trigger. I've used the trigger multiple times in my sandbox but when I try to test it out it fails. The reason for the failure is ...
0
votes
0answers
21 views

I keep getting a "thread is being aborted error' when doing retrieves in ampscript

I have a script in ampscript that does a retrieve for an open event based on a send id. For each subscriber returned from this retrieve, i then check the lists they are on by retrieving ...
0
votes
1answer
224 views

Error in Apex Trigger adding trigger.isUpdate

With the help of others I wrote an apex trigger that places the last completed task's subject into a field called Last_Activity_Subject__c for both opportunities and leads. The trigger worked fine ...
1
vote
2answers
319 views

Test Code assistance on Orders - System.SObjectException: Field is not writeable: Order.AccountId

I am not sure how to resolve this. With the new Orders Object Salesforce does not give you the option to create a new Order from the Opp. This is a requirement for our org. I have created a custom ...
0
votes
2answers
224 views

Error while inserting records using batch apex

I want to insert Account records using batch apex and below is my code . I'm getting following error shown in dev console 5:50:40:090 EXCEPTION_THROWN [18]|System.DmlException: Insert failed. ...
5
votes
3answers
756 views

Apex compile error : variable does not exist

I'm having issues with creating a pretty simple test Utility Class. I want to create two records: an account and a related child contact. The error I see in the developer console is: Variable does ...
7
votes
3answers
84 views

Data Not Available? Can't edit a custom formula field formula

Any ideas why I would get a "Data Not Available" error when editing a custom field? In this specific instance I'm editing a formula field, and I'm able to edit and save changes to the description and ...
1
vote
0answers
60 views

“Unsupported type java.lang.Class” error when checking ApexPages.Action with ISNULL

I have a custom component which doesn't use a Custom Controller. On of the optional attribute is of Type ApexPages.Action. The component renders a command button only when this attribute was set. It ...