gantt.parse() will not render spefic tasks

I have the following arrays that renders tasks:

var Tasks = {
“data”: [
{
“ID”: “1”,
“text”: “Title 1”,
“StartDate”: “2017-12-05”,
“Parent”: “0”,
“csbfdo”: “attribute 1”,
“dollarThreshold”: “$100 Mill - $250 Mill”,
“office”: “Some Office”,
“KO”: “John Doe”,
“Contracting_x0020_Specialist”: “John, Doe”,
“Interest_x0020_Ite”: “No”,
“duration”: 30,
“Cabinet”: “1234”,
“MileStone”: “Overall Procurement”,
“progress”: 0.2,
“Actual_x0020_End_x0020_Date”: “”,
“LinkTitle”: “Title 2”,
“EndDate”: “2018-01-04”,
“_ModerationStatus”: “0”,
Level": “1”,
“UniqueId”: “2;#{675FA081-9596-4DFF-B83B-EA79C2AA7582}”,
“FSObjType”: “2;#0”,
“Created_x0020_Date”: “2;#2018-02-06 16:39:20”,
“FileLeafRef”: "2;#2
.000”,
“PermMask”: “0x7fffffffffffffff”,
“Modified”: “2018-02-07 10:48:41”,
“FileRef”: “url”,
“MetaInfo”: “2;#”,
“owshiddenversion”: “2”,
“Created”: “2018-02-06 16:39:20”,
“end_date”: “2018-01-04T06:00:00.000Z”,
“start_date”: “2017-12-05T06:00:00.000Z”,
“parent”: 0,
“id”: 2,
“DaysRemaining”: -36,
“color”: “#ec7063”,
“progressColor”: “#c65e53”,
“textColor”: “#000000”,
“$no_start”: false,
“$no_end”: false,
“$rendered_type”: “task”,
“$source”: [],
“$target”: [],
“$open”: false,
“$level”: 0,
“$rendered_parent”: 0,
“$index”: 1
},
{
“ID”: “2”,
“text”: “Title 2”,
“StartDate”: “2017-12-05”,
“Parent”: “0”,
“csbfdo”: “attribute 1”,
“dollarThreshold”: “$100 Mill - $250 Mill”,
“office”: “Some Office”,
“KO”: “John Doe”,
“Contracting_x0020_Specialist”: “John, Doe2”,
“Interest_x0020_Ite”: “No”,
“duration”: 30,
“Cabinet”: “1234”,
“MileStone”: “Overall Procurement”,
“progress”: 0.2,
“Actual_x0020_End_x0020_Date”: “”,
“LinkTitle”: “Title 2”,
“EndDate”: “2018-01-04”,
“_ModerationStatus”: “0”,
Level": “1”,
“UniqueId”: “2;#{675FA081-9596-4DFF-B83B-EA79C2AA7582}”,
“FSObjType”: “2;#0”,
“Created_x0020_Date”: “2;#2018-02-06 16:39:20”,
“FileLeafRef”: "2;#2
.000”,
“PermMask”: “0x7fffffffffffffff”,
“Modified”: “2018-02-07 10:48:41”,
“FileRef”: “url”,
“MetaInfo”: “2;#”,
“owshiddenversion”: “2”,
“Created”: “2018-02-06 16:39:20”,
“end_date”: “2018-01-04T06:00:00.000Z”,
“start_date”: “2017-12-05T06:00:00.000Z”,
“parent”: 0,
“id”: 2,
“DaysRemaining”: 30,
“color”: “#ec7063”,
“progressColor”: “#c65e53”,
“textColor”: “#000000”,
“$no_start”: false,
“$no_end”: false,
“$rendered_type”: “task”,
“$source”: [],
“$target”: [],
“$open”: false,
“$level”: 0,
“$rendered_parent”: 0,
“$index”: 1
}
],
“links”: []
}

///////////////////////////END//////////////////////////////////////////

This other array that does not render the tasks:

