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

Not able to create data table with value list column

SA-891

Summary



User trying to create a table having column with property mode as value list using Data Model - Data Tables wizard, in pega 7. It is throwing an error 
Here we are creating value list property, not referencing to any particular value in value list. So there is no need to provide index value.

Error Messages



Errors:
** An index value is missing in a reference to a valuelist or valuegroup: .test. Please enter an integer value/valid name.
.pyUI.pyBody.pyUIFields(2).pyFieldName: This is not a valid property, or this is a property that cannot be used here.
pyClassName:** ** An index value is missing in a reference to a valuelist or valuegroup: .test. Please enter an integer value/valid name. .pyUI.pyBody.pyUIFields(2).pyFieldName: This is not a valid property, or this is a property that cannot be used here.


Steps to Reproduce



1. Open Datatable wizard and give the class which is inherited from data-
2. Define the columns ID, pyLable, and DocumentList (which is of Vlauelist mode)
3. click on generate.

An error will appear on the screen.


Root Cause



The root cause of this problem is a defect in Pegasystems’ code/rules. 

Below validation is causing the problem.

@(Pega-RULES:Property).invokeValidate(.pyFieldName, IsFieldAProperty) 
 
IF Validation of .pyFieldName using IsFieldAProperty fails  
THEN display message:
IsNotAValidField
 
ValidatePropertyName validate rule is invoked.
 
Embed-ReportUIFields • ValidatePropertyName
Pega-Reporting:07-10-01



Resolution



As a workaround to this problem till you upgrade, the change would be to include the below When condition on the activity pzGenerateRD’s STEP 3.
 
.pyPropertyMode=="StringList"
 
This would make sure that the stringList/ValueList is addable to the created DataTable.
This issue is scheduled to be resolved in Maintenance Level (ML) release ML 7.

Published June 12, 2015 - Updated October 8, 2020

Was this useful?

0% 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