When I try to import table data that contains columns with length > 128 characters I get the following error:
field_table cannot be longer than 128 characters but is currently 200 characters long.

How can I address this problem? I think there isn't database problem because data is stored in TEXT field.

Thanks

Comments

zazichi’s picture

I found a workaround.

modify the code

$element['tablefield']['cell_' . $i . '_' . $ii] = array(
        '#type' => 'textfield',
        '#size' => 10,
        '#attributes' => array('id' => 'tablefield-' . str_replace('_', '-', $element['#field_name']) .'-'. $delta . '-cell-' . $i . '-' . $ii),
        '#default_value' => (empty($field_value)) ? $default_value[$i][$ii] : $field_value,
        '#prefix' => '<td>',
        '#suffix' => '</td>',
      );        

as follow

 $element['tablefield']['cell_' . $i . '_' . $ii] = array(
        '#type' => 'textfield',

       '#maxlength' => NULL,

        '#size' => 10,
        '#attributes' => array('id' => 'tablefield-' . str_replace('_', '-', $element['#field_name']) .'-'. $delta . '-cell-' . $i . '-' . $ii),
        '#default_value' => (empty($field_value)) ? $default_value[$i][$ii] : $field_value,
        '#prefix' => '<td>',
        '#suffix' => '</td>',
      );        

Thakns

stijnd’s picture

I posted a patch for this one here http://drupal.org/node/1031282

jenlampton’s picture

Issue summary: View changes
Status: Active » Closed (duplicate)