Skip to content

unable to sort json with non-dcatus fields #5450

Closed

Description

@rshewitt

several records for job threw exception by sansjson unable to sort the data. the "metadata" value of record https://www.arcgis.com/home/item.html?id=bd1b6ee967134ea68fac351cef461b5e&sublayer=0 caused the error for that record.

How to reproduce

Expected behavior

  • sort successful

Actual behavior

  • sort unsuccessful with exception TypeError: '>' not supported between instances of 'dict' and 'dict'

Sketch

  • remove all non-dcatus fields from input
new_dict = {key: value for key, value in dict_a.items() if key in dict_b}

Activity

  1. added
    bugSoftware defect or bug
    Harvest-RunnerHarvest Source Processing for Harvesting 2.0
    on Sep 12, 2025
  2. moved this to 📥 Queue in data.gov team boardon Sep 18, 2025
  3. moved this from 📥 Queue to Queue for Next Sprint in data.gov team boardon Feb 13, 2026
  4. moved this from Queue for Next Sprint to 📥 Queue in data.gov team boardon Feb 25, 2026
  5. added
    DCAT-US3Tickets related to DCAT-US3 release and support.
    on Mar 5, 2026
  6. SueValente commented on Mar 6, 2026

    @SueValente
    Contributor

    @neilmb - is this still a thing with DCAT US 3?

  7. neilmb commented on Mar 6, 2026

    @neilmb

    @SueValente Yes, this is an issue in our code that could come up with any JSON-based data catalogs (I think).

  8. SueValente commented on Mar 12, 2026

    @SueValente
    Contributor

    Can fix it with dependency or remove the problematic data.. probably fixing at the root is best.

  9. moved this from 📥 Queue to Next Up in data.gov team boardon Apr 9, 2026
  10. 7 remaining items

  11. moved this from 📟 Sprint Backlog to 📥 Queue in data.gov team boardon Jun 24, 2026
  12. moved this from 📥 Queue (up next) to 📟 Sprint Backlog (Top Priority) in data.gov team boardon Aug 12, 2026
  13. moved this from 📟 Sprint Backlog (Top Priority) to 🏗 In Progress in data.gov team boardon Aug 25, 2026
  14. moved this from 🏗 In Progress to 👀 Needs Review in data.gov team boardon Aug 26, 2026
  15. moved this from 👀 Needs Review to ✔ Done in data.gov team boardon Aug 26, 2026
  16. closed this as completedby moving to ✔ Done in data.gov team boardon Aug 26, 2026
  17. moved this from ✔ Done to 🗄 Closed in data.gov team boardon Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

DCAT-US3Tickets related to DCAT-US3 release and support.HarvesterbugSoftware defect or bug

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions