instedd / cdx

Connected Diagnostics Platform
https://cdx.io
9 stars 7 forks source link

Incorrect Batch error when uploading CSV with samples #1970

Closed diegoliberman closed 1 year ago

diegoliberman commented 1 year ago
  1. Create an institution from scratch

  2. Create two batches as show in the screenshot below

    image
  3. Create a CSV file as this one

    image

upload_box (1).csv

  1. Create a box and try to use the CSV for uploading the samples

    image
  2. Save

  3. You'll get an error saying that a batch doesn't exist.

    image
ysbaddaden commented 1 year ago

I followed the exact sequence on my local environment but I couldn't reproduce the error :(

diegoliberman commented 1 year ago

I followed the exact sequence on my local environment but I couldn't reproduce the error :(

@sardar-usman can you try to reproduce this error in Staging?

ysbaddaden commented 1 year ago

I understood the issue: different institutions have the exact same batch number and we try to pull the wrong one which is then failing validation.

A fix is on its way.

sardar-usman commented 1 year ago

@ysbaddaden It is showing the correct error now. Working fine now.