var Tasks = {
“data”: [
{
“ID”: “461”,
“text”: “Tile 3”,
“StartDate”: “2017-12-04”,
“Parent”: “1”,
“csbfdo”: “attribute 3”,
“dollarThreshold”: “$100 Mill - $250 Mill”,
“office”: “some office”,
“KO”: “somee officer”,
“Contracting_x0020_Specialist”: “some name”,
“Command_x0020_Interest_x0020_Ite”: “No”,
“duration”: 60,
“Cabinet”: “something”,
“MileStone”: “AWARD”,
“progress”: 0.5,
“Actual_x0020_End_x0020_Date”: “2018-02-14 00:00:00”,
“LinkTitle”: “Title 3”,
“EndDate”: “2018-02-02”,
“_ModerationStatus”: “0”,
Level": “1”,
“UniqueId”: “461;#{F46C9A68-E940-49E2-BBC9-E57C894931FB}”,
“FSObjType”: “461;#0”,
“Created_x0020_Date”: “461;#2018-02-06 16:39:46”,
“FileLeafRef”: "461;#461
.000”,
“PermMask”: “0x7fffffffffffffff”,
“Modified”: “2018-02-06 17:42:14”,
“FileRef”: “url”,
“MetaInfo”: “461;#”,
“owshiddenversion”: “6”,
“Created”: “2018-02-06 16:39:46”,
“end_date”: “2018-02-02T06:00:00.000Z”,
“start_date”: “2017-12-04T06:00:00.000Z”,
“parent”: 1,
“id”: 461,
“DaysRemaining”: -7,
“color”: “#ec7063”,
“progressColor”: “#c65e53”,
“textColor”: “#000000”,
“$no_start”: false,
“$no_end”: false,
“$rendered_type”: “task”,
“$source”: [],
“$target”: [],
“$open”: false,
“$level”: 0,
“$rendered_parent”: 1
},
{
“ID”: “461”,
“text”: “Tile 4”,
“StartDate”: “2017-12-04”,
“Parent”: “1”,
“csbfdo”: “attribute 4”,
“dollarThreshold”: “$100 Mill - $250 Mill”,
“office”: “some office”,
“KO”: “somee officer”,
“Contracting_x0020_Specialist”: “some name2”,
“Command_x0020_Interest_x0020_Ite”: “No”,
“duration”: 60,
“Cabinet”: “something”,
“MileStone”: “AWARD”,
“progress”: 0.5,
“Actual_x0020_End_x0020_Date”: “2018-02-14 00:00:00”,
“LinkTitle”: “Title 3”,
“EndDate”: “2018-02-02”,
“_ModerationStatus”: “0”,
Level": “1”,
“UniqueId”: “461;#{F46C9A68-E940-49E2-BBC9-E57C894931FB}”,
“FSObjType”: “461;#0”,
“Created_x0020_Date”: “461;#2018-02-06 16:39:46”,
“FileLeafRef”: "461;#461
.000”,
“PermMask”: “0x7fffffffffffffff”,
“Modified”: “2018-02-06 17:42:14”,
“FileRef”: “url”,
“MetaInfo”: “461;#”,
“owshiddenversion”: “6”,
“Created”: “2018-02-06 16:39:46”,
“end_date”: “2018-02-02T06:00:00.000Z”,
“start_date”: “2017-12-04T06:00:00.000Z”,
“parent”: 1,
“id”: 461,
“DaysRemaining”: -7,
“color”: “#ec7063”,
“progressColor”: “#c65e53”,
“textColor”: “#000000”,
“$no_start”: false,
“$no_end”: false,
“$rendered_type”: “task”,
“$source”: [],
“$target”: [],
“$open”: false,
“$level”: 0,
“$rendered_parent”: 1
},
],
“links”: []
}

From what I can tell they are both identical in structure. I am not sure why one works and other doesn’t. The way I am loading it is as follows:

	gantt.config.grid_width = 500;
	gantt.config.order_branch = true;
	gantt.config.order_branch_free = true;
	gantt.config.scale_unit = "month";
	gantt.config.date_scale = "%M, %Y";
	gantt.config.drag_move = false; //disables the possibility to move tasks by dnd
	gantt.config.drag_links = false; //disables the possibility to create links by dnd
	gantt.config.drag_progress = false; //disables the possibility to change the task //progress by dragging the progress knob
	gantt.config.drag_resize = false; //disables the possibility to resize tasks by dnd
	gantt.config.details_on_dblclick = false;
	gantt.config.smart_scales = true;
	gantt.config.xml_date="%Y-%m-%d %H:%i";
	gantt.config.order_branch = true;
	gantt.config.order_branch_free = true;
	gantt.config.details_on_dblclick = false;
	gantt.config.xml_date="%Y-%m-%d %H:%i";

	gantt.config.columns = [
		{name:"text",       label:"Procurement/Milestone", align: "center", tree:true },
		{name:"start_date", label:"Start time", align: "center" },
		{name:"duration",   label:"Duration",   align: "center" },
		{name:"KO",  label:"Contract Officer", align: "center"}
	];


		gantt.templates.task_text = function(start,end,task){

		    if (task.Parent == "0") {
		                return task.text;
		          }
		    else {
		            return task.text + " - " + task.MileStone;
		           }
			};

var date_to_str = gantt.date.date_to_str(gantt.config.task_date);
var markerId = gantt.addMarker({
start_date: new Date(), //a Date object that sets the marker’s date
css: “today”, //a CSS class applied to the marker
text: “Today”, //the marker title
title:date_to_str( new Date()) // the marker’s tooltip
});

            gantt.init("gantt_here");
            gantt.parse(Tasks);

Whats hard about debugging this, is that I don’t get any console errors. Ive tried Firefox and chrome as well and same results. The gantt graph shows up but its blank without any tasks. When I parse the first array the tasks show up just fine. If I try the second array, the tasks don’t show up. The problem is something in the second array which I can’t figure out.

Hello,

Events in the second data set have
“parent”: 1,

But there is no event with this id. That is why they can’t be rendered on page.
If “parent”: 0 ->> it means event doesn’t have parent.

Please check the snippet docs.dhtmlx.com/gantt/snippet/ea1e7031
Task #1 hasn’t parent (parent:0) and task 3 has parent with id 111. There is no task with ID:111 in data -> task3 isn’t rendered.

Thanks @Polina! You are totally awesome! =D.

As a side note, it would be nice if the framework gives you a console error when this happens.