The error code is issued by bitcoind refusing the rawtransaction from electrum-server. It's usually because the coins are already spent in some transactions already or are unconfirmed inputs.
It may also be because of the size of the transaction if you have lots of inputs and the fee. Try increasing the fee a little to say 0.0005 rather than 0.0001 and see if that makes a difference.