Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Error processing ECE response file when only "INTP" or "INTF" type legacy rewards are received

Open Beginner friendly
#6,717 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
Half a day
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
backend

Research direction

Start by inspecting lines 107–110, which the issue identifies as the fix location for handling an empty disbursementValueIds array. Add or update an end-to-end test for a response file containing only INTP or INTF legacy rewards. Done means the response file is processed without the reported query syntax error.

Written by the indexing model from the issue text.

Description

Bug Student

Describe the Bug

When only "INTP" or "INTF" type legacy awards are received as a part of the ece-process-response-integration file, the process fails to properly process this response.

NOTE: This is a minor bug and there is a rare scenario that it can occur. For it to occur, only "INTP" or "INTF" type legacy award records should be received as a part of the file.

Current Behavior
  • The process fails throwing the below error log:
[2026-10-06 22:15:49]INFO: Log details
[2026-10-06 22:15:47]INFO: Processing queue ece-process-response-integration, job ID repeat:4320695c22d8cce7965c84645d39c5d0:1791366300000.
[2026-10-06 22:15:49]--INFO: Log details
[2026-10-06 22:15:49]--INFO: Processing file(s) for institution code: COLF, files: CONR-008-COLF-20261006-144028.txt.
[2026-10-06 22:15:49]----INFO: Log details
[2026-10-06 22:15:49]----INFO: Processing file CONR-008-COLF-20261006-144028.txt for institution code: COLF.
[2026-10-06 22:15:49]----INFO: Starting download of file IN/CONR-008-COLF-20261006-144028.txt.
[2026-10-06 22:15:49]----INFO: The file IN/CONR-008-COLF-20261006-144028.txt has been archived after processing.
[2026-10-06 22:15:49]----INFO: Notification has been created to send email to integration contacts.
[2026-10-06 22:15:49]----INFO: Total file parsing errors: 0
[2026-10-06 22:15:49]----INFO: Total detail records found: 1
[2026-10-06 22:15:49]----INFO: Total detail records skipped: 1
[2026-10-06 22:15:49]----INFO: Total disbursements found: 0
[2026-10-06 22:15:49]----INFO: Disbursements successfully updated: 0
[2026-10-06 22:15:49]----INFO: Disbursements skipped to be processed: 0
[2026-10-06 22:15:49]----INFO: Disbursements considered duplicate and skipped: 0
[2026-10-06 22:15:49]----INFO: Disbursements failed to process: 0
[2026-10-06 22:15:49]----WARN: Award code INTP is legacy only, record at line 2 skipped.
[2026-10-06 22:15:49]----ERROR: Error processing the file IN/CONR-008-COLF-20261006-144028.txt. QueryFailedError: syntax error at or near ")"
[2026-10-06 22:15:49]----ERROR: File processing aborted.
[2026-10-06 22:15:49]INFO: ece-process-response-integration, job ID repeat:4320695c22d8cce7965c84645d39c5d0:1791366300000, finished.

Error from the queue-consumers pod:

image.png

ERROR: Error processing the file IN/CONR-008-COLF-20261006-144028.txt. QueryFailedError: syntax error at or near ")" is not the expected error and needs to be fixed.

Cause:
image.png

If the disbursementValueIds is empty, the above query fails and throws the error. Lines 107 to 110 is the fix to ensure that the empty array is gracefully handled.

Expected Behavior and AC
  • Response file should be properly processed and not error out.
  • Add e2e test
Dominant language
TypeScript
Stars
29
Forks
15
Avg merge
3d 13h
Merged PRs (30d)
52

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bcgov/SIMS

All issues in bcgov/SIMS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.