Title: bSDD KeyError: 'referenceCode when adding classification · Issue #9034 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: bSDD KeyError: 'referenceCode when adding classification · Issue #9034 · IfcOpenShell/IfcOpenShell
X Title: bSDD KeyError: 'referenceCode when adding classification · Issue #9034 · IfcOpenShell/IfcOpenShell
Description: Bug Description Stumbled across this, reporting to investigate later. Was trying to add a classification reference from NL sfb from the bSDD. KeyError: 'referenceCode' 01:40.665 bpy.rna | ERROR Python script error in BIM_OT_search_bsdd_c...
Open Graph Description: Bug Description Stumbled across this, reporting to investigate later. Was trying to add a classification reference from NL sfb from the bSDD. KeyError: 'referenceCode' 01:40.665 bpy.rna | ERROR Pyt...
X Description: Bug Description Stumbled across this, reporting to investigate later. Was trying to add a classification reference from NL sfb from the bSDD. KeyError: 'referenceCode' 01:40.665 bpy.rna | E...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/9034
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"bSDD KeyError: 'referenceCode when adding classification","articleBody":"### Bug Description\n\nStumbled across this, reporting to investigate later. Was trying to add a classification reference from NL sfb from the bSDD.\n\n```\nKeyError: 'referenceCode'\n01:40.665 bpy.rna | ERROR Python script error in BIM_OT_search_bsdd_classifications.execute\n01:40.665 operator | ERROR Python: Traceback (most recent call last):\n | File \"/home/dion/.config/blender/5.2/extensions/.local/lib/python3.13/site-packages/bonsai/bim/module/bsdd/operator.py\", line 46, in execute\n | total = core.search_bsdd_class(tool.Bsdd, tool.Bsdd.get_bsdd_props().keyword)\n | File \"/home/dion/.config/blender/5.2/extensions/.local/lib/python3.13/site-packages/bonsai/core/bsdd.py\", line 46, in search_bsdd_class\n | return bsdd.search_class(keyword, related_entities)\n | ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/home/dion/.config/blender/5.2/extensions/.local/lib/python3.13/site-packages/bonsai/tool/bsdd.py\", line 235, in search_class\n | for _class in sorted(response.get(\"classes\", []), key=lambda c: c[\"referenceCode\"]):\n | ~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n | File \"/home/dion/.config/blender/5.2/extensions/.local/lib/python3.13/site-packages/bonsai/tool/bsdd.py\", line 235, in \u003clambda>\n | for _class in sorted(response.get(\"classes\", []), key=lambda c: c[\"referenceCode\"]):\n | ~^^^^^^^^^^^^^^^^^\n | KeyError: 'referenceCode'\n```\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/Moult","@type":"Person","name":"Moult"},"datePublished":"2026-07-28T22:23:57Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/9034"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:880dc07c-4bf2-cab8-1baa-a94a19be8db1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A52E:2300B7:4E0634:6B0822:6B049F0B |
| html-safe-nonce | af2bbec4954373fa5a0769d2a806e4ae203ae394f822a23693f0eee2ea329e12 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTJFOjIzMDBCNzo0RTA2MzQ6NkIwODIyOjZCMDQ5RjBCIiwidmlzaXRvcl9pZCI6IjU4NzAwNTIyMDE3NjE5MDY0NDMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 24de95d7009159e55ed897e784ff6a41cce61c1f895d15872398eef72e220c96 |
| hovercard-subject-tag | issue:5003476751 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/IfcOpenShell/IfcOpenShell/9034/issue_layout |
| twitter:image | https://opengraph.githubassets.com/55855f5a35592553698ed2eb5728db71fec354c09fd901ec6d1efc7281693c7b/IfcOpenShell/IfcOpenShell/issues/9034 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/55855f5a35592553698ed2eb5728db71fec354c09fd901ec6d1efc7281693c7b/IfcOpenShell/IfcOpenShell/issues/9034 |
| og:image:alt | Bug Description Stumbled across this, reporting to investigate later. Was trying to add a classification reference from NL sfb from the bSDD. KeyError: 'referenceCode' 01:40.665 bpy.rna | ERROR Pyt... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Moult |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9784b6f42e2d5eac4e394fa88cad134c0dc5b6662b4ff2787a1ed1ef5a96331d |
| turbo-cache-control | no-preview |
| go-import | github.com/IfcOpenShell/IfcOpenShell git https://github.com/IfcOpenShell/IfcOpenShell.git |
| octolytics-dimension-user_id | 13692563 |
| octolytics-dimension-user_login | IfcOpenShell |
| octolytics-dimension-repository_id | 40473201 |
| octolytics-dimension-repository_nwo | IfcOpenShell/IfcOpenShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 40473201 |
| octolytics-dimension-repository_network_root_nwo | IfcOpenShell/IfcOpenShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 3fd14143b75b2af7b76bbd23b069867d091adfcc |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width