Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nHapi returns error for valid HL7 files while doing validation concurrently #25

Open
vmsuthar56 opened this issue Dec 15, 2022 · 2 comments

Comments

@vmsuthar56
Copy link

vmsuthar56 commented Dec 15, 2022

We are using nHapitool to validate batch of 1000 HL7 files (want to use it for much more files).
We are using Parallel.ForEachAsync loop with degree of parallelism set to 250.
For some of the valid HL7 files we receive errors as below:

  1. An item with the same key has already been added. Key: ^~&
  2. Index was outside the bounds of the array.Exception: System.IndexOutOfRangeException: Index was outside the bounds of the array
  3. Operations that change non-concurrent collections must have exclusive access. A concurrent update was performed on this collection and corrupted its state. The collection's state is no longer correct.
    Please suggest on this, we are kind of blocked on this.

We are using nhapitool version 2.0.3 and .net 6.0

Thanks

@dib0
Copy link
Owner

dib0 commented Dec 16, 2022

Hi,

I'm not the maintainer of NHapi. I can try to help, but I would need more information. For example errors with stack traces and a code example.

Without such details I would be unable to tell you anything useful I'm afraid...

@milkshakeuk
Copy link
Collaborator

FYI this was also referenced here:

nHapiNET/nHapi#393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants