Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question
2

Error Opening OSM file [closed]

asked 2016-05-02 09:29:24 -0600

FSilenzi's avatar

updated 2016-05-05 05:02:24 -0600

I have edidted an .osm with notepad, in order to quickly change the lines:

  No,                                    !- Account for Dedicated Outdoor Air System

  NeutralSupplyAir,                !- Dedicated Outdoor Air System Control Strategy

into

Yes,                                    !- Account for Dedicated Outdoor Air System 

 ColdSupplyAir,                     !- Dedicated Outdoor Air System Control Strategy

for all the thermal zones. The problem is that, when I try to open the file with OS, it fails and prompt this error message:

**Model with Version 1.11.0 IDD is not valid to draft strictness level.

The collection is INVALID at strictness level 'Draft', because of the errors:
Object     level data error of type NoIdd             .
Error pertains to an object of type 'Catchall', named ''.
Additional information about the error type: input data definition is missing or empty.
Field      level data error of type DataType          .
Error is in an object of type 'OS:ConvergenceLimits', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:HeatBalanceAlgorithm', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:RunPeriod', named '{17c33f47-c9b9-463a-84bc-12596f349148}', in field 2.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:ShadowCalculation', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:SimulationControl', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:SurfaceConvectionAlgorithm:Inside', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:SurfaceConvectionAlgorithm:Outside', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:Timestep', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:YearDescription', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:ZoneAirContaminantBalance', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an object of type 'OS:ZoneAirHeatBalanceAlgorithm', named '', in field 1.
Additional information about the error type: field-level data is of an incorrect type.
Field      level data error of type DataType          .
Error is in an ...
(more)
edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by FSilenzi
close date 2016-05-06 02:58:06.619266

Comments

1

can you post a link to the .osm file somewhere? My initial guess is that you changed a , into a ; on accident, or missed a !- for comments.

You could try changing it back in text editor and seeing if you still get the error. If you do, you probably messed up a , or ; or !- somewhere.

mdahlhausen's avatar mdahlhausen  ( 2016-05-02 15:00:07 -0600 )edit

what @mdahlhausen said. also have you done a file diff between the old and new files?

MatthewSteen's avatar MatthewSteen  ( 2016-05-02 15:11:39 -0600 )edit

Unfortunately I have not a diff file between the two. As soon as I get back to office I will post the osm file, in the mean while is there any script and or trick to check if all the punctuation and comments are correctly written? Because I have made a quick check by hand but I was not able to identify if anything went wrong.

FSilenzi's avatar FSilenzi  ( 2016-05-02 15:39:43 -0600 )edit

Here is the link to the .osm file. I feel so dumb not to have updated the backup copy. If you can fix this issue you will save me like 2 days of work!

FSilenzi's avatar FSilenzi  ( 2016-05-05 01:56:39 -0600 )edit

Since I cannot find what is wrong with the osm file I have decided to carry on a little test. I have taken a working idf file, exported into OS and created a .osm working file. At this point I have copied the .osm just created and then, using notepad, I edited one of the two .osm grabbing 10 lines of the first .osm and pasting them into the second, without making any change. Result: the modified .osm stopped and the same error as before popped up. Update: also simply adding and removing a space from a working file will result into an opening failure of the file itself.

FSilenzi's avatar FSilenzi  ( 2016-05-05 08:00:43 -0600 )edit

1 Answer

Sort by » oldest newest most voted
6

answered 2016-05-05 18:40:18 -0600

Here's a link to the fixed file.

Problem: the file is encoded as UTF-8-BOM instead of plain UTF-8.

Solution:

  1. Open the file in a text editor (I use Notepad++)
  2. Encoding>UTF-8

I figured this out when I noticed that there were strange characters  in the error message, and when I looked for them in the file I didn't see them, so with a little googling I found the UTF-8 thing. Disclaimer: I have no idea what the difference between those two options is :)

edit flag offensive delete link more

Comments

1

Give this man a medal! ^^ Thanks a lot the file works like a charm, I believe it would be better for me not to edit any other .osm file in the future untill I figure out what the heck is wrong with the notepad encoding!!!! You saved my day!!!

FSilenzi's avatar FSilenzi  ( 2016-05-06 02:57:50 -0600 )edit

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 2016-05-02 09:29:24 -0600

Seen: 481 times

Last updated: May 05 '16