Skip to main content
Question

Issue with retrieving copybooks when package has a copybook in staging dataset

  • June 1, 2026
  • 2 replies
  • 25 views

Lisa Brewer
Forum|alt.badge.img+1

Using zapp.yaml file in the IBM open editor to expand and retrieve copybooks. 

When package does not have any copybook in a staging dataset, the retrieval works successfully.  When a copybook exists in the staging dataset, the retrieve of copybooks fails.

Click on source code in a ChangeMan package.  Select Yes.

 

Select Yes.

 

 

 

From the log file, we debug on.

[2026/06/01 14:28:51.462] [DEBUG] [extensionHostProcess.js:502] Getting token session - zmf_serzmfp
[2026/06/01 14:28:51.464] [DEBUG] [extensionHostProcess.js:502] Allocated token - 887A13591D219BDF3DCA0E6060966351
[2026/06/01 14:28:51.466] [DEBUG] [extensionHostProcess.js:502] CommonRest -createResource /component/source-include/nolocate?package=CH03000071&sourceComponent=CHGSECR1&SourceComponentType=SRC
[2026/06/01 14:28:51.536] [DEBUG] [task_queues:103] Releasing token session - 887A13591D219BDF3DCA0E6060966351
[2026/06/01 14:28:51.538] [DEBUG] [task_queues:103] Getting token session - zmf_serzmfp
[2026/06/01 14:28:51.540] [DEBUG] [task_queues:103] Allocated token - EFEAD5C3C0FCA32A0CBB17F592318094
[2026/06/01 14:28:51.541] [DEBUG] [task_queues:103] CommonRest -createResource /component/source-include/locate?package=CH03000071&sourceComponent=CHGSECR1&SourceComponentType=SRC
[2026/06/01 14:28:51.600] [DEBUG] [task_queues:103] Releasing token session - EFEAD5C3C0FCA32A0CBB17F592318094
[2026/06/01 14:28:51.601] [DEBUG] [task_queues:103] CommonRest -createResource /logon
[2026/06/01 14:28:51.604] [DEBUG] [task_queues:103] CommonRest -createResource /logon
[2026/06/01 14:28:51.685] [DEBUG] [task_queues:103] Component CHGSECR1 created 2 temporary sessions
[2026/06/01 14:28:51.687] [DEBUG] [extensionHostProcess.js:504] CommonRest -createResource /component/browsedependencies?dsName=CMNP.STGE.CH03.%23000071.CPY&memberName=XMLCGCSC&restAuthToken=2a76947f-6c77-407e-bb27-1ddae2a1426a
[2026/06/01 14:28:51.689] [DEBUG] [extensionHostProcess.js:504] CommonRest -createResource /component/browsedependencies?dsName=NOT%20FOUND&memberName=XMLYGCSC&restAuthToken=2a76947f-6c77-407e-bb27-1ddae2a1426a
[2026/06/01 14:28:51.756] [ERROR] [task_queues:103] Fatal error occurred
HTTP(S) error status "400" received.
Review request details (resource, base path, credentials, payload) and ensure correctness.

Protocol:  https
Host:      mf-test..com
Port:      8000
Base Path: /zmfrestp
Resource:  /component/browsedependencies?dsName=NOT%20FOUND&memberName=XMLYGCSC&restAuthToken=2a76947f-6c77-407e-bb27-1ddae2a1426a
Request:   GET
Headers:   [{"Accept-Encoding":"br, deflate, gzip"}]
Payload:   undefined

{"message":"Required value not supplied for parameter(applName)","reasonCode":"400","returnCode":"400"}
[2026/06/01 14:28:51.758] [ERROR] [task_queues:103] [x4 [Error]: Rest API failure with HTTP(S) status 400
    at M4.populateError (c:\Users\xxx9999\.vscode\extensions\rocketsoftware.zmfexplorer-2.0.10\out\extension.js:879:233)
    at e (c:\Users\xxx9999\.vscode\extensions\rocketsoftware.zmfexplorer-2.0.10\out\extension.js:856:6954)
    at M4.onEnd (c:\Users\xxx9999\.vscode\extensions\rocketsoftware.zmfexplorer-2.0.10\out\extension.js:856:7195)
    at IncomingMessage.<anonymous> (c:\Users\xxx9999\.vscode\extensions\rocketsoftware.zmfexplorer-2.0.10\out\extension.js:856:5342)
    at IncomingMessage.emit (node:events:531:35)
    at endReadableNT (node:internal/streams/readable:1698:12)
    at process.processTicksAndRejections (node:internal/process/task_queues:89:21)] {
  mDetails: {
    msg: 'Rest API failure with HTTP(S) status 400',
    causeErrors: '{"message":"Required value not supplied for parameter(applName)","reasonCode":"400","returnCode":"400"}',
    source: 'http',
    errorCode: 400,
    protocol: 'https',
    port: 8000,
    host: 'mf-test..com',
    basePath: '/zmfrestp',
    httpStatus: 400,
    errno: undefined,
    syscall: undefined,
    payload: undefined,
    headers: [ [Object] ],
    resource: '/component/browsedependencies?dsName=NOT%20FOUND&memberName=XMLYGCSC&restAuthToken=2a76947f-6c77-407e-bb27-1ddae2a1426a',
    request: 'GET',
    additionalDetails: 'HTTP(S) error status "400" received.\n' +
      'Review request details (resource, base path, credentials, payload) and ensure correctness.\n' +
      '\n' +
      'Protocol:  https\n' +
      'Host:      mf-test..com\n' +
      'Port:      8000\n' +
      'Base Path: /zmfrestp\n' +
      'Resource:  /component/browsedependencies?dsName=NOT%20FOUND&memberName=XMLYGCSC&restAuthToken=2a76947f-6c77-407e-bb27-1ddae2a1426a\n' +
      'Request:   GET\n' +
      'Headers:   [{"Accept-Encoding":"br, deflate, gzip"}]\n' +
      'Payload:   undefined'
  },
  mMessage: 'Rest API failure with HTTP(S) status 400'
}

2 replies

The problem appears to be with component/source-include/locate (CMPONENT/SRC_INCL/LOCATE service).  This is returning “NOT FOUND” in the includedComponentLocation field.  This is in turn passed to to component/browsedependencies service.  

The failing component is XMLYGCSC.   Can you tell me the status of this component and where it is located?  Maybe it has been scratched?

The explorer should pick up on the “NOT FOUND” response and bypass the call.  I will create a ticket to track this work. 

Thanks,
John


Lisa Brewer
Forum|alt.badge.img+1
  • Author
  • Participating Frequently
  • June 4, 2026

The copybook is in a baseline library.   It is one of the libraries I have defined in the zapp.xml file.    It doesn’t matter which copybook.  They are return a not found when there is a copybook in the package or in participating package.  If I hover over the copybook, it is found.