Jump to content
Server Maintenance This Week. ×

FMJDBC & batch


This topic is 4902 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies

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

Link to comment
Share on other sites

This topic is 4902 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.