U4-7602 - 7.4 Data Types with xpath queries specified caused Document Type edit/creation issues.

Created by John Churchley 22 Dec 2015, 15:49:33 Updated by Mikkel Holck Madsen 15 Jun 2017, 13:03:07

Tags: PR

Is duplicated by: U4-8098

Is duplicated by: U4-8900

Subtask of: U4-9609

What did you do? When browsing document types which have a property with a datatype which uses a xpath query eg. MNTP causes backend server error.

What actually happened? Error occurred see attached image

$current was used as xpath query.

1 Attachments


John Churchley 22 Dec 2015, 16:01:12

I found 2 of my datatypes got corrupted during the upgrade process. They were being used sparsely and once delete it resolved the issue

Stephen Price 11 Mar 2016, 00:41:24

I am also seeing this issue with Umbraco 7.4.1. My xpath query is $parent.

By having a little look in the dev tools, it appears that the property editor is trying to make a call to get the list of relevant nodes with the xpath query. Given that the nodeContextId is that of the document type, it then can't locate any relevant content with that id.

Please let me know if there is any further information required.

Ade Nichols 13 Jul 2016, 10:51:41

Seeing this in 7.4.3 too. My xpath query is:

$current/parent::doctype | $current

René Pjengaard 06 Sep 2016, 09:39:06

I also see this in 7.5.2. I use $current

Lee Kelleher 25 Mar 2017, 13:49:36

I've submitted a PR to workaround this: https://github.com/umbraco/Umbraco-CMS/pull/1832

Mikkel Holck Madsen 15 Jun 2017, 13:03:01

This is now merged and ready for the next patch release!

Thanks everyone for posting the issue, and the fix as well @leekelleher

Priority: Normal

Type: Bug

State: Fixed


Difficulty: Normal


Backwards Compatible: True

Fix Submitted: Pull request

Affected versions: 7.4.0, 7.4.3, 7.5.2, 7.6.3

Due in version: 7.6.4


Story Points:

Cycle: 2