Engineering Requirements Management

Engineering Requirements Management

Come for answers, stay for best practices. All we're missing is you.

 View Only
  • 1.  Error in decodeResourceURL function

    Posted 12/14/20 07:10 AM

    Hello Everyone,

    The following dxl code should work, but it doesn't.

    string resourceURL= "doors://servername:36677/?version=2&prodID=0&view=00000003&urn=urn:telelogic::1-432aa0956f684cff-O-371-000149fe" string protocol = null string dbHost = null int dbPort = 0 string repositoryId = null string dbName = null string dbId = null Item i = null ModuleVersion mv = null string view = null int absno = 0 string errMsg = decodeResourceURL(uri, protocol, dbHost, dbPort, repositoryId, dbName, dbId, i, mv, view, absno)

    The error message is:

    -E- DXL: <Line:14> incorrect arguments for function (decodeResourceURL) -E- DXL: <Line:14> incorrectly concatenated tokens -I- DXL: All done. Errors reported: 2. Warnings reported: 0.

    Do you know what I missed?

    Thank you!

    Gabor





    #DOORS
    #Support
    #EngineeringRequirementsManagement
    #SupportMigration
    #Sustainability


  • 2.  RE: Error in decodeResourceURL function

    Posted 12/14/20 02:56 PM
    • check the variable name (resourceURL vs. uri)
    • Louie suggests that your resourceURL has the wrong format, see https://jazz.net/dxl/html/1811%20-%20decodeResourceURL%20runtime%20error.html , but still I could not get this to run. Perhaps you try to set your variable uri to "getResourceURL" and immediately afterwards try a decodeResourceURL
    • the variable name "view" might collide with the reserved keyword view
    • or it is a bug in DOORS. Which version of DOORS do you use? I could not get it to work with 9.7.0.0




    #DOORS
    #Support
    #SupportMigration
    #EngineeringRequirementsManagement
    #Sustainability


  • 3.  RE: Error in decodeResourceURL function

    Posted 12/14/20 03:22 PM

    Hi Mike,

    You are right, I mixed 2 code parts after trying several. But after correcting I still got an error.

    -R-E- DXL: <Line:15> An unexpected error has occurred.

    -R-F- DXL: <Line:15> internal error, please submit a bug report

    To your points:

    1. That was the cause of the "incorrect arguments for function" error, but after correcting it, the above mentioned error occurred.
    2. Yes, I'm aware of that topic, that's where the code came from. I also tried getResourceURL which returns the same URL that I assigned to the variable.
    3. I renamed the variable, same error.
    4. I use 9.6.1.11

    My current code is like this:

    string resourceURL= "doors://d1ddbapp04:36677/?version=2&prodID=0&view=00000003&urn=urn:telelogic::1-432aa0956f684cff-O-371-000149fe"


    string protocol = null

    string dbHost = null

    int dbPort = 0

    string repositoryId = null

    string dbName = null

    string dbId = null

    Item i = null

    ModuleVersion mv = null

    string openview = null

    int absno = 0


    string errMsg = decodeResourceURL(resourceURL, protocol, dbHost, dbPort, repositoryId, dbName, dbId, i, mv, openview, absno)








    #Support
    #SupportMigration
    #EngineeringRequirementsManagement
    #Sustainability
    #DOORS


  • 4.  RE: Error in decodeResourceURL function

    Posted 12/14/20 03:26 PM

    I get the same error, for folders and modules. seems like a bug in DOORS to me, perhaps you should open a case it IBM





    #SupportMigration
    #DOORS
    #Sustainability
    #EngineeringRequirementsManagement
    #Support