gs.getSessionID() is throwing an error

Madhan007
Tera Contributor
var sessionID = sn_fd.GlideActionUtil.setEncryptedOutput(util.getSessionId());
    if (typeof sessionID === 'string' && sessionID == '') {
        throw new Error("Invalid Connection & Credential Alias.");
    } else {
        outputs.session_id = sessionID;
    }
The above lines of code are used in a script step in a Data stream.
If the session ID is empty, we are throwing an error. why would be the session ID be empty when the subflow runs as system and how can we resolve it ?

Thanks in Advance !!
0 REPLIES 0