The uploaded files must have names from which the expected content can be derived, e.a. they need to have correct file extensions. The casing of file extensions does not matter, in this table they are all uppercase.

The currently supported file extensions are:

Extension File type Description
IFC Industry Foundation Classes, can be IFC2X3, IFC4 or IFC4X3 The actual schema that is used is stored in the IFC header within the file, so the extension is always .IFC
IFCZIP Same as above, but zipped. Can and must only contain one file, and that needs to be a regular IFC file. For more information: https://standards.buildingsmart.org/documents/Implementation/IFC_Implementation_Agreements/CV-2x3-154.html The content will be extracted directly into a MODEL node. In other words no additional FOLDER node will be created.
ZIP Can contain a folder hyrarchy and can contain both IFCZIP and IFC file. The content fill be extracted in BIM.works using FOLDER nodes. Only the actual models are created as MODEL nodes.
E57 PointCloud format. Currently only a very basic X, Y, Z + color is supported.

Error handling

BIM.works validates the IFC models and tries to help the user to solve common issues by returning useful error messages as much as possible. Error messages in BIM.works are organized into groups/namespaces. When uploading a model you can expect error messages coming from different namespaces.

StepParserErrorCode

The StepParserErrorCode messages indicate errors while parsing the IFC file. They generally include a line number and position (on the line) to help with identifying the issue. Most implementations should not show these errors to the end user, but log the errors in a log file. The rows with a yellow background indicate the most common errors.

Value Code Description
UNEXPECTED_CHARACTER 0 An unexpected character was encountered
NO_SEMICOLON_FOUND_IN_RECORD 2 A record did not end with a semicolon
NO_LEFT_PARENTHESIS_FOUND_IN_RECORD 3 Left parenthesis are missing
NO_RIGHT_PARENTHESIS_FOUND_IN_RECORD 4 Right parenthesis are missing
STRING_ENCODING_X2_NOT_CLOSED_WITH_X0 6 X2 string encoding was nog closed with an X0
STRING_ENCODING_NUMBER_OF_HEX_CHARS_IN_X2_NOT_DIVISIBLE_BY_4 7 The amount of hex chars is not divisible by 4, which is a requirement
STRING_ENCODING_CHARACTER_DECODING_EXCEPTION 8 A general string decoding error happened, more details in the user message.
STRING_ENCODING_X4_NOT_CLOSED_WITH_X0 9 X4 string encoding was nog closed with an X0
STRING_ENCODING_NUMBER_OF_HEX_CHARS_IN_X4_NOT_DIVISIBLE_BY_8 10 The amount of hex chars is not divisible by 8, which is a requirement
STRING_ENCODING_UTF32_NOT_SUPPORTED_ON_SYSTEM 11 UTF32 should always be supported, so this error should never be thrown, if it is, please let us know.
EXPECTED_STRING 12 A String value was expected, but something else was found
INVALID_DATETIME_LITERAL 13 The datetime literal is invalid. BIM.works has been made slightly more lenient than the spec here, so it does not always throw this exception on invalid datetime.
INTERNAL_ERROR 16 An internal error happened in the IFC parser. Please always report this error as it’s most certainly an implementation error.
EXPECTED_LIST 17 A list was expected but something else was found, details in the user message
INSUFFICIENT_BUFFER_SIZE 18 Insufficient buffer size, this is an internal error and should never happen.
INVALID_REFERENCE 20 This is a relatively common error. It means that a reference was made to an entity that does not exist in the IFC model. BIM.works is relatively strict on this, some other implementation will try to continue reading the IFC model.
INVALID_DOUBLE_LITERAL 21 An invalid double literal was encountered
UNKNOWN_ENTITY_TYPE 23 This is also a relatively common error. This will happen whenever an IFC entity name was used that does not exist in any of the supported schemas.
CANNOT_READ_AHEAD 24 This is an internal error and should be reported
INVALID_LONG_LITERAL 25 An invalid long literal was encountered
INVALID_EXPRESS_ID 26 An invalid express id was encountered. Examples of invalid express id: Zero or a negative value
EQUALS_EXPECTED 27 An equals sign was expected but something else found
UNKNOWN_SCHEMA 28 An unknown/invalid IFC schema was provided
EMPTY_ENTITY 29 An empty entity was provided, which is not valid
UNEXPECTED_ZIP_FILE 30 It seems as if zip content was provided where IFC content was expected
NO_IFC 31 Something other than IFC was found

BimWorksErrorCode

These are more generic BIM.works error codes, also used for other API calls.

Value Code Description
PARENT_NODE_NOT_FOUND 14 The subject Node is referring to a parent node that does not exist (anymore)
NODE_ALREADY_EXISTS 19 A Node with the given name already exists at this path
DIFFERENT_FILENAME 25 A model is being uploaded with a filename to a Node that has a different name. This error is only thrown when the user has not specified NEW_VERSION nor NEW_MODEL as an option to the upload.
NO_HASH_IN_REQUEST 26 A hash of the model was expected to be in the request but it was not
MODEL_IDENTIFIER_VALIDATION_EXCEPTION 31 An error occured during model identifier validation, usually this means that non-existing or invalid version UUID were included.
INVITE_EXPIRED 40 The invite has expired
INVITE_ALREADY_ACCEPTED 41 Invite was already accepted
NODE_NOT_FOUND 93 The requested Node was not found, can be because of deletion, authorization changes, incorrect UUIDs
NO_DEMO_NODE 42 The user has no “Demo” Node
EXPECTED_EXACTLY_ONE_MODEL 43 This part of the application expected there to be exactly one model, but the user provided multiple
MODEL_NOT_FOUND 44 A particular model was not found. This is mostly an internal message and usually indicates something is wrong on the server