Effort to converting XML to OSM failing

asked 2023-03-16 13:20:36 -0500

hamza_z's avatar

updated 2023-03-17 08:50:06 -0500

I downloaded building energy models (XML files) from NREL's data repository (https://data.openei.org/s3_viewer?buc...). I intend to convert the files I fetched from here to OSM files so I can use them to run scenarios on PAT. However, when I try to do that, it gives the following error. I tried running the existing sample file measures (base.xml, for example), and they run fine. I wonder what the issue may be with the ones I downloaded from NREL's repository? Is there a way to convert these XML files to OSM?

This element is not expected. Expected is ( SystemIdentifier ).    at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:739
Error: Element 'DuctType': This element is not expected. Expected is ( SystemIdentifier ).    at C:/OpenStudio-HPXML-1.5.1/workflow/sample_files/in_11848.xml:746

I appreciate any help I can get. Thanks!

edit retag flag offensive close merge delete

Comments

See my answer here. Does that help?

shorowit's avatar shorowit  ( 2023-03-16 14:38:34 -0500 )edit

Hi Scott,

I made the changes to xml file for the two instances mentioned in your response to the linked post (re: Quantity/Count and Ducts SystemIdentifier). Then I tried running it through the OpenstudioHPXML embedded in my Resstock 3.0.0, but it still gives me the following errors:

Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete] [context: /HPXML/Building/BuildingDetails/Enclosure/Floors/Floor, id: "Floor1"] Error: Expected 1 element(s) for xpath: FloorType[WoodFrame | StructuralInsulatedPanel | SteelFrame | SolidConcrete]

hamza_z's avatar hamza_z  ( 2023-03-17 08:29:41 -0500 )edit

The errors you encounter can be specific to what's in your HPXML building description and what version of OS-HPXML you are using. The two instances I mentioned were examples of what that person was hitting. You'll want to consult with the Changelog to see what breaking changes occurred between the version of your HPXML file and the version of OS-HPXML that you are trying to run. You can also find documentation specific to each OS-HPXML release.

shorowit's avatar shorowit  ( 2023-03-17 10:38:36 -0500 )edit