Newbies erik13 Posted December 1, 2010 Newbies Posted December 1, 2010 Hello everyone, I'm working on a java project which have to get informations from text files and have to save them in a Filemaker database. For this, I use Batch in a Statement. There is no problem at the beginning... I create a statement from the connection then i create batch but when I try to execute the batch, the Exception "com.filemaker.jdbc.FMSQLException: [FileMaker][FileMaker JDBC] Batch entry stopped." is thrown. So who can help me please? This is a part of the code: try{ if(current_statement==null) this.current_statement = connection.createStatement(); con.setAutoCommit(false); this.current_statement.addBatch("INSERT INTO Lot (contenu__t) VALUES('140a')"); this.current_statement.executeBatch(); this.connection.commit(); } catch(Exception e){ e.printStackTrace(); } Thanks, Eric
Newbies erik13 Posted December 3, 2010 Author Newbies Posted December 3, 2010 I found what's happen... When you have a SQL Error, the batch didn't accept your query :
Recommended Posts
This topic is 5365 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now