A fix is available
APAR status
Closed as program error.
Error description
When an on demand, user-initiated (execmode = 2) script package is included in a deployment, the pattern engine erroneously raises an "Invalid value" error at deployment time for script package key values. If the user specifies that "" is a valid value for a script key in the cbscript.json file, the deployment fails if it is not provided a value. When you click "Quick Deploy" when using a pattern that uses "" as a valid value and execmode = 2 in the script package, a red pop up error is shown: Invalid application model Example of a failing cbscript.json file { "scriptkey": "MESSAGE", "scriptvalue": "", "scriptdefaultvalue": "", "validvalues": [ "", "VALUE1", "VALUE2" ], "description": "Testing empty default value with validvalues that includes empty string.", "required": false }
Local fix
The user can change the script key definition in cbscript.json file to remove the empty string value as follows: { "scriptkey": "MESSAGE", "validvalues": ["VALUE1", "VALUE2", "VALUE3"], "description": "Testing empty default value with validvalues that includes empty string.", "required": false } and then in Pattern Builder or the deploy user interface, you can still leave the MESSAGE value blank since it is not required.
Problem summary
The script key values were not being parsed correctly to allow the empty string value.
Problem conclusion
A code fix has been provided in PureApplication System version 2.1.2.0.
Temporary fix
Comments
APAR Information
APAR number
IT09140
Reported component name
PAPP SYS 8382 I
Reported component ID
5725G3200
Reported release
210
Status
CLOSED PER
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2015-05-27
Closed date
2015-11-20
Last modified date
2015-11-20
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Fixed component name
PAPP SYS 8382 I
Fixed component ID
5725G3200
Applicable component levels
R212 PSY
UP
[{"Line of Business":{"code":"LOB10","label":"Data and AI"},"Business Unit":{"code":"BU053","label":"Cloud \u0026 Data Platform"},"Product":{"code":"SSM8NY","label":"PureApplication System"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"2.1.0.0"}]
Document Information
Modified date:
25 September 2021