Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
  • Home
  • News
  • Articles
No Result
View All Result
Salesforce Times
No Result
View All Result
Home Articles

Salesforce Winter’25 Release Notes | Development – Apex

Antonis Melakis by Antonis Melakis
February 19, 2025
in Articles, Release Notes
0 0
0
Salesforce Winter’25 Release Notes | Development – Apex
0
SHARES
0
VIEWS
Share on FacebookShare on Twitter

3. SOQL Error and Functionality Changes

SOQL Error and Functionality Changes in this release can impact existing Apex code that relies on old SOQL error messages and functionality, particularly to dynamic SOQL code that handles the parsing of error messages. Apex code should be updated according to the new changes as needed

  • Support for negative currency values in queries, such as SELECT Name FROM Invoice__c WHERE Balance__c < USD-500
  • New error messages with invalid SOQL queries
    • SELECT Id FROM Account USING everything
      Old: unexpected token: ‘<EOF>’
      New: unexpected token: ‘everything’
    • SELECT ParentId, Value FROM InteractionRefOrValue WHERE ParentId IN ()
      Old: unexpected token: ‘)’
      New: unexpected token: ‘ParentId IN ()’
    • SELECT FROM ServicePresenceStatus
      Old: unexpected token: ‘FROM’
      New: unexpected token: ‘SELECT FROM’
    • SELECT Id from $casecomment WHERE isdeleted = false
      Old: line 1:15 no viable alternative at character ‘$’
      New: line 1:15 unexpected token: ‘$’
    • SELECT lastmodifieddate, companyna fr$om user
      Old: unexpected token: user
      New: missing value at ‘user’
  • New error message in SOQL queries with quotes surrounding an unexpected token
    SELECT annualrevenue , parentid
    FROM Account
    WHERE
    (isDeleted = false AND NumberOfEmployees != 100)
    OR (isDeleted = false AND Site = ‘999’)
    AND ParentId = ‘000000000000000’ LIMIT 50000
    Old: unexpected token: AND
    New: unexpected token: ‘AND’
  • New error message when using NULL literals in WHERE statements with the LIKE keyword
    SELECT Id, Name, Country__c, State__c, City__c, PAN_Number__c
    FROM Account WHERE PAN_Number__c LIKE NULL AND Name LIKE ‘%a%’
    Old: invalid operator
    New: unexpected token: ‘NULL’
  • New error message when using more than two nested functions
    SELECT convertCurrency(calendar_year(convertTimezone(lastmodifieddate))) FROM account
    Old: expecting a right parentheses, found ‘(’
    New: unexpected token: ‘(’
  • New error messages in SOQL queries with invalid datetime literals
    • SELECT Id FROM Account WHERE SystemModstamp > 2020-12-12t12:12:00-25:00
      Old: line 1:67 mismatched character ‘5’ expecting set ‘0’..’3′
      New: Invalid datetime: 2020-12-12t12:12:00-25:00
    • SELECT Id FROM Account WHERE SystemModstamp > 2020-52-12t12:12:00-05:00
      Old: line 1:51 no viable alternative at character ‘5’
      New: Invalid datetime: 2020-52-12t12:12:00-05:00
  • New error message when there isn’t a valid bind variable reference after a colon
    SELECT Id FROM Custom_User_Attribute__c WHERE User__c =: 0050W000007Jz7jQAC
    Old: Only variable references are allowed in dynamic SOQL/SOSL
    New: unexpected token: ‘0050’
Previous More Coverage for Unexpected Exceptions in Apex Code Execution
Next Consistency Improved When Iterating Sets
Tags: ApexDevelopmentSalesforce Winter ’25 Release Notes
Previous Post

Salesforce Spring’25 Release Notes | Customization – General Setup

Next Post

Salesforce Winter’25 Release Notes | Salesforce Mobile App

Antonis Melakis

Antonis Melakis

Next Post
Salesforce Winter’25 Release Notes | Salesforce Mobile App

Salesforce Winter'25 Release Notes | Salesforce Mobile App

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Salesforce Spring’25 Release Notes | Flow Extensions and Management
  • Salesforce Spring’25 Release Notes | Flow Builder Run-Time Changes
  • Salesforce Winter’25 Release Notes | Screen Flow Updates
  • Salesforce Winter’25 Release Notes | Flow Builder User Experience Updates
  • Salesforce Spring’25 Release Notes | Flow Builder User Experience Updates

Recent Comments

No comments to show.

Tags

Analytics Apex AppExchange Artificial Intelligence Automation Awards and Recognition Configuration Customization Data Development Digital Transformation Fields Flow Actions Flow Builder Flow Builder Updates General Enhancements General Mobile Updates General Setup Globalization Lightning App Builder Lightning Reports and Dashboards List Views Mobile Partnership Permissions and Sharing Sales Salesforce Flow Salesforce Mobile App Salesforce Overall Salesforce Partners Salesforce Spring ’25 Release Notes Salesforce Summer '24 Release Notes Salesforce Winter ’25 Release Notes Security, Identity, and Privacy User Experience
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • Home
  • News
  • Articles

© 2025 JNews - Premium WordPress news & magazine theme by Jegtheme.