SNPI Story 4 - Make HHD Form Dynamic - Validate Task error

SheenamA
Giga Contributor

While performing "SNPI Story 4 - Make HHD Form Dynamic" task, getting error to validate task even when the UI Policy and UI Policy action has been created as expected. Can you assist what could be possible issue.

 

refer below screenshots:

11 REPLIES 11

HiroProtag
Mega Contributor

I ran into the same validation issue even though the UI Policy looked correct. The root cause was related to field names created during the import process. When the table is created via import, ServiceNow automatically prefixes fields with u_ (for example, u_unlock_code and u_state). However, the lab validator specifically expects fields named without the prefix (e.g., unlock_code and state). The fix was to create new fields with the exact expected column names (no u_), update the form to use those fields, and then rebuild the UI Policy and UI Policy Action to reference them. Once the policy was using state and unlock_code instead of the u_ versions, validation passed immediately. Resolved my issue.

HiroProtag
Mega Contributor
I had the same validation issue even though everything looked correct. The problem was that fields created during import had a u_ prefix like u_unlock_code and u_state, but the validator expects unlock_code and state without the prefix. The fix was to create new fields without u_, update the form, and point the UI Policy and action to those new fields. After that, validation passed.