Skip to content

Generated Data not loading from GCS to FHIR API #1568

@techwithshadab

Description

@techwithshadab

What happened?

Getting this error when i'm creating data in console and trying to load it Google Cloud FHIR API-

ERROR: (gcloud.healthcare.fhir-stores.import.gcs) {
  "code": 3,
  "message": "invalid_argument: importing one or more resources failed. Please use the link in the metadata.logsUrl field to view the error logs for this operation."
}

I installed synthea as per the README file instruction and after that executed this command to generate data-

./run_synthea -p 10000 --exporter.fhir.bulk_data=true

After which i moved it to GCS bucket, and tried loading it FHIR API using the below command-

gcloud healthcare fhir-stores import gcs synthea_fhir   --dataset=synthea_fhir   --location=us-central1   --gcs-uri=gs://synthea_fhir_data/fhir/**.ndjson

Environment

- OS: Linux cs-9018931197-default 6.6.72+ #1 SMP PREEMPT_DYNAMIC Sun Mar 30 09:01:26 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux
- Java: javac 17.0.14

Relevant log output

code: 3
message: "an error occurred while reading the record starting at byte 720164495: no bundle is found; if you intend to import individual resources, make sure you specify the appropriate ContentStructure in the request"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions