Closed daissatou2 closed 11 months ago
@mtuchi let's move forward with replacing accentuated characters to letters without accents. For example, "à" should become "a". See how we implemented this on the Itau Social project here. Please use the same list of characters as the Itau example.
You can test with the same state in the issue.
@daissatou2 i have added a function that does the replacement of accent characters, See the PR #45. The function is case sensitive so it will replace the uppercase match with corresponding uppercase character and same for lower case
@mtuchi we are seeing the same error again for a new message: https://www.openfn.org/projects/grs-integrations/runs/06553185-a54b-7abe-a74d-698c3be4927a.
It looks like the accent is not being removed from the CommCare_Ext_ID__c
@daissatou2 i have open a PR that has improvements for replacing accents characters here #48
Describe the bug
The
Upsert Register Participant
job is passing for some messages but not for others. This example run is failing with the following error:ERROR_HTTP_400: Bad Request
Here’s a run from the same day that passed. The format we are sending to SF doesn’t seem to be different between the two so I am not sure what is causing the bad request error.
To Reproduce
expression.js
Link to the job itself in Github: https://github.com/OpenFn/grassroot-soccer/blob/master/jobs/2.d.upsertRegisterParticipant.js
state.json
Expected behavior
The job should successfully upsert
Attendance__c
records.To test/resolve