Uploaded image for project: 'mod-data-export'
  1. mod-data-export
  2. MDEXP-499

Existing holdings UUIDs are reported as invalid while exporting holdings record

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 4.3.0
    • None
    • Firebird Sprint 133
    • 3
    • Firebird
    • Lotus R1 2022

    Description

      Overview:
      When exporting holdings, some of the records are being reported as invalid when they in fact exist.

      Steps to Reproduce:

      1. Navigate to Inventory - > Holdings
      2. Limit the search by item effective location set to Main library
      3. On Actions menu, click Save holdings UUIDs to a file
      4. Navigate to data export and trigger the export with the file from the previous step.

      Expected behavior
      All existing records are exported

      Actual result
      Some of the records are being reported in the error logs as invalid.

      Additional information
      The issue seem to be triggered by autotests that are executed in this environment. I run the holdings export in the morning and all was OK, then in the afternoon after the autotests run the issue started to occur. Here is an example:
      1. Export reported 40 records failed:

      2. Here is the holdings record:

      {
      	"id": "1e47da24-074b-4295-931f-f3d1fc2f78af",
      	"_version": 1,
      	"hrid": "ho00000000061",
      	"formerIds": [
      	],
      	"instanceId": "1d2da685-b574-4aaa-9251-378113c10f3e",
      	"permanentLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      	"effectiveLocationId": "fcd64ce1-6995-48f0-840e-89ffa2288371",
      	"electronicAccess": [
      	],
      	"administrativeNotes": [
      	],
      	"notes": [
      	],
      	"holdingsStatements": [
      	],
      	"holdingsStatementsForIndexes": [
      	],
      	"holdingsStatementsForSupplements": [
      	],
      	"statisticalCodeIds": [
      	],
      	"holdingsItems": [
      	],
      	"bareHoldingsItems": [
      	],
      	"metadata": {
      		"createdDate": "2022-01-27T14:23:00.935+00:00",
      		"createdByUserId": "d69a0940-0ba4-5400-80a3-f291c9ea65f1",
      		"updatedDate": "2022-01-27T14:23:00.935+00:00",
      		"updatedByUserId": "d69a0940-0ba4-5400-80a3-f291c9ea65f1"
      	}
      }
      

      TestRail: Results

        Attachments

          1. 10_holdings.mrc
            4 kB
          2. completed export.PNG
            completed export.PNG
            62 kB
          3. completed export mixed holdings.PNG
            completed export mixed holdings.PNG
            63 kB
          4. exported holding.PNG
            exported holding.PNG
            15 kB
          5. exported records.PNG
            exported records.PNG
            70 kB
          6. imported holdings records.PNG
            imported holdings records.PNG
            119 kB
          7. records 58.PNG
            records 58.PNG
            77 kB
          8. screenshot-1.png
            screenshot-1.png
            623 kB
          9. screenshot-2.png
            screenshot-2.png
            188 kB
          10. screenshot-3.png
            screenshot-3.png
            283 kB
          11. screenshot-4.png
            screenshot-4.png
            150 kB
          12. SearchHoldingsUUIDs2022-01-20T17_34_15-05_00.csv
            0.5 kB
          13. SearchHoldingsUUIDs2022-02-15T12_27_58+02_00-1.mrc
            8 kB
          14. SearchHoldingsUUIDs2022-02-16T12_53_06+02_00.csv
            2 kB
          15. SearchHoldingsUUIDs2022-02-16T12_53_06+02_00-1.mrc
            15 kB
          16. source view inventory.PNG
            source view inventory.PNG
            55 kB
          17. the same.PNG
            the same.PNG
            32 kB

          Issue Links

            Activity

              People

                TotoroDev Illia Daliek
                magdaz Magda Zacharska
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases