Skip to content

Answering PWO inquiry causes error message #417

@RobertMueller2

Description

@RobertMueller2

Is this a regression?

Yes

Severity

⚪ Cosmetic – visual or non-functional issue

Please provide the branch(es) you discovered this issue in

v92

Environment Details

OneIM 9.2.x, web portal including 811c6ac

Please provide a minimal set of steps to reproduce the issue

  1. Have an identity create a request
  2. Login as an approver for the same request
  3. Create an inquiry via View Request Details | Send inquiry
  4. Login as the recipient of the inquiry and try to answer

Description

Repro causes error, but the inquiry is answered correctly. The error message may be confusing for portal users.

Describe what you expected to happen versus what actually happened

I would expect no error message.

Relevant logs or console output

2025-11-10T09:02:48.148Z ERROR [main.js:2471] Error: Uncaught (in promise): TypeError: Reduce of empty array with no initial value
TypeError: Reduce of empty array with no initial value
    at Array.reduce (<anonymous>)
    at getWorkflowDataWithSmallestSublevel (decision-step.service.ts:114:6)
    at DecisionStepSevice.getStep (decision-step.service.ts:72:22)
    at DecisionStepSevice.getCurrentStepCdr (decision-step.service.ts:41:23)
    at workflow-single-acti…component.ts:151:44
    at Generator.next (<anonymous>)
    at getWorkflowDataWithSmallestSublevel (decision-step.service.ts:114:6)
    at DecisionStepSevice.getStep (decision-step.service.ts:72:22)
    at DecisionStepSevice.getCurrentStepCdr (decision-step.service.ts:41:23)
    at workflow-single-acti…component.ts:151:44
    at Generator.next (<anonymous>)
 
Caller: GlobalErrorHandler
_logModern	@	ngx-logger.js:484

Add a screenshot(s) if that helps illustrate the problem

No response

Suggested Fix

In decision-step.service.ts replace

(data?.Columns?.Decision?.Value ?? '') === '' &&

with

((data?.Columns?.Decision?.Value ?? '') === ''  || (data?.Columns?.Decision?.Value ?? '') === 'Q') &&

Anything else?

The same code line is present in 9.3.1 latest commit. I haven't attempted the repro in 9.3.1 but I suspect the error can be reproduced there, too.

Before submitting...

  • I have searched for existing issues that match this one on github and on the community support page
  • I have included all necessary details to reproduce this issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    DevOps:649460Linked to internal DevOps issue #649460bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions