Error processing ECE response file when only "INTP" or "INTF" type legacy rewards are received
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
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:
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:
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bcgov/SIMS
-
Update CrunchyDB operator images to version with updated timezonePossibly taken @uhelm claimed this 8 days ago. Open
Difficulty 2/5 Under an hour Newbie friendliness 62/100
bcgov/SIMS#6765 · 1 assignee ·
Maintainers usually reply within 1 day
-
Links to the old SFAS dashboard are incorrect in DEV/TSTPossibly taken @Joshua-Lakusta claimed this 7 days ago. OpenBusiness
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
bcgov/SIMS#6737 · 1 comment · 1 assignee ·
Maintainers usually reply within 1 day
-
Business User Story
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
Business User Story
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
Similar issues
-
comp/desktop desktop/shell os/windows P3 tool/file type/bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
NousResearch/hermes-agent#145928 ·
Maintainers usually reply within 1 day
-
compiler-dom: stringifyStatic renders :disabled="0" as a present attributePossibly taken @DaZuiZui claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
vuejs/core#16051 · 1 comment ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 74/100
-
integration:coding-agents
Difficulty 1/5 Under an hour Newbie friendliness 83/100
vectorize-io/hindsight#6151 ·
Maintainers usually reply within 1 day
-
DogFooding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
OpenAEV-Platform/openaev#8768 ·
Maintainers usually reply within 1 day