IBM Support

ZZ00177: TEAMWORKSRUNTIMEEXCEPTION DEPLOYING CUSTOM PATTERN

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem Description:
    
    
    In SCO 2.3 if a custom flavor has been created with an
    automatically
    generated ID and attached to a Virtual System Pattern then the
    Self
    Service Offering Deploy Virtual System Instance fails to deploy
    the
    pattern with the message:
    
    Runtime error in script ("Process: 'Deploy Single Pattern'
    ProcessItem:
    'Edit Script Parameters' Type: 'PRE'" -1:-1).Internal Script
    error: com.
    lombardisoftware.core.TeamWorksRuntimeException: The object is
    created
    as an array. Only array functions are available. Object:
    TWObject
    [(Active: Y), (Type: 2), (TWClassID:
    TWClass.d2e5a15a-ea53-4793-9e93-
    29af5bd80b13), (MetaData: objectID=8d0a24b6-25e6-47e3-9abe-
    bfb2211f3e52, dirty=true, shared=false, key=null, version=null,
    rootVersionContextID=null, className=null)]
    
    This is caused by the Pre Script in the Edit Script Parameters
    step in
    the Process Application Deploy Single Pattern which takes the ID
    of the
    flavor assigned to a vSYS Pattern and subtracts one from it in
    order to
    index an array of flavors loaded earlier. This obviously does
    not work
    because the auto-generated ID of a custom  flavor is a UUID
    (e.g.
    420c9398-263b-3b99-dbc9-aa81009febd6) . It is quite likely that
    this
    problem will occur if there is a gap in the sequence numbering
    of
    flavors too. The code should be changed to look up the name of
    the
    flavor using any ID instead of referencing an array.
    
    Luckily it is simple to workaround - either replace all flavors
    so that
    they have unique IDs that ascend from number 1 or remove all
    custom
    flavors from vSYS patterns.
    
    Feedback from dev team:
    
    During development of this toolkit it was assumed to
    have flavor IDs as integers.
    

Local fix

  • no workaround
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:
    All users of SmartCloud Orchestrator 2.3 using self service
    offerings with custom added flavors
    
    ****************************************************************
    * PROBLEM DESCRIPTION:
    The "Deploy Single Pattern" Offering does not correctly handle
    if the flavor ID is a UUID
    ****************************************************************
    * RECOMMENDATION:
    The following manual workaround is available while waiting for
    the official fix to be released.
    1. Open "SCOrchestrator_Support_vSys_Toolkit" in Process
    Designer
    2. Open the "Deploy Simple Pattern" Human Service
    3. Open pre-processing step "Edit Script Parameters - Pre"
    4. Add a for loop to loop over tw.local.flavors
    5. Within the loop add a name match check
    tw.local.currentPartParameterCust[i].value ==
    tw.local.flavors[loop index].value
    6. Assign tw.local.flavorSelected = tw.local.flavors[loop index]
    while the check established in step 5. returns true
    6. Create a snapshot to save your changes using a snapshot name
    to help identify this temporary change
    7. Upgrade dependency of all toolkits and process applications
    using the created toolkit snapshot level
    
    For permanent resolution apply SmartCloud Orchestrator 2.3
    Fixpack 1 when available.
    ****************************************************************
    * RECOMMENDATION:
    Apply SmartCloud Orchestrator 2.3 Fixpack 1 when available.
    

Problem conclusion

  • The problem area targets to display the pattern pre-configured
    flavor. The wrong assuption was that flavor IDs are simple
    integers.
    
     The fix for this APAR is contained in the following maintenance
    packages:
    | mod level| 2.3.0-CSI-ISCO-LA0001
    | fix pack | SmartCloud Orchestrator FixPack 1
    

Temporary fix

Comments

APAR Information

  • APAR number

    ZZ00177

  • Reported component name

    SMRTCLOUD ORCHS

  • Reported component ID

    5725H2800

  • Reported release

    230

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2013-12-11

  • Closed date

    2013-12-13

  • Last modified date

    2013-12-13

  • 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

    SMRTCLOUD ORCHS

  • Fixed component ID

    5725H2800

Applicable component levels

  • R230 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS4KMC","label":"IBM Cloud Orchestrator"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"230","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
03 November 2021