ERROR

Coldfusion.runtime.UndefinedElementException: Element XXX is undefined in YYY

Last Published: April 25, 2020

Error Message

The following exception occurs when a null value is returned by an element of an object:

"coldfusion.runtime.UndefinedElementException: Element XXX is undefined in YYY"

Cause

The Cold Fusion MX toolkit cannot handle NULL values.

Solution or Workaround

Use CFPARAM tag to solve this problem. Instructions for this procedure can be found through the link in Related Information, below.

The tag assigns a default value to a variable. If the value assigned to a variable by the Web service is not NULL, then that value gets displayed. However, if the value is NULL, then the default value for that variable, as set in the CFPARAM tag, is displayed.

CFPARAM Tag details:

Description
This tag tests for a parameter’s existence, tests its data type, and, if a default value is not assigned, provides one.

Syntax
<cfparam
name = "param_name"
type = "data_type"
default = "value">

Article ID:000006394

Software:
  • Legacy Products

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options

Related Information

Discover more on this topic