IBM Support

PM71257: The DXL function 'exportPackage' fails to work on DOORS 9.4 but works fine on DOORS 9.3

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • Problem Statement:
    ==================
    The DXL function 'exportPackage' fails to work on DOORS 9.4 but
    works fine on DOORS 9.3
    
    
    Problem Description:
    ====================
    Customer is using a DXL script to export RIF package. The script
    fails on DOORS 9.4 with the error 'incorrect arguments for
    function (exportPackage)',
    however the same script works fine on DOORS 9.3.
    
    Steps to reproduce:
    ==================
    
        - Create a project and a module under it.
        - Create a RIF definition.
        - OPen the module, Click on 'Tools' and select 'Edit DXL'.
        - Copy the below code and run -
    
    RifDefinition  rd
    for rd in current Project do {
    print rd.name''
    Stream ot= write 'C:\\temp.dxl'
    DB delta=create 'hello'
    bool b=false
    realize delta
    exportPackage(rd,ot,delta,b)
    }
    
        - The above code fails on DOORS 9.4 but works fine on DOORS
    9.3.
    
    
    Support observations:
    =====================
    Able to reproduce the behavior in 9.4, getting the following
    error:
    
    -E- DXL: ?Line:8? incorrect arguments for function
    (exportPackage)
    -I- DXL: All done. Errors reported: 1. Warnings reported: 0.
    
    The Same works fine in DOORS 9.3.
    

Local fix

  • WORKAROUND
    For the exportPackage function, there is a new parameter called
    strExportFileName:
    string exportPackage(RifDefinition def, Stream RifFile, DB
    parent, string strExportFileName, bool& cancel)
    The value should match the name used for the stream. Note that
    the filename string isn't used to create the package file as
    this is done when the stream (parameter 2) is created. However,
    the filename used when creating that stream in parameter 2 is
    used for parameter 4.
    Please note that since this function should not have changed we
    may revert back to the original behavior in a future release.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED:                                              *
    * All users affected                                           *
    ****************************************************************
    * PROBLEM DESCRIPTION:                                         *
    * The DXL function 'exportPackage' fails to work on DOORS 9.4  *
    * but works fine on DOORS 9.3                                  *
    ****************************************************************
    * RECOMMENDATION:                                              *
    ****************************************************************
    

Problem conclusion

  • Client-side fix. The exportPackage() perm's overload behaviour
    that used to work before 9.4 (until 9.3) now restored.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM71257

  • Reported component name

    TLOGIC DOORS

  • Reported component ID

    5724V61DR

  • Reported release

    930

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2012-08-21

  • Closed date

    2014-03-22

  • Last modified date

    2014-03-22

  • 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

    TLOGIC DOORS

  • Fixed component ID

    5724V61DR

Applicable component levels

  • R952 PSY

       UP

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSYQBZ","label":"Rational DOORS"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"9.3","Line of Business":{"code":"LOB59","label":"Sustainability Software"}}]

Document Information

Modified date:
29 October 2021