Can anyone please check this error?
Discussion posts and replies are publicly visible
You may need to check your tomcat-stdOut.log file here for additional details.
I'm new bee to Appian,Not understanding this logs,
... 66 more Caused by: java.sql.SQLException: Field 'loanid' doesn't have a default value at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readErrorPacket(AbstractQueryProtocol.java:1695) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.readPacket(AbstractQueryProtocol.java:1557) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.getResult(AbstractQueryProtocol.java:1520) at org.mariadb.jdbc.internal.protocol.AbstractQueryProtocol.executeQuery(AbstractQueryProtocol.java:318) ... 67 more
Yes the Caused By section is what we are looking for. In this case, it is indicating the "loanid" field does not have a value, but it is expecting one. If this is an ID field, it may not be set to auto-generate the value. Otherwise, if this is a normal not-null field, you will need to provide a value when writing to the DS or adjust the CDT/DB to allow nulls.
If you see here, I'm passing loanId value also
From here we would need to review the CDT and then the Write to Datastore service configuration, if you could share those it would be helpful.
Yeah Chris,
I have mistaken that I given auto_increment in cdt for loanId.Thank you so much Chris.