Element ARRAYROLES is undefined in a CFML structure referenced as part of an expression.
Here's my code:
<cfif StructKeyExists(cfData.data, "inherited_roles") || IsArray(cfData.data.reader_roles)>
<cfset arrayRoles = "reader_roles" >
<cfif ArrayIsEmpty(cfData.data.inherited_roles)>
<cfset arrayRoles = "inherited_roles" >
</cfif>
<cfloop index="p" from="1" to="#arrayLen(cfData.data.arrayRoles)#">
<!---some code here--->
</cfloop>
</cfif>
And here's the error I kept getting.
Element ARRAYROLES is undefined in a CFML structure referenced as part of an expression.
The error occurred on line 07 when I have the #arrayLen(cfData.data.arrayRoles)#.
Any suggestion is much appreciated
