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 #393

Closed
v-nmadwani opened this issue Dec 8, 2022 Discussed in #392 · 6 comments
Closed

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

v-nmadwani opened this issue Dec 8, 2022 Discussed in #392 · 6 comments
Labels
awaiting more information Issue does not contain enough information to support a resolution.

Comments

@v-nmadwani
Copy link

Discussed in #392

Originally posted by v-nmadwani December 8, 2022
We are using nHapi 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.

Thanks

@milkshakeuk
Copy link
Member

Hi @v-nmadwani could you please provide more details, such as version of nhapi version of dotnet etc etc more logs.

@v-nmadwani
Copy link
Author

Hi @milkshakeuk
We are using nhapi version 2.0.3 and .net 6.0

@milkshakeuk
Copy link
Member

milkshakeuk commented Dec 14, 2022

@v-nmadwani nhapi 2.0.3 is very old and doesn't support net6.0 are you sure this is the version? Could you perhaps provide a sample test project so it can be replicated?

@milkshakeuk
Copy link
Member

@v-nmadwani any update on this?

@milkshakeuk milkshakeuk added the awaiting more information Issue does not contain enough information to support a resolution. label Dec 20, 2022
@milkshakeuk
Copy link
Member

@v-nmadwani if you are not able to provide more information / samples etc then I will have to close this issue.

@milkshakeuk
Copy link
Member

@v-nmadwani I'm closing this ticket for now, if you feel it's still an issue please re-open with the additional information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting more information Issue does not contain enough information to support a resolution.
Projects
None yet
Development

No branches or pull requests

2 participants