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

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

Closed
branchedelac opened this issue Mar 13, 2023 · 1 comment · Fixed by #572
Closed

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

branchedelac opened this issue Mar 13, 2023 · 1 comment · Fixed by #572
Labels
bug Something isn't working Inventory

Comments

@branchedelac
Copy link
Contributor

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
Copy link
Contributor Author

branchedelac commented Mar 13, 2023

It looks very similar to the error described in this closed issue: #462

@branchedelac branchedelac added Inventory bug Something isn't working labels Mar 13, 2023
@fontanka16 fontanka16 linked a pull request Mar 28, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Inventory
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant