Okay
  Public Ticket #3114820
Text /mulit-line field "Supplied value ... too long"
Closed

Comments

  • Gary Loewenthal started the conversation

    Background: I created a table a couple of weeks ago, for a new, under-construction website. It is a wide table with lots of fields. Based on another public support answer, I added some custom css to control the widths of some fields, and to preserve wordwrap:

    table.wpDataTable td {    white-space: normal !important;
    }
    .wpDataTableID-1 th.column-id {   
       width:80px !important;
    }
    .wpDataTableID-1 th.column-title {   
       width:345px !important;
    }
    .wpDataTableID-1 th.column-studyconductedby {   
       width:365px !important;
    }.

    .wpDataTableID-1 th.column-mainfindings {   

       width:420px !important;
    }

    ...

    In the Study Conducted By field (string / multi line edit - same settings as the Main Findings field, which seems to have no problem), I tried to add text. The text, including newlines, is near 256 characters (which maybe is significant?). If the text is short enough, no problem. If I add a few more characters, of any sort, I am unable to updat the record and get a message: 

    "There was an error trying to update the row. Error: WordPress database error: Processing the value for the following field failed: studyconductedby. The supplied value may be too long or contains invalid data."

    I have similar fields (e.g., Main Findings), which have longer values- no problem. I plan to have thousands of records in this table. I hope there's an easy solution - or that it's a user error. Thank you.

  •  1,568
    Uroš replied

    Hello Gary,

    Thank you for reaching out to us.

    Please provide me a temporary WP-admin (administrator) user for your site where this happens, so we could log in and take a look ‘from the inside’ as that’s the most efficient way to see and resolve the issue. 

    We do not interfere with any data or anything else except for the plugin (in case that’s a production version of the site), and of course, we do not provide login data to third parties. 

    You can write credentials here just check PRIVATE Reply so nobody can see them except us.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables

  • Gary Loewenthal replied

    Thank you; will do. BTW, I had written a reply; at some point along the way, it didn't get saved or sent or something. Anyway, here's the gist:

    I have a hunch. This happened when I created a new field, "Conducted By (2)". I noticed that you can specify one-line string or multi-line string as the data type when creating the column. But I could find no distinction in settings - once the column is created - for one-line vs multi-line string. I created the original field, "Conducted By" - the one with the problem - as a single-line string. I created the replacement field, "Conducted By (2)", as a multi-line string. With the replacement field, I can enter the data that was giving me problems on Conducted By, and it's fine. No problems.

    Could it be that the issue is caused by originally defining Conducted By as a one-line string? And, if so - and in any case - is there a way to change that once the field is created? (Changing edit to multi-line apparently makes no difference in this case.)

    I realize my hunch could be totally off.

    Thanks,

    Gary

  • Gary Loewenthal replied

    FYI, I just had this happen with another field. It was defined (I'm pretty sure, retrospectively), as a single-line string, and right around the 256-character mark, it will not let me add any more text. If there was a way to change this, basically converting the field to a multi-line string, - if this is the issue - that would be great.

  •  1,568
    Uroš replied

    Hello Gary,

    Firstly, I would like to sincerely apologize for the delayed response as we have been experiencing an unusually high number of tickets. I am sorry that it has taken longer than usual to respond to your concern and your patience is highly appreciated.

    To further clarify the issue, could you please provide us with the screen recording of this?

    Looking forward to your reply.

    Kind Regards, 

    Uros Jovanovic
    [email protected]

    Rate my support

    Try our FREE mapping plugin! MapSVG - easy Google maps, interactive SVG maps, and floor plans, choropleth maps and much more - https://wordpress.org/plugins/mapsvg-lite-interactive-vector-maps/

    wpDataTables: FAQ | Facebook | Twitter | InstagramFront-end and back-end demo | Docs

    Amelia: FAQ | Facebook | Twitter | InstagramAmelia demo sites | Docs | Discord Community

    You can try wpDataTables add-ons before purchasing on these sandbox sites:

    Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables