Datacom HCA : custRuleAuthorizers.split is not a function
search cancel

Datacom HCA : custRuleAuthorizers.split is not a function

book

Article ID: 416429

calendar_today

Updated On:

Products

Datacom

Issue/Introduction

Datacom Health Check Analyzer ( HCA)  starthc z/OS job fails with :

    custRuleAuthorizersArr = custRuleAuthorizers.split(",").map(userId => userId.trim());

                                                 ¬                                 

TypeError: custRuleAuthorizers.split is not a function                                   

    at Object.<anonymous> (/HCA location/package/app.js:75:50)                

    at Module._compile (node:internal/modules/cjs/loader:1546:14)                        

    at Module._extensions..js (node:internal/modules/cjs/loader:1689:10)                 

    at Module.load (node:internal/modules/cjs/loader:1318:32)                            

    at Module._load (node:internal/modules/cjs/loader:1128:12)                           

    at TracingChannel.traceSync (node:diagnostics_channel:315:14)                        

    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)                          

    at Function.executeUserEntryPoint Ýas runMain¨ (node:internal/modules/run_main:170:5)

    at node:internal/main/run_main_module:36:49    

Environment

z/OS 

HCA 1.1.05 

Cause

List of authorized user IDs has been coded in an incorrect format in app.yml

Resolution

Enter the authorized user IDs in the below format in the app.yml file: 

custRuleAuthorizers: U111111,U222222

This is documented as comment in the app.yml file as follows : 

# Add user IDs with a space after "custRuleAuthorizers:" and comma-separated (Example, custRuleAuthorizers: userid1,userid2)

Additional Information

The app.yml is utf-8 only, but the starthc.sh file should be in EBCDIC format.