Loading

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

Publiceringsdatum: Jun 2, 2026
Beskrivning

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_'. 
Knowledge-artikelnummer

001496564

 
Laddar
Salesforce Help | Article