It must contain and tags, otherwise it throws this error. Also check to make sure all your rows including header row have the same number of columns. title-1 title-2 data-1 data-2 data-3 Source: stackoverflow.com