🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Maximum length for columns of SQL type varchar

User: "fbergstrand"
New Altair Community Member
Updated by Jocelyn

Hi, 

I've been running a couple of processes in Rapidminer in which I run my query to write database in MySQL. 

I've been uploading quite a few datasets with no issues but experienced an error message I've never seen before. 

 

"attribute page ref contains values with length> 255 which is the maximum length for columns of SQL type Varchar"

 

I'm using the write database operator and other files and processes are fine to upload. When I look at mySql table the  attributes Page_ref is of datatype varchar(900). I've tried to both tick and untick the set dafault varchar lenght in the write database operator but it does not seem to make a difference. 

 

Any ideas what is causing this error? 

 

 

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "Edin_Klapic"
    New Altair Community Member
    Accepted Answer

    Hi,

     

    try using the Operator "Nominal to Text" and convert the relevant attributes to the value type Text. Then you do not run into issues if there will be entries longer than 900 characters in the future.

     

    Best,

    Edin