The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
0answers
9 views

Excel VBA: Compile Error: User-defined type not defined

Public g_sfApi As SForceOfficeToolkitLib4.SForceSession4 i keep getting an error on this line when i tried to execute my macro on excel VBA
1
vote
0answers
27 views

Insufficient Access when Deleting Custom Object or Tab

I'm trying to delete an Object (not a record) in Salesforce. When using ANT I receive this message: 1. objects/myObject.object -- Error: insufficient access rights on cross-reference id. When using ...
5
votes
1answer
49 views

Validation Rule to count words

What I'm trying to do a validation rule to count number of words in a text field and return an error if field have more than 80 words. Validation Rule Condition Formula NOT(REGEX(TRIM( ...
0
votes
2answers
27 views

Force.com IDE Error “an arror occured while collecting items to be installed”

While installing force.com IDE am getting this Error: an arror occured while collecting items to be installed please reply anybody with Right solution.
2
votes
1answer
37 views

Getting Error in Mail Validation

Hi i am getting this error when I try to validate an email: [documentation] => https://code.docs.exacttarget.com/rest/errors/500 [errorcode] => 0 [message] => Internal Server Error The code was ...
0
votes
1answer
35 views

QueryException: List has no rows for assignment in test class

I have included the following code and dependencies (fields) in my change set and I'm encountering the following error: LeadCreateOppTrigger.LeadCreateOppTrigger(), Details: ...
1
vote
3answers
81 views

Deployment Error (Urgent Please)

When I am trying to deploy new custom objects along with list views using eclipse from sandbox to Production.I am getting below error for all new custom objects This View Unique Name already ...
3
votes
1answer
65 views

Nested Query in SOQL

I would return the Name of the User in PermissionSetAssignement for a specific PermissionSet. Here is my code: SELECT Name FROM User WHERE Id in (SELECT AssigneeId FROM ...
1
vote
1answer
44 views

Error in List View Unique Name when deploying to new org

I'm trying to create Ant tasks to make it easier to implement Continuous Integration in the company I work for, and I'm facing one annoying issue when trying to deploy the package to the new org. ...
3
votes
2answers
55 views

Apex Error: Field is not writeable [duplicate]

I am new to writing Apex Triggers. I wrote this trigger by referring few examples, but now i end-up with ContactAccessLevel field is not writable Error. Use Case: In contact object, I have a field ...
4
votes
0answers
56 views

Postinstallscript fails to insert child records

I have a post install script that executes after the package has been installed and it worked perfectly. But recently it had to be changed to include some dummy data as an example. So I added the code ...
0
votes
0answers
20 views

ERROR javax.mail.StoreClosedException: failed

We recently moved our Exchange Server to a new server and copied over the Email Agent. At first we were having issues with the account not being able to log in through IMAP but then opened it to Basic ...
-1
votes
1answer
38 views

Type cannot be constructed error in trigger to covert leads into contacts, accounts and opportunity

Error: Error: Compile Error: Type cannot be constructed: Object at line 27 column 22 Code: trigger LeadConvert on Lead (after update) { // no bulk processing; will only run from the UI ...
0
votes
3answers
42 views

Converting Lead into Account (Trigger Before Insert, Before Update)

I've created a trigger on Account object to auto populate the Market__c field when user enters Country. The trigger is a before insert, before update. The trigger works as expected when I created a ...
0
votes
0answers
16 views

Changed to New Approval Process, Quotes Using Old Process Will not ReSubmit

We changed the entire Approval Process recently. Quotes that were in the Old Process can not be submitted or resubmitted using the New Process. Quote was previously approved (with old Process). ...
9
votes
1answer
136 views

Variable is used before it is declared

I've got this line of code: Pattern pattern = Pattern.compile('(?:([\\w&&[^_]]+)|.)+'); However, I'm getting this error in the Developer Console: Variable pattern is used before it is ...
2
votes
2answers
65 views

INVALID_ID_FIELD when upserting an attachment through Bulk API

The situation is as follows: In my Salesforce org, I have a contact, let's call it Humpty Dumpty, and I'd like to attach a file to it, let's call it cooking.txt, but there are some rules: If there ...
0
votes
1answer
33 views

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

Getting an error in apex code and quite new to apex code. Error: Compile Error: Expression cannot be assigned at line -1 column -1 Following is the code: public class TotalAmountUpdate { ...
0
votes
3answers
37 views

Access to account fields within a contact

I'm creating a custom contact field using the "formula" data type and I'd like the field to access information from an account field. When I simply type in the name of the account field the "check ...
0
votes
2answers
43 views

System.ListException: List index out of bounds: 1 on removing record from List

I am need to remove a Contact record in the List on click of the commandLink. To remove the record I am calling the function below : removeContacts /*Method to remove contacts*/ public void ...
0
votes
0answers
43 views

Salesforce Javascript, Several If statements; unexpected token IF

Hello stackexchange community. I'm trying to create a custom button in Salesforce that will open an email template and fill in the recipients list depending on the several Account fields. Here's the ...
1
vote
2answers
192 views

System.LimitException: Too many query rows: 50001 for Test Class

I have come across this error in production but in a test class where I am defining 5 rows only , how come I'm facing this error ? Also there was no error in QA but error in Dev and Prod. ...
2
votes
1answer
40 views

Unable to edit Page layouts

I encountered this problem while trying to edit the page layout of a custom object. Following is the error page... What may be the issue? Thanks!
1
vote
2answers
29 views

Relationship problem and 'Illegal Filter on Attachment'

I have a query like this: SELECT ParentId FROM Attachment WHERE Parent.Type = 'Contact' When testing with an account, I get an error saying: [MalformedQueryFault [ApiQueryFault [ApiFault ...
-2
votes
2answers
765 views

What is origin of error Entity is not api accessible (Line: 1, Column: 8)

Received error "Entity is not api accessible (Line: 1, Column: 8)" Could not find what is actually causing error, or what it means.
2
votes
1answer
92 views

Visualforce Remoting Javascript Uncaught Reference Error

Am using the following buttons on visualforce page: input class="buttons" id="forecastButton" type="submit" value="Forecast" onclick="refreshRemoteChart" input class="buttons" id="exitButton" ...
0
votes
0answers
22 views

EndPoint error; extract target, post

Could you anyone check the endpoints of extract target? It seems that I cannot get the right endpoints of extract target rest API. https://webservice.s6.exacttarget.com/Service.asmx cannot open. ...
0
votes
1answer
35 views

Error message on enabling read permission on opportunity

I am getting below error message when enabling Read permission on Opportunity object for a profile. Any one knows that this means? Permission Read Real Time Evaluation Method Elements depends on ...
1
vote
2answers
60 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
142 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
47 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
46 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
41 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
19 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
75 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
200 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
63 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
81 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
31 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
37 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
1answer
160 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
141 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
202 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
165 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
104 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
157 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
357 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
150 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
89 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
264 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 ...