TypeError: data is undefined

TypeError: data is undefined

kmboninkmbonin Posts: 59Questions: 16Answers: 0

Hello,

New to datatables and I'm of course having an issue. I'm getting a "TypeError: data is undefined" error in jquery.datatables.js, and I cannot figure out why. Please see my HTML, JS and CSS in the fiddle link below, and below that is my JSON (couldn't figure out how to get the JSON in the fiddle).

The exact error:
TypeError: data is undefined
for ( var i=0, ien=data.length ; i<ien ; i++ ) {

Many thanks in advance.

Kristen

Fiddle: https://jsfiddle.net/yy90ru5L/

JSON:
{"draw":1,"recordsTotal":111,"recordsFiltered":111,"data":[["000086","","Kenny Rogers","R&D Logan NL Position Sensor","so"],["000101","","Rob Garant","End cap, bearing and plate assembly, bolster clamp cylinder G100","so"],["000103","","Corey Bonin","Warranty Part - no billing to customer. C-Innovation Cooler upgrade.","so"],["000104","","Rob Garant","Pin, Dolly, DIN CCTLF 2.500 in, 4340 Steel","so"],["000115","","Rob Garant","Piston, bolster clamp cylinder, 7.25in","so"],["000117","","Corey Bonin","Logan Louisiana-Miscellaneous Expenses (with job)","so"],["000119","","Rob Garant","Rod, Cylinder Bolster Clamp A21070","so"],["000121","","Rob Garant","Barrel, Bolster Clamp Cylinder A21070","so"],["000122","Logan Shop","Kenny Rogers","Rack, Storage, DAT Rods","so"],["010286-1-1","Diamond Offshore","Kenny Rogers","Cylinder, Tensioner, 560mm bore, 230mm rod","so"],["010286-1-2","Diamond Offshore","Kenny Rogers","Cylinder, Tensioner, 560mm bore, 230mm rod","so"],["010325-2-1","Seadrill Offshore AS - UK","Kenny Rogers","Cylinder, Tesnioner, Repair, DNV,ABS","so"],["010427-10-1","Nautilus Minerals Niugini LTD","Brandon Satterfield","TLA, Auxiliary cutter machine","so"],["010427-11-1","Nautilus Minerals Niugini LTD","Brandon Satterfield","TLA, Collecting machine","so"],["010427-9-1","Nautilus Minerals Niugini LTD","Brandon Satterfield","TLA, Stockpiling bulk cutter machine","so"],["010436-1-1","Derichebourg","Rob Garant","Pump, Piston, HPR210, Repair Refurbishment & Testing","so"]]}

Answers

This discussion has been closed.