FOLIO-FSE / folio_migration_tools

A Python module and CLI tool that transforms legacy ILS data into the native FOLIO formats and loads it into FOLIO
MIT License
11 stars 9 forks source link

HRID settings fail to update at the end of transformation #550

Closed branchedelac closed 1 year ago

branchedelac commented 1 year ago

This is the error

2023-03-09 10:57:43,001 Mapper wrapping up  transform_bibs  rules_mapper_bibs.py:205
2023-03-09 10:57:43,001 Setting HRID counter to current transform_bibs  hrid_handler.py:149
2023-03-09 10:57:43,001 Something went wrong when setting the HRID settings. Update them manually. {"id": "a501f2a8-5b31-48b2-874d-2191e48db8cd", "instances": {"prefix": "in", "startNumber": 28572}, "holdings": {"prefix": "ho", "startNumber": 1}, "items": {"prefix": "it", "startNumber": 1}, "commonRetainLeadingZeroes": true}  transform_bibs  hrid_handler.py:169
Traceback (most recent call last):
  File "/home/ssm-user/client_data/migration_utt/.venv/lib/python3.9/site-packages/folio_migration_tools/marc_rules_transformation/hrid_handler.py", line 158, in store_hrid_settings
    url = self.folio_client.okapi_url + self.hrid_path
AttributeError: 'HRIDHandler' object has no attribute 'hrid_path'

This is the task configuration:

    "migrationTasks": [
        {
            "name": "transform_bibs",
            "migrationTaskType": "BibsTransformer",
            "ilsFlavour": "tag001",
            "tags_to_delete": [],
            "hridHandling": "default",
            "resetHridSettings": false,
            "files": [
                {
                    "file_name": "Bib_monographs.mrc",
                    "suppressed": false
                },
                {
                    "file_name": "Bib_Serials.mrc",
                    "suppressed": false
                }

            ],
            "neverUpdateHridSettings": false
        },
branchedelac commented 1 year ago

It looks very similar to the error described in this closed issue: https://github.com/FOLIO-FSE/folio_migration_tools/issues/462