Skip to main content

Questions tagged [unexpectedexception]

Use for questions related to System.UnexpectedException.

Filter by
Sorted by
Tagged with
0 votes
1 answer
3k views

An unexpected error occurred. Please include this ErrorId if you contact support: 1884642260-375043 (1535387224) (deployment)

Hi have an issue when deploying a flow from a sandbox to another : An unexpected error occurred. Please include this ErrorId if you contact support: 1884642260-375043 (1535387224) Could you help ...
Clem Chvlr's user avatar
0 votes
0 answers
37 views

GACK Response Closing a Case and get an Unknown Exception Code

We are trying to close a case that was reopened and then when we go to close it again, we get the following error message. We recently went through the Spring Update 2023 and wondering if there is a ...
jeffrose2utah's user avatar
1 vote
1 answer
770 views

Batch Apex Unit Test: System.UnexpectedException: Error processing messages

I had a batchable class MyBatchable whose unit tests have been running successfully for over 2 years and suddenly, they stopped working yesterday with error Batch Apex Unit Test: System....
cropredy's user avatar
  • 73.2k
0 votes
0 answers
315 views

Getting UNKNOWN_EXCEPTION while updating SharingCriteriaRule using Metadata API

I am trying to update the access of SharingRule using the Metadata API from APEX. I have created a MetadataService class using https://github.com/financialforcedev/apex-mdapi/blob/master/apex-mdapi/...
yash patel's user avatar
0 votes
1 answer
2k views

Order of Execution - Multiple Flows for the Same Object

Is there any order of execution when you have multiple flows for the same object? I'm working in an org with many flows for the same type of object and getting intermittent 'UNKNOWN_EXCEPTION' errors ...
S.B.'s user avatar
  • 2,141
-2 votes
2 answers
492 views

Why I'm getting "Dynamic SOQL :System.QueryException: unexpected token:SelectId" Error at the time of debugging

getting unexpected token error as in image when I debug and pass parameters to this class as below public class SearchObj { public static void searchRecord(String strObjectName,String strFieldName)...
user avatar
4 votes
0 answers
917 views

System.UnexpectedException: common.exception.SfdcSqlException: ERROR: portal "C_6031" does not exist

Since the Summer 22' release these uncatchable UnexpectedException errors have been popping up sporadically on code that hasn't changed in multiple orgs we manage. The stacktraces always originate ...
Gobius Dolhain's user avatar
1 vote
1 answer
166 views

Salesforce Try Catch does not work with FeatureManagement checkPermission

When working with FeatureManagement.checkPermission() a try-catch block does not catch system exceptions. How to replicate: Run the code below in execute anonymous. You will find that you receive a ...
AaronWebster's user avatar
0 votes
1 answer
1k views

Unexpected token error on Anonymous window

I am trying to create one custom list and trying to pass it to defined method via Anonymous window but it is giving me Line: 1, Column: 19 Unexpected token 'p'. Helping me to fix this is much ...
Bharath's user avatar
4 votes
0 answers
153 views

SandboxPostCopy callout throws UnexpectedException

When I attempt to perform a callout from a SandboxPostCopy class when creating a sandbox, it throws the following UnexpectedException: System.UnexpectedException: Attempt to release db connection when ...
Jeff's user avatar
  • 929
0 votes
1 answer
413 views

Getting Unexpected token '(' error, is my code wrong?

public class Spoonacular { private static final String SPOONACULAR_API= 'https://api.spoonacular.com'; private static final String API_KEY= 'XXXXX'; public static void ...
Suchi Tiwari's user avatar
8 votes
2 answers
21k views

System.UnexpectedException: Script-thrown exception on HTTP callout

I'm trying to create an Apex callout and running into the following error message: System.UnexpectedException: Script-thrown exception My analysis shows that System.UnexpectedException is not ...
picardo's user avatar
  • 181
7 votes
2 answers
1k views

Salesforce Exception Emails Don't Send

Several months ago, we noticed that our production org was not sending exception emails though we regularly were able to generate an exception email in sandboxes. We filed a case with support and ...
BrBarr's user avatar
  • 966
0 votes
2 answers
55 views

problem with trigger validation test in productive environment

I generated a trigger for one of my clients and I created the test class with a 100% validation of coverage, however, after modifying the code the following error still appears and I can not think of ...
Bernardo Lira's user avatar
1 vote
1 answer
1k views

Developer script exception: Do not have access to view running user

I'm trying to debug a "Developer Script Exception". Apex script unhandled trigger exception by user/organization: 0053000000ARXXX/00D30000000XXX AccountMasterTrigger: execution of ...
NSjonas's user avatar
  • 10.3k
-2 votes
1 answer
3k views

Getting Unexpected Token error when inserting records from execute anonymous [closed]

Custom_Object__c co = new Custom_Object__c(Name='TEST', Date_of_Visit__c=2019-06-06); insert co;
SF Coder's user avatar
0 votes
2 answers
135 views

Show System error messages in visualforce markup

I wonder, is it possible to show exceptions or any errors, like "Null pointer exception" in visualforce? For now all errors refresh the page and displaying error on the blank page. I want for my ...
Viktor's user avatar
  • 360
6 votes
0 answers
1k views

System.UnexpectedException after catching an exception in unit test

I've encountered an odd situation where the presence or absence of a try/catch block results in an unusual system error: System.UnexpectedException: Error processing messages The test case is ...
David Reed's user avatar
  • 93.6k
3 votes
1 answer
3k views

recalculateFormulas() throws an unexpectedException. Unable to create/update fields

I have a function in Apex that sets a few fields on my custom object and that also calls the recalculateFormulas() function on the object. I call my function from Salesforce through a custom button. ...
Dirk Scholten's user avatar
11 votes
2 answers
2k views

Catching an UnexpectedException?

My specific questions are (for the below detail): Anyone have any idea why the design is like this? Is the only solution to always clean the content perfectly before saving it? This type is not ...
Keith C's user avatar
  • 137k
2 votes
1 answer
672 views

TypeError: cannot use the given object as a weak map key while using Swiper.js in Firefox

Getting below error in Firefox, when using Swiper.js in a simple Lightning​ App. TypeError: cannot use the given object as a weak map key throws at https://rio-education-dev-ed.lightning.force....
Pasan Eeriyagama's user avatar
0 votes
2 answers
830 views

Collection read only : Unable to add to set

I have to populate a set of Ids with Ids derived from a List<List<sObject>> say searchlist. Below code as I am trying gives me System.Final Exception as Collection is read only and ...
Testing_SFDC's user avatar
  • 2,968
3 votes
2 answers
2k views

Platform Event Testing: Unexpected Exception: Error processing messages

I've been doing a lot of work with Platform events and found it a fantastic way to implement some domain driven design patterns, decouple code, and separate execution contexts. Unfortunately I've been ...
zWhiteD's user avatar
  • 111
0 votes
1 answer
527 views

(Flow + Invocable) System.UnexpectedException: Illegal arguments

I am getting a very strange exception when trying to invoke Apex from a Flow: Sandbox: Error Occurred During Flow "Account_Update_Lead_and_Contact_Fields": An Apex error occurred: System....
Mike's user avatar
  • 1,209
3 votes
1 answer
3k views

System.UnexpectedException on testing Batch

Nothing special. I am testing batch class and I am facing the following exception: Error Message System.UnexpectedException: Error processing messages Stack Trace Class.System.Test.stopTest: line ...
Oleksandr Berehovskyi's user avatar
1 vote
0 answers
643 views

Apex Exception Email not sent in sandbox

Hello I wrote a class which implements Messaging.InboundEmailHandler so I can store my Unhandled Exceptions in Salesforce for historical reporting. I tested it manually by sending an email to my ...
rmarq423's user avatar
  • 977
2 votes
1 answer
1k views

org.auraframework.throwable.quickfix.DefinitionNotFoundException: No APPLICATION named markup:

We're getting an error in Lightning embedded VF page (while loading page) since yesterday. It appeared in Dev. org (for testing) we installed this managed package for testing. Is this a known issue? ...
Pasan Eeriyagama's user avatar
2 votes
1 answer
10k views

How to send List<Wrapper class> from Lightning component to Apex Controller?

My question is bit similar to this. But I'm getting a Runtime exception in SF. Not getting a compiler error, but in Apex, it's throwing, FATAL_ERROR System.UnexpectedException: Salesforce System ...
Pasan Eeriyagama's user avatar
0 votes
1 answer
836 views

Variable does not exist: portalUserInfo.conAccount.Id in Query

Please help with this error: String query = 'SELECT Project__c,' + ' Project__r.Testing_Submitted__c,' + ' Project__r.Project_Sub_Phase__c,' + ' Project__r....
Json's user avatar
  • 1,677
2 votes
2 answers
718 views

Unknown property 'SObject.Description' Error is in expression '{!FormObject.Description}' in component <apex:page> in page formgen_page

I did a small test program to dynamically populate a set of fields onto a Visualforce page, which can enable users to enter data from the form. Created a fieldset as below. Then I did an Apex page ...
Pasan Eeriyagama's user avatar
0 votes
1 answer
104 views

Attempt to dereference null object error

I have below controller where I get Attempt to dereference a null object error at ProdIds.add(c.id); Line. Error Code public TestController(ApexPages.StandardController stdCtrl) { ...
Testing_SFDC's user avatar
  • 2,968
0 votes
1 answer
199 views

List out of bound exception at List<Blob>

I have below piece of code where I get below error. Here b is the List of blobs. Error List index out of bounds: 3 Apex Code for(integer i = 0; i <counter; i++) { Messaging....
Testing_SFDC's user avatar
  • 2,968
0 votes
3 answers
13k views

Getting System.UnexpectedException: java.math.BigDecimal cannot be cast to java.lang.Integer error

When sorting above records of Object A and Object B in sobject list, i was getting below error. Initially I thought this is some thing related to values in Row_Index__c number type field but now i ...
vraavi's user avatar
  • 335
50 votes
2 answers
7k views

Winter 16 recalculateFormulas() fails when sObject has relationship fields

Using the new method on sObject recalculateFormulas() fails when the Sobject includes relationship fields - note account.name in the query. FATAL_ERROR System.UnexpectedException: Opportunity: bad ...
cropredy's user avatar
  • 73.2k
4 votes
1 answer
2k views

recalculateFormulas() causing UnexpectedException: Unable to create/update fields: IsDeleted

When I update my custom Record__c a trigger runs, and it calls recalculateFormulas() on the record. This results in the following error: System.UnexpectedException: Unable to create/update fields: ...
Mossi's user avatar
  • 4,006