Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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 19, 2017 - Updated October 8, 2020

Was this useful?

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.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us