The tag has no wiki summary.

learn more… | top users | synonyms

1
vote
2answers
17 views

First Error: Duplicate Field Selected

What could be the possible reasons of this Error Message. I have written one Batch Class - I first got CAN_NOT_UPDATE_CONVERTED_LEAD and then above error Now I have update my Query ...... From ...
1
vote
2answers
78 views

Error: Didn't understand relationship 'Contract__r' in field path

So I have read other responses to the error like mines but nothing seems to fix the issue maybe someone can look at my code and help. I have in my controller class (trying to do an add and delete ...
0
votes
1answer
26 views

Why is a formula field that works fine on the detail page showing up as #Error! in a list view?

I have a pretty complex formula field for prioritizing leads. After much tweaking and testing, it's working well and calculates effectively for all relevant leads. However, on some leads it shows ...
0
votes
1answer
33 views

Soql not queried the requested field error but i am querying the field

Class: public void PNSearch(){ //varible declarations parentId=Apexpages.currentPage().getParameters().get('id'); //Query to retrieve all Quote line Items which are childs to current ...
0
votes
0answers
22 views

Trigger updating Person Account Details on cases

I have a made a trigger that is updating the Case Contact fields with person account details finding the exact match of Contact Name and Phone or email. It is working fine for the cases received ...
0
votes
0answers
6 views

Difference between 'Strategic Partner' and 'Gold Partner' User license (For Profiles) in Salesforce

I created one partner profile (Gold Partner - User license) in our Dev (full) box. However, when I deploy the same (using Ant migration tool) to a UAT (full) box, I get the following error. ...
-1
votes
2answers
49 views

Failed to invoke future method

I am getting this error Failed to invoke future method 'public static void GeoCodeAddressFutureForLeads(Set, String)' on class 'Helper_GeoCode' for job id 'XXXXXXXXXXX' caused by: ...
3
votes
1answer
199 views

Problem in loop

I have this request: for loop that retrieve 10 object from Acccount and their childs and for each account display the Account and its related childrens Here is my sample code: for (Account acc : ...
0
votes
1answer
29 views

Visualforce controller, save values from a list

How can I save list values in my controller to fields in my object? I keep getting the error "Initial term of field expression must be a concrete SObject: List". I can get the individual values in a ...
3
votes
2answers
57 views

Getting “variable doesn't exist” error for trigger associating custom object to converted lead

I'm pretty new to apex and trying to create a trigger that will update a custom object field when a lead is converted. I think I'm close with the trigger, but I'm getting an error that my list ...
0
votes
1answer
13 views

Date range on custom date field in SOQL Query

Is there a limitation that prevent filtering SOQL queries on custom date fields? This query works; SELECT Id FROM SomeObject__c WHERE CreatedDate >= 2012-12-27T00:00:00Z This one; SELECT Id ...
0
votes
2answers
22 views

Why doesn't 'SELECT count() from OauthToken' work?

Following two queries don't work for me: SELECT count() from OauthToken SELECT count() from ThirdPartyAccountLink I get the following: UNKNOWN ERROR: UNKNOWN_EXCEPTION: An unexpected error ...
1
vote
0answers
46 views

Number of iterations exceeded - Flow Error

I have a flow that loops through Opportunity Line Items. When the number of line items get large it get an error in my flow. The UI gives the following message "You or your organization has exceeded ...
1
vote
2answers
53 views

How do I query for the Product Object?

In trying to use a query based on product standard object in a Batch Apex program. select name from product/products returns error even in Developer console. Errors : sObject type 'Product' is ...
1
vote
2answers
99 views

Collection is read-only - Apex Class Error

I am trying to move my trigger into a class, and then call the class from the trigger. However, I'm getting an error when I try to do an insert, update or delete on my VOActivity object. The error ...
4
votes
0answers
37 views

Error: Request Entity Too Large: head - Any Suggestions?

I am creating my Data Model - Created one Custom Object with around 400 fields and 15-20 Validation Rules on it. Now, When I am trying to add more Validation Rules - It is giving me following error ...
2
votes
1answer
56 views

length of string value must be less than 4000 characters

I am getting the below exception in debug logs when i am trying to enter more then 666 values separated by comma or enter(tried both) in a long text area field. System.QueryException: length of ...
0
votes
0answers
84 views

Visualforce page Blank on SF1 but Work Desktops- Class and Page

I retrofitted some available code from finding available warehouses from a tutorial for accounts. global with sharing class FindNearbyAcctExt { public FindNearbyAcctExt(ApexPages.StandardController ...
2
votes
1answer
81 views

Unexpected Identifier for Onclick Javascript button

I created a custom button for custom object to place in the related list. The custom object has two look-ups, one for case and one for account. This button, when clicked, should open in a new window ...
1
vote
1answer
72 views

error in Test Class System.DmlException: NVALID_CROSS_REFERENCE_KEY

Getting this error in Test Class System.DmlException: Insert failed. First exception on row 0; first error: FIELD_INTEGRITY_EXCEPTION, only portal users can be associated to a contact: [] ...
0
votes
1answer
43 views

Insert Trigger on Account(Using MAP)

In my trigger,I would try to update contact description field when i insert a new account and add some value in description field,But when i save the account i will face this error. trigger ...
0
votes
2answers
134 views

System.LimitException: Too many DML rows: 10001 when updating one record

So in attempting to write a trigger to roll-up numerical values via a lookup field, I appeared to have made a mistake in the code so it updates enough records to throw an error. I thought the way it's ...
0
votes
1answer
41 views

Broken Parent Rollup trigger: System.NullPointerException: Attempt to de-reference a null object on trigger

I'm getting the following error when attempting to mass update accounts via Data Loader. The id throwing the error is the same in each instance. The Trigger (listed below) is meant to aggregate field ...
0
votes
0answers
18 views

getting a button error onclick sync with mailchimp

A problem with the OnClick JavaScript for this button or link was encountered: Unexpected identifier {!REQUIRESCRIPT('/resource/ChimpSync__ChimpSyncJS')} ...
0
votes
0answers
8 views

Is it possible to define some actions on error page

I have some required apex:inputField in my VF page, so if the user doesn't fill in them all and click the save or next button they will result in an error page. However, I find this error page really ...
1
vote
2answers
235 views

Compile Error: Constructor not defined: [MyController].<Constructor>(ApexPages.StandardController)

Can I get some help with my test class for my visualforce page? The page lists contacts and then the controller creates an activity for each contact selected after a button is clicked. I am ...
0
votes
0answers
60 views

FIELD_CUSTOM_VALIDATION_EXCEPTION: 'Mailing Country' contains an invalid country name

I am getting an error "'Mailing Country' contains an invalid country name" when I am trying to update contact email address.I don't see any validation rules or triggers on Mailing country field.I have ...
0
votes
2answers
66 views

Only Getting 40% Code coverage on Trigger Please Help!

I'm trying to update a lookup field on the lead object via trigger, but I'm not getting enough code coverage. Can someone help me ? TRIGGER trigger PartnerName on Lead (before insert) { ...
0
votes
2answers
91 views

Dynamic SOQL ERROR: invalid operator on id field

I'm facing this problem while creating this query. String qry = 'select name, id, account__c from orders__c '+' where account__c LIKE \'%'+searchText+'%\''; searchText is declared as public string ...
0
votes
1answer
46 views

trigger to Update product dates

I'm trying to write a trigger to Update product dates when opp close date changes .Below is what i've tried so far, trigger productUpdate on Opportunity (after update) { // declare list to hold ...
1
vote
0answers
42 views

Error executing Salesforce send: Number of results does not match number of SObjects;

I'm getting this error when a Boomi integration attempts to upsert some custom object records into Salesforce. The upsert is using an external ID as the key field (not sure if that helps clarify the ...
1
vote
1answer
74 views

Error with creating a FeedElement with an attachment: You have sent us an Illegal URL or an improperly formatted request

I'm using the code below to create a feed element with an attachment, using Apache's HttpClient and Chatter REST API, v32.0. File feedElementDefinition = new File("feed3.txt"); String json = ...
1
vote
1answer
36 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, ...
4
votes
2answers
207 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
47 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
21 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
102 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
23 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
50 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
39 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
43 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
54 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
52 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
94 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
71 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
47 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
93 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
102 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
88 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
23 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.