• FEATURES
  • PRICING
  • MARKETPLACE
  • CASE STUDIES
  • BLOG
  • OpenSpecimen Forums

    Help with Bulk Import Error: NullPointerException on CollectionProtocol

    Hi everyone,

    I’m running into an issue when trying to perform a bulk import in OpenSpecimen. The error I’m seeing is:

    Error: NullPointerException: Cannot invoke "com.krishagni.catissueplus.core.biospecimen.domain.CollectionProtocol.getId()" because the return value of "com.krishagni.catissueplus.core.biospecimen.domain.CollectionProtocolRegistration.getCollectionProtocol()" is null
    

    From what I understand, it seems like the import is trying to reference a collection protocol that isn’t being correctly associated with the participant or registration. I’ve double-checked that the CP names in my import file match the ones in the system, but the error persists and not sure how to fix it.

    Hi @Marie_Parsons,

    This usaully happens if the CSV header is not matching the bulk import template.

    Please check the below things.

    1. Download the previous bulk import file and open it in a text editor (not Excel/CSV).
    2. Check for any special characters in the Collection Protocol Name.
    3. Verify the CP Short Title column name matches the original template exactly (you can download an empty template to compare).
    4. Ensure the CP Short Title value matches exactly, including upper/lower case.

    If the issue is not resolved, please ask your project manager to log a support ticket with the OpenSpecimen HelpDesk. We can’t debug this on the forum as it requires reviewing bulk import files.

    Thanks,
    Tushar

    Thank you, I resolved the error!