data parser ADD parse yang-date in data tree
diff --git a/src/validation.c b/src/validation.c
index 807865e..791a122 100644
--- a/src/validation.c
+++ b/src/validation.c
@@ -458,7 +458,7 @@
 int
 lyv_data_content(struct lyd_node *node, int options, struct unres_data *unres)
 {
-    const struct lys_node *schema, *siter;
+    const struct lys_node *schema, *siter, *parent;
     struct lyd_node *diter, *start = NULL;
     struct lys_ident *ident;
     struct lys_tpdf *tpdf;
@@ -493,8 +493,9 @@
                 start = lyd_first_sibling(node);
                 for (diter = start; diter; diter = diter->next) {
                     if (diter->schema == schema && diter != node) {
+                        parent = lys_parent(schema);
                         LOGVAL(ctx, LYE_TOOMANY, LY_VLOG_LYD, node, schema->name,
-                            lys_parent(schema) ? lys_parent(schema)->name : "data tree");
+                               parent ? (parent->nodetype == LYS_EXT) ? ((struct lys_ext_instance *)parent)->arg_value : parent->name : "data tree");
                         return 1;
                     }
                 }