TypeError: aData is undefined

TypeError: aData is undefined

ss_dougss_doug Posts: 1Questions: 1Answers: 0

Hi,

I am getting the following error when using DataTables:
In Firefox:
TypeError: aData is undefined
for ( i=0 ; i<aData.length ; i++ ) {

(In IE and Chrome, the error refers to the Length property of the aData object being unreadable because the object itself is null.)

This is an aspnet webpage, pulling data from a WCF service (which is returning json formatted data).
DataTables debug info: http://debug.datatables.net/owaxij

The data returned from the wcf service looks ok. Here is a sample:
{"d":"[{\"FirstName\":\"rajtest2\",\"LastName\":\"rajtest2\",\"EMailAddress1\":\"rajtest2@gmail.com\"
},{\"FirstName\":\"rajtest3\",\"LastName\":\"rajtest3\",\"EMailAddress1\":\"rajtest3@gmail.com\"}, etc....

There are three columns in the json (see above), three colums in the thead, and three columns in the columns definition in the initialization code.

Can anyone tell me what I am missing here?

thanks,
Doug

This discussion has been closed.