Loading

Error "The result returned by the SCRIPT function is of an unexpected type" When the Result is NA

Udgivelsesdato: Jun 2, 2026
Beskrivelse

When using SCRIPT_REAL in a calculated field, and the result of the calculation in the script is NA, the following error may occur:

Unable to complete action
The result returned by the SCRIPT function is of an unexpected type.

Cause

This behavior is by design, since NA_real_ is of the expected type when using the SCRIPT_REAL() function.
 
Løsning
 Instead of using 'NA' in the calculation, use 'NA_real_'. 
Vidensartikelnummer

001496564

 
Indlæser
Salesforce Help | Article