Skip to content

Fixes for APIs related to Make Data Count when trying to update datasetexternalcitations #12384

@stevenwinship

Description

@stevenwinship

The purpose of this issue is to get counter_weekly.sh running in Harvard Dataverse.

API http://localhost:8080/api/dataverses/$1/contents encounters a null pointer exception in Harvard Dataverse preventing the counter_weekly script from running. The 2 values (id and name) are both defined as not null in the database but are giving null when the Json is being created.

API internal error 4f4fde25-388e-4c1f-b294-32fc629c84f3: Value in JsonObjects name/value pair cannot be null
java.lang.NullPointerException: Value in JsonObjects name/value pair cannot be null
at org.eclipse.parsson.JsonObjectBuilderImpl.validateValue(JsonObjectBuilderImpl.java:213)
at org.eclipse.parsson.JsonObjectBuilderImpl.add(JsonObjectBuilderImpl.java:80)
at edu.harvard.iq.dataverse.api.Dataverses$1.visit(Dataverses.java:1210)
at edu.harvard.iq.dataverse.api.Dataverses$1.visit(Dataverses.java:1205)
at edu.harvard.iq.dataverse.Dataverse.accept(Dataverse.java:871)

It may also be necessary to add paging to the api as the number of dataverses being returned could cause a timeout.

Related Issue: IQSS/dv-api-metrics#14

Metadata

Metadata

Assignees

No one assigned

    Labels

    FY26 Sprint 22FY26 Sprint 22 (2026-04-22 - 2026-05-06)FY26 Sprint 23FY26 Sprint 23 (2026-05-06 - 2026-05-20)Size: 80A percentage of a sprint. 56 hours.

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions