Failed to load dmn model

This is an issue about interoperability. It helps a lot to convince people of dmn-js if it is able to load DMN models from other vendors. It appears some items of the model below are in a location where dmn-js does not expect them, some may not actually be supported, but I would assume they are perfectly valid, coming from a competing vendor like kie/Trisotech. So I suspect dmn-js makes too many assumptions about the xml structure.

This model fails to load with numerous errors:

unparsable content <itemComponent> detected
	line: 9
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 12
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 15
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 18
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 21
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 24
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 27
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 36
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 39
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 42
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <itemComponent> detected
	line: 45
	column: 2
	nested error: unknown type <dmn:ItemComponent>

unparsable content <context> detected
	line: 75
	column: 2
	nested error: unknown type <dmn:Context>

unparsable content <invocation> detected
	line: 107
	column: 5
	nested error: unknown type <dmn:Invocation>

unparsable content <decisionTable> detected
	line: 136
	column: 6
	nested error: unrecognized element <dmn:decisionTable>

unparsable content <context> detected
	line: 246
	column: 3
	nested error: unknown type <dmn:Context>

unparsable content <literalExpression> detected
	line: 326
	column: 12
	nested error: unrecognized element <dmn:literalExpression>
1 Like

First of all their naming is inconsistent, sometimes types start with an uppercase letter, sometimes a lowercase letter. Secondly, dmn-js doesn’t support Context, Invocation, and ItemComponent as the error suggest. As far as I know these are not going to be added any time soon, sorry.

I’ve created an issue for this missing feature:

1 Like

Now supported in dmn-js@8.0.0 / dmn-moddle@8+.

1 Like

Hello,

I allow myself to write you here because I had the same problem few days ago : I can’t open my BPMN model (please find attached the error message). I tried to fix the mistakes suggested but when I fix one, then another appears. Can you help me please?
Also, the file format is .html, is it normal? (I could’nt join it to the message)

Thank you

Capture

The bpmn diagram you’re trying to import is an HTML file? No, this is not normal. How does the file look like?

Also: please, try to not necrobump old topics. Instead link to this thread from new topic

(Ok sorry, it’s the first time I ask something on the forum.)

Actually, I understood that the the way I saved it wasn’t good. When I saved the file, the format was .html and I had to do it by another way so it can change into .bpmn.

When I open the file, then the BPMN site opens, or if I do a right click on the file and open it with a word processor then I just have lines of code.

Thank you.

What did you do to save the diagram? Did you use the save button on the bottom left corner

Bildschirmfoto 2020-06-15 um 15.12.41

Now I do it like that, but before that, I used to do “ctrl + s”. That’s why it didn’t work.

1 Like

That’s true. Ctrl+S triggers the native browser save operation to save the HTML demo page.