The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
1answer
22 views

Visual Flow fail: required field missing (yet I have required field)

I'm working on the Trailhead Visual Workflow unit, and my flow keeps failing and I'm not sure why. The error message I get says, "caused by element : FlowRecordCreate.New_Opportunity caused by: UPSERT ...
1
vote
0answers
13 views

Non-Selective Query Error but I am Using IDs [duplicate]

I am receiving an error when trying to add a chatter comment. I have a system of classes and 2 triggers that send a custom email notification when a chatter post has been added to a case or when a ...
3
votes
0answers
34 views

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

I have a batch job running asynchronously and I believe I am getting this error when the record run by batch job is being updated by a user at the same time. I am getting above error in test class and ...
0
votes
2answers
27 views

Map.put error - getting unexpected token error

This is the code I am using: trigger ParentOppToChild on Opportunity (after update) { List <Opportunity> oppQueryResults = new List <Opportunity>([Select ID, (Select ID, ...
0
votes
2answers
42 views

failure/success counts in batch apex

I have a batch class where the requirement is to get the actual count of success and failure records then send an email to different email ids one for failure and the other for success with the record ...
3
votes
2answers
28 views

Assertion keeps failing in test class

I keep getting an assertion failure with my test class for the following trigger: trigger WebToCaseCountry on Case (after insert) { Set<String> countries = new Set<String>(); ...
2
votes
2answers
59 views

Error with trigger CreateAccountContact

I tried to create a trigger to auto create a Contact when there is a new Account. I keep getting an error saying variable c doesn't exist within the following code: trigger CreateAccountContact ...
0
votes
0answers
8 views

error on adding products to a private opportunity

I'm preparing for the Sales Cloud certification and try out all possible settings. I have private sharing model on opportunity. I noticed that when I click the Private checkbox I'm not able to add ...
2
votes
1answer
32 views

Invalid component tried calling function [getElement], markup://aura:html [132:c]

I am using the $A.createComponents() method to dynamically insert different components into the body of my Lightning application. I am executing this function using a custom Lightning event where I am ...
1
vote
1answer
25 views

Formular Field : Adding month to date gives an #Error

In a Formula Field; I tried to add a month to the date and subtract some other date value as follows but the formula returns me "#Error!" in the UI DATE( YEAR( reportDueDate__c ), ( MONTH( ...
1
vote
0answers
23 views

Surveyforce - Link Survey to case

I'm trying to set a trigger to link the results of a survey to the relevant case or chat transcript. It seems SurveyForce was not meant to do that but I tried adding a question on the survey that ...
0
votes
0answers
34 views

Error code : REQUEST_RUNNING_TOO_LONG

I have an application which call a Salesforce web service to upsert data into it but since yersterday, I get errors and I don't know why because it workded since a lot of times. These are logs : ...
0
votes
1answer
38 views

Batch Apex - System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out

I am getting System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out. global class BatchClassName implements ...
0
votes
0answers
11 views

Error while importing Email Message in Salesforce

While i am importing data in Email Msg object in salesforce I am encountering an error again "Please enter proper subject". whereas the subject seems to be in correct format. Can anybody help me with ...
3
votes
1answer
20 views

Accounting for external request failures

I've got a trigger that invokes a call to a external service, passing along opportunity data, via a queueable apex class. Most of the time this call would pass, but say my external system goes down, ...
1
vote
1answer
30 views

Field Reference error inVisualforce Email Template

i tried to create an email template with a generated attachement. All is good, but i have a probem with one field... My table User, have a field ManagerId, who is a reference. I need to get the name ...
1
vote
3answers
75 views

Whenever I run the test class I see this error: “Apex Error: Field is not writeable”

Public class OrderController{ Public Opportunity opp {get;set;} Public List<Opportunity> oppData {get;set;} Public List<Account> accountList{get;set;} Public ...
4
votes
1answer
80 views

Exact equality operators only allowed for reference types: String

Please find below piece of code where I am getting this error. Error: Compile Error: Exact equality operators only allowed for reference types: String Code: if(((inc.Status_abv__c!=='New') ...
1
vote
2answers
52 views

Test Class - System.ListException: List index out of bounds

I'm new to apex and am building a simple trigger that will create a new renewal opportunity when an opportunity is marked as Closed/Won. In my dev account the trigger works flawlessly, however my ...
2
votes
1answer
13 views

Delete API not working in SalesForce

I am trying to delete user from Salesforce using sobj.delete(ids) , but I am geeting error that I do not have enough permission to delete. I have system admin profile . Please let me know if I need to ...
2
votes
1answer
29 views

Create custom error message for batch process

Good day everyone, At the moment, I've created a batch process wherein its purpose is to parse csv file and save the parse data to salesforce object. During the batch process I have to check the data ...
4
votes
1answer
48 views

Error: Compile Error: expecting a right parentheses, found 'System.runAs' at line 4 column 22

Guys need some help in figuring out where I am going wrong. I am getting the above error at line 3. Any help is appreciated. @isTest private class LabsContactLookupPopupController_Test { public ...
1
vote
0answers
39 views

Trigger for field update on Opportunity (child) records based on Account (parent) field value?

I would like to automatically update the Stage field on all child opportunities to Closed Won when a custom checkbox field ("Payment Info on File") is checked on the parent account record. I came ...
2
votes
1answer
42 views

Trouble with terminating a <apex:pageBlockSection>

I'm having a small problem with creating a visualforce page where I'm getting an error thrown and can't figure out where the problem is. I figure that it might help by just getting another set of eyes ...
0
votes
1answer
31 views

Hide default validation error message

My code is something similar to the one written below where I have an email field which shows validation error in both apex:pagemessages and the actual error below the field when email format is not ...
1
vote
0answers
28 views

API error while trying to Add Row to Data Extension

I have the Error Message : Exception occurred during [Create:ProcessCreateBatch] ErrorID: 1525450278 when trying a new row in a Data Extension with the API. The API is called using Fueld SDK ...
-2
votes
1answer
32 views

Apex Error: INVALID_FIELD, No fields provided in an external foreign key reference in entity: Account: []

I'm writing a test class for an Apex Trigger and I keep getting the error, "INVALID_FIELD, No fields provided in an external foreign key reference in entity: Account: []". I have been trying to ...
1
vote
1answer
50 views

Unexpected element. Parser was expecting element but found ':HEAD'

I am trying to do the operation from apex data loader and am getting the below error: You are seeing that this error had occurred after processing of 14,400 records. But if I re-run the process ...
1
vote
1answer
20 views

List more than one row error

I have below controller where SaveOutcome method throws error : "System.QueryException: List has more than 1 row for assignment to SObject" Can someone please let me know the root cause. ...
2
votes
1answer
81 views

DML not allowed on Network

My requirement needs to change the "from email address" for the welcome mail that is sent from a community after a new user is registered. But this needs to be done dynamically based on some ...
0
votes
1answer
29 views

How do I deploy a GitHub repository with lots of interdependent classes? (“Save error: Dependent class is invalid…”)

I am attempting to deploy this repository into a DE instance using Eclipse and the method described here. When I try to save to server, every class returns an error ("Save error: Dependent class is ...
0
votes
2answers
36 views

Error: Compile Error: Initial term of field expression must be a concrete SObject

I am finding it difficult to resolve the error. Any insights would be helpful. It is showing error for this line String[] bccEmail = new String[]{opp.owner.email}; in the below code. global class ...
1
vote
2answers
45 views

Custom settings field error

Although I am having this field in my custom settings it shows Error : Variable does not exist. Please find below code snippet. Can someone let me know what could be the reason? Code Snippet: ...
0
votes
3answers
61 views

Invalid field contact for SObject Account [closed]

list<account> a=[select id,type , (select id ,name from contacts),name from account limit 5]; for(account ac:a){ system.debug('account:'+ac); for(contact c:ac.contact){ ...
1
vote
1answer
55 views

What should be a good aproach to retry a web service callout?

Today i recived an exception mail saying this : Exception Message: Upsert failed. First exception on row 0; first error: UNABLE_TO_LOCK_ROW, unable to obtain exclusive access to this record: [] ...
0
votes
1answer
109 views

Error : You must enter a value

All users in my org are getting below error for required fields inspite of filling required fields using magnifying glass lookup icon and trying to save a record on a Standard Pagelayout. These two ...
1
vote
1answer
46 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 ...
6
votes
1answer
111 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
41 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
59 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
73 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
132 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
111 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
140 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
322 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
71 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
57 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
105 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
114 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
41 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). ...