Unable add child on custom Doctype Treeview

Hi i have been trying to create a new doctype with a tree view. But when i try to add the child it was always showing me this error.

I have followed all necessary steps in creating the tree view.

This is the error i encounter. Any help is much appreciated.