The tag has no wiki summary.

learn more… | top users | synonyms

4
votes
2answers
28 views

Is it possible to use Remote Object jsNamespace with an apex:includeScript?

Currently playing with An Example of Using Remote Method Overrides in Remote Objects My VisualForce Page includes the following <apex:remoteObjects jsNamespace="$RemoteContactModel"> ...
2
votes
1answer
20 views

submit webtolead form using soap api php

I create a lead form going through this Customize | Leads | Web-to-Lead. I want to submit this form through soap api. I use code given in below link on salesforces developer. ...
1
vote
1answer
14 views

Account Trigger with Contact 'for' Loop error

I am relatively new to building Apex Triggers and need some help. Trigger's Purpose: The Account Triggers purpose is to throw an error message if there is no contact associated to the Account upon ...
1
vote
1answer
47 views

Integration Salesforce and Twilio

I am using Salesforce and Twilio API, but when I send a SMS message with more than 160 characters, I receive the message below. TwilioRestException:[errorCode=21605, message=The message body exceeds ...
0
votes
2answers
16 views

Last viewed by and page count creating error

I got this error while working on an implementation . The error is : Attempt to deference a null object Error is in expression '{!updatecount}' in component in page last_viewed_by_pagecount: ...
0
votes
0answers
22 views

Compile error : Invalid type . Page not saving

I got this error while getting the list of buckets in Amazon S3 . I know there is already a toolkit available but just wanted to make this simple . Getting an error: Error: Compile Error: Invalid ...
0
votes
2answers
36 views

Variable doesn't exist error

I am stuck with a bit of code - is someone able to help with this? For the 8th line of code, I'm getting a variable doesn't exist error. I have been starting at this far too long, so cannot see what's ...
1
vote
1answer
20 views

line breaks not allowed in string literals while debugging

I got this error line breaks not allowed in string literals while debugging. Please help ! String clientId = 'AKIAJGN4J4RSRNW26IEA'; String clientSecret = ...
1
vote
1answer
28 views

Trigger fails on update but succeeds on individual records

I have a simple trigger on a custom object called Show__c. Inside of Show__c, I have a checkbox Update_Show_Players__c that's unchecked by default. The trigger checks to see if Update_Show_Players__c ...
-1
votes
1answer
33 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
65 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
42 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
22 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
28 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 ...
3
votes
1answer
34 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
63 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
13 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
41 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
71 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 ...
1
vote
1answer
49 views

Batch Class error

hello i have written below batch class but when its running its giving an error : System.StringException: Invalid id: u.id at line number 16 global class batchleadUpdate implements ...
0
votes
1answer
52 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
18 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
79 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
117 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
12 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
95 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
177 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
78 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
226 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
70 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
99 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
87 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
40 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
62 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
56 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
79 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. ...
2
votes
1answer
97 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
94 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
121 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
39 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
104 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
50 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
227 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
136 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
40 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
188 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
136 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! ...
1
vote
0answers
228 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
199 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; ...