Title: False-positive IfcPropertyListValue.WR31 error when ListValues is empty · Issue #7501 · IfcOpenShell/IfcOpenShell · GitHub
Open Graph Title: False-positive IfcPropertyListValue.WR31 error when ListValues is empty · Issue #7501 · IfcOpenShell/IfcOpenShell
X Title: False-positive IfcPropertyListValue.WR31 error when ListValues is empty · Issue #7501 · IfcOpenShell/IfcOpenShell
Description: Bug Description When validating an IFC file with ifcopenshell.validate.validate, instances of IfcPropertyListValue with an empty ListValues attribute (optional according to the IFC documentation) raise the IfcPropertyListValue.WR31 error...
Open Graph Description: Bug Description When validating an IFC file with ifcopenshell.validate.validate, instances of IfcPropertyListValue with an empty ListValues attribute (optional according to the IFC documentation) r...
X Description: Bug Description When validating an IFC file with ifcopenshell.validate.validate, instances of IfcPropertyListValue with an empty ListValues attribute (optional according to the IFC documentation) r...
Opengraph URL: https://github.com/IfcOpenShell/IfcOpenShell/issues/7501
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"False-positive IfcPropertyListValue.WR31 error when ListValues is empty","articleBody":"### Bug Description\n\nWhen validating an IFC file with ifcopenshell.validate.validate, instances of IfcPropertyListValue with an empty _ListValues_ attribute (optional according to the IFC documentation) raise the IfcPropertyListValue.WR31 error.\n\nThe error log indicates that the violation occurs due to an attempt to iterate over a NoneType object, indicating that the file itself does not actually violate the IfcPropertyListValue.WR31 rule.\n\nHowever, even as a false-positive, this error can interrupt automated workflows that rely on successful schema validation.\n\nThe error log was:\n\n> {'level': 'error', 'message': \"(sizeof([temp for temp in self.ListValues if not typeof(self.ListValues[1]) == typeof(temp)]) == 0)\\n\\nViolated by:\\n 'NoneType' object is not iterable\\n\\nOn instance:\\n #29=IfcPropertyListValue('Campos a preencher','column-1',$,$)\\n\", 'type': 'entity_rule', 'instance': #29=IfcPropertyListValue('Campos a preencher','column-1',$,$), 'attribute': 'IfcPropertyListValue.WR31'}\n\n\n### Attachments\n\n_No response_\n\n### Debug and Error Output\n\n```true\n\n```","author":{"url":"https://github.com/fg55b","@type":"Person","name":"fg55b"},"datePublished":"2025-12-17T23:15:43Z","url":"https://github.com/IfcOpenShell/IfcOpenShell/issues/7501"}
| 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:13f04b19-e15f-5e69-9406-3b8dceb0a399 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B15A:28B6BF:69D1E1:93CF97:6B0479B0 |
| html-safe-nonce | 7dd02b4f48774079c34308a58e6f335b4397a5049c1f6b04962640e2e315200b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMTVBOjI4QjZCRjo2OUQxRTE6OTNDRjk3OjZCMDQ3OUIwIiwidmlzaXRvcl9pZCI6IjQ3MzM2NjQwMTkxNDIxNzkyNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 19bfec6fa5614eaf5b9c8d8d653f3d820ad040f3224f70ed922d568b2bade8f7 |
| hovercard-subject-tag | issue:3740807001 |
| 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/7501/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5a4c8560107432f3a57d377014dc427603ad2cf5a1f24e410a3e8a145d7f588b/IfcOpenShell/IfcOpenShell/issues/7501 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5a4c8560107432f3a57d377014dc427603ad2cf5a1f24e410a3e8a145d7f588b/IfcOpenShell/IfcOpenShell/issues/7501 |
| og:image:alt | Bug Description When validating an IFC file with ifcopenshell.validate.validate, instances of IfcPropertyListValue with an empty ListValues attribute (optional according to the IFC documentation) r... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | fg55b |
| hostname | github.com |
| expected-hostname | github.com |
| None | 9c099f1b85def81ca352464c276510dfef32deaf3c305404e65b8d270284a58b |
| 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 | cf73f57448d52b3a7b619195e182b33d3b3454ca |
| 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