Questions tagged [platform-bug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
35 views

System.DmlException: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, A workflow or approval field update caused an error when saving this record in Apex

Full Error message: System.DmlException: Process failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, A workflow or approval field update caused an error when saving ...
3
votes
1answer
272 views

Is anyone getting deployment issues with Task object? New list views from 46 causing errors

When I'm trying to deploy the native Task object to another sandbox, I am getting errors: objects/Task.object (Task.CompletedTasks) -- Error: Value too long for field: Name maximum length is:40 (...
2
votes
0answers
25 views

Intermittent, inconsistent issue deleting BigObjects

we have an intermittent issue when deleting big objects. We have a scheduled job that runs every 30 minutes, and if some conditions are met, it runs the following: try { if (!Test.isRunningTest())...
3
votes
1answer
43 views

User Visibility in Lightning Components in Summer '19 Release?

We have a component we developed some time ago, and needed to make some changes to it. In the sandbox we are using to develop the changes in, we are now getting an error when we try to save the ...
0
votes
0answers
18 views

Sandbox Package Manager: Add to Package Problems

I am having a very difficult time adding components to package manager. I am able to create the package, but when I go to add the components the page does not seem to want to load any of the ...
5
votes
1answer
90 views

Any way to get Child Relationships without being bound by user permissions?

Question User object-level permissions limit the results of DescribeSObjectResult.getChildRelationships(). Are there any workarounds? I have submitted an Idea about this (https://success.salesforce....
1
vote
0answers
36 views

No such column 'CustomReportId' on entity 'DashboardComponent'

We are getting this error while trying to link dashboards and reports. This field is there in sandboxes but missing in our dev orgs. Since it is standard object, this field cannot be managed in ...
4
votes
2answers
93 views

SObjectType.newSobject(null, true) doesn't populate default values if called in vf action method, any tips?

I'm trying to create an sObject instance using following code: Schema.SObjectType targetType = Schema.getGlobalDescribe().get(objectName); sObject sObj = targetType.newSObject(null, true); This ...
1
vote
1answer
111 views

Converting Set to List creates duplicates of my Sobjects

I am adding manipulated Accounts to a Set multiple times and update it. It fails due to a Duplicate id in list exception. What should be impossible, because the values are coming from a set. After ...
0
votes
0answers
13 views

Flow interview fails with “cannot update sObject without Id” error, even though record is retrieved by its Id

I have some flows that in which we are getting the error in the title. The flow fails with the message stating that the record cannot be saved because its Id was not specified. The problem happens in ...
2
votes
0answers
32 views

Bug: blank locationsNotCovered returned from REST: /tooling/runTestsSynchronous/

Starting a few days ago SFDC sandboxes upgraded to Winter 19 started to return blank locationsNotCovered node in /tooling/runTestsSynchronous/ result For example - a basic call with 1 test class like ...
2
votes
2answers
242 views

Not Receiving Unhandled Exceptions Emails

I had have a very minimal code to throw null pointer exception intentionally. The reason was we're not receiving exception emails. We even reached out to support(You know how it can be painful process)...
3
votes
0answers
503 views

getRecordTypeInfosByDeveloperName doesn't work with duplicate Developer names

Our product comes with a couple objects including RecordTypes. In our customer org I'm adding some RecordTypes and experienced, that I can give them names that the packaged types already have. So now ...
0
votes
0answers
113 views

Lightning Component as actionOverride for Standrad NEW Button, do not prepopulate parent record data [duplicate]

I'm trying to use <lightning:recordEditForm> in a Lightning Component as an Action Override using lightning:actionOverride interface. I've overridden the Contact New button with this Lightning ...
10
votes
3answers
305 views

Is it impossible to dynamically instantiate an instance of lightning:menuItem?

This question is about a potential Lightning platform bug I ran across today. In my search for a resolution I ran across this post from last year that was never answered, that seems to have the ...
1
vote
0answers
16 views

Account sharing rules based on province/state code

I have a criteria based sharing rule that is supposed to provide access to a group of users based on the shipping province/state code of the accounts. <?xml version="1.0" encoding="UTF-8"?> &...
10
votes
1answer
136 views

FOR UPDATE returns old values

I use FOR UPDATE locking in a query but when the first execution completed, the second execution (started while records were locked) seems to use the old data set. I played around for a while and ...
1
vote
1answer
144 views

External Object general error message on login

When logging into an org as a System Admin, I receive the following error: The text of the error message: "Developer error in file apex://Order__x at line number -1" Stack trace error message: "...
0
votes
1answer
370 views

Get picklist value LABEL in formula field

My question can sound trivial, but the issue below seems to be serious. We can use TEXT(field) to get picklist value in formula field. The issue is that this method returns API name of particular ...
7
votes
1answer
268 views

SLEEPY Strikes again - Validation bugs

I've got a class which uses a wrapper class to handle OpportunityLineItem's which both have ids and don't have an id. Before calling an upsert on these records to update them, I extract the records ...
6
votes
2answers
178 views

Internal Salesforce bug: “Cannot grant or remove a profile with modify all data, without having the modify all data permission yourself.”

We receive "Cannot grant or remove a profile with modify all data, without having the modify all data permission yourself." exception message when it shouldn't appear. When there are two users, User ...
11
votes
2answers
544 views

When are unhandled exception emails suppressed and not sent? or Why do I not always get exception emails even though I've set them up?

The Background According to the help docs When unhandled Apex exceptions occur, emails are sent that include the Apex stack trace and the customer’s org and user ID. However I frequently ...
2
votes
0answers
124 views

Lightning Components go crazy with errors and CPU when Debug Mode on

When I enable the Debug Mode for Lightning components in the Setup most of my Lightning components literally go crazy. They bombard me with cryptic erros like that and after a while my Chrome brings ...
6
votes
0answers
305 views

lightning:input behaves strangely with Non-US(german/french) locale

In my app there are many users with a German or French locale. Both have in common that they use comma as decimal separator (opposed to Apex, JS and US-citizens which use a dot .) The dot instead is ...
15
votes
1answer
116 views

Passing calculated values to components makes them immutable

I'm calculating a value while I pass it to a component. But for some reason this makes it immutable, so I can't update it in my component. These are some cases I played with: <aura:application ...
2
votes
2answers
2k views

How to reset attribute value to null in Lightning Component?

I'm trying to reset an attribute value to null. But when I execute reset button call, the value in the textbox is cleared BUT it does not get cleared from display. Here is a sample code. TestCmp &...
15
votes
3answers
871 views

Is Apex Casting is not transitive?

Seems as though casting is not transitive in some cases. Consider trying to get an Integer from an SObject number field. Integer myInt = (Integer) mySObject.get('My_Field__c'); Throws: System....
2
votes
0answers
210 views

Using PRIORVALUE function on custom object parent relationship in process builder not working?

Let's say I want to do some action when a Contact is reparented from an Account of a certain Type. I've created a process with this condition: ISCHANGED([Contact].AccountId) && ISPICKVAL(...
3
votes
0answers
146 views

Queue/Serialize Incoming REST API Requests

I'm looking for a way to queue incoming HTTP Post requests. Apex REST API handlers are executed in parallel on separate threads. This introduces race conditions if any new records are inserted by ...
1
vote
0answers
451 views

lightning:combobox readonly atrribute is not working

According to the lightning:combobox documentation readonly should be set to false, but in the markup it renders like this: <input type="text" role="textbox" ... readonly="true" class="slds-input"&...
7
votes
3answers
3k views

Percentage in Lightning Components is not working correctly

It seems like Lightning isn't capable yet, to display percentage values intuitively. I used many different ways to display the value with input and output formatted as percentage and all the ...
4
votes
0answers
81 views

record.clone().clone() instead of .clone()?

We are using Andrew Fawcett's SObjectDataloader Library where I fixed a couple things and stumbled over odd behavior that I couldn't find valid explanation for. So in the Library, records are ...
3
votes
1answer
464 views

Tests fail (only) during upload with “CalloutException ..uncommitted work pending”

This must have its root cause in a Winter '18 change/bug as this worked before for years. When uploading a big (takes a while to upload) managed packaged that contains Apex Tooling API - REST edition ...
3
votes
2answers
1k views

Can't add lightning:progressStep in lightning:progressIndicator using aura:iteration

With the Winter'18 new Lightning Base components I tried to create a lightning:progressIndicator with lightning:progressStep dynamically using an aura:iteration: <aura:component> <aura:...
2
votes
1answer
214 views

RecordTypeId is not queried in Tests

RecordTypeId is automatically selected when we query records with SOQL. This executes just fine in the anonymous console: Case c = new Case(RecordTypeId = '0120O000000jopF'); insert c; Id rt = [...
0
votes
1answer
81 views

Can't remove Apex Sharing reason from managed package. Why?

In my managed package I had a CustomObject__c with an Apex Sharing reason. I now want to delete the object from the package. But I can't. Because I need to delete the Sharing reasons before. Which I ...
21
votes
3answers
380 views

Is it possible for a test class to create data outside of the test execution context?

If you have a test set to SeeAllData=true, and you publish a platform event that has a trigger that inserts a record, will that data actually be created in the org? trigger PlatformEvent on ...
3
votes
0answers
408 views

Lightning “change” event doesn't fire in aura:Iteration

I am passing an Object to my component and iterate through it's child records. To handle changes I added the Lightning change handler. (I made data an array, so I can set a default for demo purposes, ...
2
votes
0answers
49 views

Is it possible to have a field named `NameSpace__c__c`

I've been having a somewhat strange issue here when trying to create a custom field. With the following deployment, I ended up with a field that looks like it's missing the ending __c: <fields&...
7
votes
0answers
282 views

Total Batches increase during the run of a batch (again)

I experienced a batch that changed (increased) the #TotalBatches during its execution. 104 total batches Reload. 106 total batches I experienced this year ago (see this question Total number of ...
4
votes
1answer
289 views

Variable does not exist: fields [= getDescribe().fields]

A couple weeks ago, in the nightly test runs some tests started failing randomly (I guess it is related to the Summer'17 release.) I was not able to reproduce this, in console or Setup test runs they ...
3
votes
1answer
370 views

Is there a Patch release schedule? Can I request my org be upgraded to the latest Patch?

I recently discovered a bug that makes it impossible to deploy subscriber triggers on Platform Events. In my sandbox environment, the bug appears to be fixed. Yay! Unfortunately, that patch has not ...
0
votes
3answers
226 views

“Developer script exception” Email not sending on Limit Exceptions

My client has a VisualForce page where users are occasionally hitting limit Exceptions (CPU Time and Viewstate Size). Our team is trying to figure out the frequency of this issue, but I'm not sure ...
4
votes
1answer
190 views

Creating an encrypted text field through metadata deployment - invalid length, maximum is: 255

I defined an encrypted text field with a length of 255 and deployed it to my org. <fields> <fullName>Field__c</fullName> <externalId>false</externalId> <...
9
votes
1answer
413 views

Are @future methods ignored in @TestSetup blocks?

Ok, this is going to become a quite long question. The main goal is to document strange platform behavior and maybe learn more why this happens. It all started with that test which failed because ...
8
votes
1answer
275 views

Unable to implement HTTPMock from Managed package in Local Test Methods - Complete example with package

A while ago SF began failing tests that make callouts without an HTTP mock. When they did that we were unable to deploy some trigger as a managed package made a callout whenever an Opportunity was ...
11
votes
4answers
181 views

Ghost processes / batch processes (NA34 and NA39)

3-30-2017 Just got a call from sf tier one wanting me to show them how to replicate the issue SMH. They then point me to the dev forums and closed the case ugh We are seeing multiple customers having ...
1
vote
1answer
512 views

INVALID_FIELD error when adding a custom lookup field onto the Campaign History related list in lightning

The Campaign History related list is broken on the lead and contact when using the lightning experience if you have a custom lookup field on the related list. When you load the contact or lead, the ...
1
vote
0answers
37 views

Error: Managed interface that is released can't implement new interfaces (bug?)

I have a managed package with the following class already in it: global class MyInterfaceClass { global interface InnerInterface {} global interface DeepInterface extends InnerInterface {} } ...
3
votes
1answer
185 views

Salesforce Internal Server - What's in a GACK?

Background I have been working with Salesforce Support for several weeks now trying to get them to escalate an internal server error with GACK 2134764861-123797 (1611479512) (1611479512). After a ...