Questions tagged [error]

Error - A mistake or Getting unexpected output or Bug

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Winter Release '20 - Lead Conversion Account Trigger Error

I just wanted to post this somewhere so that others are aware. The Salesforce Winter '20 release for Financial Services Cloud comes with an error attached to the Account-Account Relationship object. ...
0
votes
0answers
17 views

Error on Package Installation - In field: object - no CustomObject named WorkFeedbackRequest > found

I have built an unmanaged package and was able to deploy it to several orgs. Unfortunately at the current Service Cloud org I get the following error: In field: object - no CustomObject named ...
0
votes
1answer
44 views

How to update all records through Trigger?

I have to automate the logic with Trigger. If the Comment__c field is updated in 1 Tool__c record, it should be updated in all another Tool__c records. It's about 700-1000 actual records. When I'm ...
0
votes
1answer
30 views

Trigger after update: System.FinalException: Record is read-only [duplicate]

I have a trigger: if(Trigger.isAfter && Trigger.isUpdate) { for(SomeRecord__c newRecord : Trigger.new){ if(Trigger.oldMap.get(newRecord.Id).Worker__c != newRecord....
0
votes
1answer
25 views

Is there a problem to send Map<Id,String> to batch?

I'm trying to send Map to Batch From Queueable apex Map < Id, String > conList = Insert_Update_Contact(data.Students, countryMap, citiesMap); System.debug('conList -> ' + conList); //...
0
votes
1answer
17 views

ANT Migration Tool deployment error: “Bad file: XML document structures must start and end within the same entity”

I know what this error means, but the XML I'm deploying (below) was generated by the Migration Tool after running ant retrieve, and every XML validator I've tried says it's valid XML, without typos. ...
0
votes
1answer
29 views

When method called 2 times: Uncommitted work pending. please commit or rollback before calling out

I have a method: public static CreateUpdateAPI (Account acc) { //do WS callout //perform DML } When i call it from Anonymous console with one Account it runs properly. But when i call the ...
6
votes
0answers
47 views

Cannot migrate deprecated unlocked package2 component since Winter 20'

I am unable to migrate a package2 member from one unlocked package to another. Before Winter 20', as per these instructions, deprecating a member from the first package and installing the second ...
0
votes
1answer
38 views

Duplicate id in list: broken script

I have a script: List<Apartment__c> apartmentsToUpd = new List<Apartment__c>(); List<House__c> houses = [SELECT Id, Tenants__c, EntryDate__c, DepartureDate__c, Opportunity__c FROM ...
0
votes
0answers
18 views

Lightning date input validation on Firefox

I'm experiencing an issue with my standard date input Lightning Web component on firefox. I use it with a min and a max. It works well in Chrome but in firefox, when I enter the min, it is not ...
4
votes
1answer
59 views

How to push source to Scratch org if project code exceeds 50mb limit?

I have a managed application which I'm now trying to move to DX platform of development, but I'm getting an error of exceeding maximum storage: Maximum size of request reached. Maximum size of ...
-1
votes
1answer
29 views

Error Handling in methods that return account

I have an Apex method that receives an Account record as input and returns Account record. What if an error occurs and i want to return it to the user? I cannot return String, since the method returns ...
0
votes
1answer
26 views

'Attempt to de-reference a null object' with Field__c.contains()

When I use contains, I get Attempt to de-reference a null object: for(Gear__c g : gears{ if(toolsMap.get(g.Id).Status__c == 'Off' || toolsMap.get(g.Id).HelpText__c.contains('Hello there!')){ ...
4
votes
2answers
72 views

Can I put a package's LWC that uses other custom LWCs from the package in a flexipage for a custom object?

We developed a package, with a fully lowercase namespace, that includes custom objects. We created an LWC, we'll call it "c-container". This LWC uses another LWC, we'll call it "c-child", in its ...
0
votes
1answer
39 views

Internal Server Error - Updating records

I'm getting this error: FATAL_ERROR|Internal Salesforce.com Error. Based on the flags that I put on the code, the error happens when I'm trying to update a (large) list of records that I previously ...
0
votes
0answers
29 views

Apex controller Attempt to de-reference a null object error!

We've implemented an API using SOAP API, that connects to an external database, which we can search within our Salesforce org. I'm running into an Attempt to de-reference a null object error: Here ...
2
votes
0answers
70 views

Load third party JS in LWC

I created a static resource with just one JS file. However when component rendered it gives me an error "undefined". Template: <!-- videoPlayer.html --> <template> <div class="...
0
votes
0answers
15 views

Lightning flow error - Works fine on desktop but fails on FSL app

I have a lightning flow that creates an object record and child records related to it. When I try to run this flow using quick action in FSL app on iPad it gives "Required fields missing: ParentId" ...
0
votes
1answer
20 views

Creating A Default Scratch Org in Visual Studio Code for Salesforce.. Getting Error with Exit Code 1

I am new to Salesforce Development. I just installed Visual Studio Code. I did successfully auhorize my Dev Org. But I am having issues when creating a Default Scratch Org. THe following the error ...
0
votes
1answer
27 views

How do I stop oncomplete action on button if action throws error and display the error, on a modal VF page?

I have a modal VF component displayed over a VF page (opened as a result of click on a button on the underlying page), from which I enter a few criteria and then click a button to generate a VF PDF ...
0
votes
0answers
25 views

Where can I find the list view for queues

I am trying to create a package for migration. I am getting the error: "ListView - LiveChatTranscript.Queue1_LiveChatTranscript - The queue queue1 has not been setup to support the object: ...
0
votes
2answers
98 views

Error using dynamic lists in Lightning Web Components

I'm coding an autocomplete feature and I'm stuck with a problem. When my tracked list value is updated with the array that had just been sorted, sometimes an error happens and the list is not updated. ...
1
vote
2answers
202 views

Unable to load 3rd party lib in Lightning Web Component

I'm trying to import a 3rd party javascript library from static resources in my lightning web component. I followed the exemple given in LWC documentation. I encounter the folowing error : ...
0
votes
2answers
86 views

Error when wrapping Lightning Web Component in Aura App

I have an developed with the new Lightning Web Component framework. The issue comes when I wrap it in an Aura app it order to expose it direclty at a single URL. Everything works except that when I ...
1
vote
1answer
49 views

Stack trace reference in Salesforce Commerce Cloud

On my sandbox, in my logs, I got an error and I got a reference to the stack trace of the error: Stack trace <ref:a6d7f20c52ed080c41c1e8e66b1bac4f> Is it possible to find the stack ...
0
votes
2answers
60 views

“Cannot read property 'setCallback' of undefined” in “window.setTimeout”

I'm trying to call a function every 10 seconds. But I'm getting this error: Uncaught Error in $A.getCallback() [Cannot read property 'setCallback' of undefined]. What is wrong? doGet : function(...
0
votes
1answer
82 views

Permissions error when attempting to “View All” Activities in Lightning

When I log in as one of our users from a desktop browser and click the "View All" button on the Activities (timeline) component, I get the following error message: You can't view this page, either ...
0
votes
0answers
21 views

Lightning Community - Top of Page Cut Off

I have a Lightning Community using the Partner template. Sometimes when I go to a page, the top inch or so doesn't load. The space isn't empty - it's totally gone and the rest of the content has ...
0
votes
0answers
17 views

“Failed to Initialize a component” after logging in

A coworker received the following message yesterday while logging into Salesforce. Failed to initialize a component [Definition does not exist on the client for descriptor:markup://force:...
0
votes
0answers
26 views

Best way to log an error [duplicate]

Which is the best way to log an error/debug logs in Production enviornment (Salesforce/apex)?
0
votes
0answers
93 views

Getting errors with LWC trees during expansion and contraction

Hello I am working with lazy loading of the Lightning Web Component - Trees. The data is loaded correctly and I don't get any errors then. But, I am getting errors on my browser dev console when I try ...
4
votes
1answer
227 views

Attempt to de-reference a null object: list initialization

I initialize the list at the beginning of the code. In one of the methods, I add values ​​to it. In another method, the list is already empty. But I need these values ​​in the second method. How to ...
6
votes
1answer
98 views

When and why to use $A.reportError?

In the documentation Using JavaScript Promises it is mentioned To show an error message in a catch() method, use $A.reportError() Why would I want to use $A.reportError that at all? I could use ...
0
votes
0answers
45 views

Trailhead Error on Verifying Step - There was an unexpected error while verifying this challenge

I keep intermittently running into this error while working through different Trailhead exercises. Sometimes it disappears without my changing anything in the org at all (except letting time pass and ...
0
votes
1answer
41 views

ContentDocumentLink Throws an error using ContentVersion Object “ContentDocument ID: id value of incorrect type”

today i'm trying to upload some files to SF using Content objects. I already uploaded the ContentVersion record and the image is in SF now. The problem is when i try to upload the ContentDocumentLink ...
1
vote
2answers
293 views

Flow Error - Apex CPU Time Limit Exceeded

I have a flow that is supposed to update multiple Account records and then triggers a process builder to update their related Opportunities. This happens at the start of the new fiscal year to set up ...
0
votes
0answers
45 views

Error on a Future Method, But I Don't See How It's Being Called to Begin With

The only awareness I have of the error is from this email notification : Apex script unhandled exception by user/organization: 0051H000009g2Fv/00D1H000000NPnk Failed to invoke future method 'public ...
0
votes
0answers
28 views

Visualforce dropdown rendering invisible values

I have a Visualforce page using Lightning stylesheets with reRender attributes on the time selectList. For some odd reason, some users are experiencing intermittent issues with the picklists ...
0
votes
0answers
13 views

ErrorObjectNotFound javascript error on upload csv

I was working on a feature to load records as picklist values on to a custom lookup component from a csv upload. The functionality was working as expected, but I get an error that says "...
0
votes
1answer
156 views

Apex trigger helper class - deployment error “variable does not exist”

I'm trying to deploy an apex trigger from sandbox to production. But when I test/validate in production I'm getting the error "variable does not exist" for the trigger's helper class: Trigger '...
0
votes
0answers
184 views

Deployment fail record page

When i try run deployment appears this error, anyone know what is this? error: invalid property [rowstodisplay] in component [force:relatedlistcontainer] []1 i think this happened because i inserted ...
2
votes
0answers
95 views

403:denied_by_security_policy:create_denied when subscribing to platform events

This error is thrown when I try to subscribe to a platform event using the EMP-connector. I followed the steps outlined in the documentation: https://developer.salesforce.com/docs/atlas.en-us.220.0....
0
votes
1answer
36 views

PDF generation failed. Check the page markup is valid. When adding <tr> tag in VF page

I have a VF page as PDF. I have added <table>, <tr>, <td> for all the section. When I am running the page it is throwing error: PDF generation failed. Check the page markup is ...
2
votes
1answer
246 views

SFMC SSJS error handling - try catch

I have the following code: <script runat="server"> Platform.Load("Core","1.1.1"); try{ var logDE = DataExtension.Init("testDE"); throw "this is an error"; logDE.Rows.Add({"c1":"...
1
vote
0answers
46 views

How to customise community generic error pages

I have a community using URL: https://xxx-mydomain.cs83.force.com/community/s/ When I remove the /community/s/ I get a salesforce branded error page. I want the generic Salesforce error page to be ...
0
votes
0answers
20 views

Prevent 'Uncaught Action failed' popup from displaying in lightning

Problem Throughout our code base we use throw 'Error', in lightning, to prevent code from continuing. There are times we display our own error toast and do not care for the Salesforce provided one. ...
-2
votes
1answer
60 views

Upsert failed. First exception on row 1; first error: FIELD_INTEGRITY_EXCEPTION, This price definition already exists in this price book: [] [closed]

guys, anyone would help me to understand with this error? I new in salesforces.
2
votes
1answer
439 views

Launch Flow from Button in Lightning Community - “down for maintenance” error

Summary: I'm getting a "down for maintenance" error in my Lightning community when I click a custom button that launches a screen flow to create a user from an existing contact. The button works in ...
0
votes
1answer
104 views

Invalid_grant:authentication failure when signing on to Salesforce Workbench

I'm unable to login to Salesforce Workbench using a custom Salesforce domain for Sandbox environment. I'm getting the error invalid_grant:authentication failed. However if i try to sign on to a ...
2
votes
0answers
770 views

Workbench error

When the use the following query: SELECT Id,Name,Status_vod__c FROM Call2_vod__c WHERE Status_vod__c = 'Submitted_vod' and LastModifiedDate<= 2017-03-31T23:59:00Z I get the following error ...