Support Article

For Each PropertyName: Property is undefined



A compilation error occurs when For Each Element in Value List is looped.

Error Messages

This record has 1 Error in 1 place
For Each PropertyName: Property Your_organization-OCFW-Work-Order-NBN.device is undefined.

Steps to Reproduce

  1. Create TestList Value List in a different page TestPage of a different class other than the class where the activity is defined.
  2. Create an activity.
  3. Define TestPage in the Pages and Classes.
  4. Use For Each Element in Value List, and loop TestList by giving TestPage step page context in the activity.
  5. Attempt to save the activity.

Root Cause

Value List property was referred directly without mentioning the page name.


Use <PageName>.<ValueList_PropertyName> in the loop.

Published January 12, 2017 - Updated January 19, 2017

100% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.