You are currently reviewing an older revision of this page.
When applying the difference() function on an empty array, such as the following:
difference()
=difference ({1,2,3,{},4},{})
the following error occurs:
Expression evaluation error at function 'difference': Invalid types, can only act on data of the same type (Number (Integer), Any Type)
This issue has been reported to the Appian product team. The reference number for this issue is AN-69761.
As a workaround, place a check prior to the difference() function in order to avoid evaluating empty arrays.
This article applies to Appian 7.8 and later.
Last Reviewed: May 2017