The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"name to text 9 character problem"
barisyildirimmm
Member Posts: 3 Contributor I
hi,
i want to add data to postgresql from excel...but i cant do that because one column adding as 'name' format...but i send it 'text' format...and for example my name is Barış YILDIRIM , it says that ;
Exception: com.rapidminer.operator.UserError
Message: Database error occurred: Attribute isim contains values with length >9 which is the maximum length for columns of SQL type name
Stack trace:
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:82)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:60)
com.rapidminer.operator.io.AbstractWriter.doWork(AbstractWriter.java:67)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:368)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.Process.run(Process.java:854)
com.rapidminer.Process.run(Process.java:761)
com.rapidminer.Process.run(Process.java:756)
com.rapidminer.Process.run(Process.java:746)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
Cause
Exception: java.sql.SQLException
Message: Attribute isim contains values with length >9 which is the maximum length for columns of SQL type name
Stack trace:
com.rapidminer.tools.jdbc.StatementCreator.makeColumnCreator(StatementCreator.java:253)
com.rapidminer.tools.jdbc.StatementCreator.makeTableCreator(StatementCreator.java:183)
com.rapidminer.tools.jdbc.DatabaseHandler.createTable(DatabaseHandler.java:476)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:79)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:60)
com.rapidminer.operator.io.AbstractWriter.doWork(AbstractWriter.java:67)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:368)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.Process.run(Process.java:854)
com.rapidminer.Process.run(Process.java:761)
com.rapidminer.Process.run(Process.java:756)
com.rapidminer.Process.run(Process.java:746)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
i want to add data to postgresql from excel...but i cant do that because one column adding as 'name' format...but i send it 'text' format...and for example my name is Barış YILDIRIM , it says that ;
Exception: com.rapidminer.operator.UserError
Message: Database error occurred: Attribute isim contains values with length >9 which is the maximum length for columns of SQL type name
Stack trace:
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:82)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:60)
com.rapidminer.operator.io.AbstractWriter.doWork(AbstractWriter.java:67)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:368)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.Process.run(Process.java:854)
com.rapidminer.Process.run(Process.java:761)
com.rapidminer.Process.run(Process.java:756)
com.rapidminer.Process.run(Process.java:746)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
Cause
Exception: java.sql.SQLException
Message: Attribute isim contains values with length >9 which is the maximum length for columns of SQL type name
Stack trace:
com.rapidminer.tools.jdbc.StatementCreator.makeColumnCreator(StatementCreator.java:253)
com.rapidminer.tools.jdbc.StatementCreator.makeTableCreator(StatementCreator.java:183)
com.rapidminer.tools.jdbc.DatabaseHandler.createTable(DatabaseHandler.java:476)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:79)
com.rapidminer.operator.io.DatabaseExampleSetWriter.write(DatabaseExampleSetWriter.java:60)
com.rapidminer.operator.io.AbstractWriter.doWork(AbstractWriter.java:67)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.operator.execution.SimpleUnitExecutor.execute(SimpleUnitExecutor.java:51)
com.rapidminer.operator.ExecutionUnit.execute(ExecutionUnit.java:709)
com.rapidminer.operator.OperatorChain.doWork(OperatorChain.java:368)
com.rapidminer.operator.Operator.execute(Operator.java:764)
com.rapidminer.Process.run(Process.java:854)
com.rapidminer.Process.run(Process.java:761)
com.rapidminer.Process.run(Process.java:756)
com.rapidminer.Process.run(Process.java:746)
com.rapidminer.gui.ProcessThread.run(ProcessThread.java:65)
Tagged:
0
Answers
http://rapid-i.com/rapidforum/index.php/topic,3826.0.html