# 'next\_val' in 'field list'

**URL:** <https://community.postman.com/t/next-val-in-field-list/36213>\
**Category:** Help Hub\
**Created:** [June 15, 2022, 2:53am UTC](https://community.postman.com/t/next-val-in-field-list/36213 "2022-06-15T02:53:19Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![cpanon](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cpanon](https://community.postman.com/u/cpanon)\
**Post date:** [June 15, 2022, 2:53am UTC](https://community.postman.com/t/next-val-in-field-list/36213/1 "2022-06-15T02:53:19Z")

</div>

Hi  
I am trying a very simple POST to a working spring data rest running ap. My url is “localhost:8080/poes/” and my JSON payload is as below. I am simply trying to create a new po with id=4 and ponumber40-4. When I send it as a post on the server I get the above error. Where is that coming from and how to I correct it?

The Po entity has only an id and a ponumber  
{  
“id”:“4”,  
“ponumber”:“40-4”  
}

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 15, 2022, 8:05am UTC](https://community.postman.com/t/next-val-in-field-list/36213/2 "2022-06-15T08:05:50Z")

</div>

Hi @cpanon  
What is the error you are getting?  
Can you add a screenshot/logs?

---

<div class="post-metadata">

**Author:** ![cpanon](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cpanon](https://community.postman.com/u/cpanon)\
**Post date:** [June 15, 2022, 11:01am UTC](https://community.postman.com/t/next-val-in-field-list/36213/3 "2022-06-15T11:01:47Z")

</div>

Hi  
It is coming from the db from a repository invocation to save. What/where is pm sending data from other than the body. That configuration, a simple running spring data rest app with endpoints accessible and a Po object with an id and ponum, should with a post create that object in the db, correct? More details below  
http 500  
on server  
java.sql.SQLSyntaxErrorException: (conn=351) Unknown column ‘next\_val’ in ‘field list’  
at org.mariadb.jdbc.export.ExceptionFactory.createException(ExceptionFactory.java:270) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.export.ExceptionFactory.create(ExceptionFactory.java:358) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.message.ClientMessage.readPacket(ClientMessage.java:133) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.client.impl.StandardClient.readPacket(StandardClient.java:815) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.client.impl.StandardClient.readResults(StandardClient.java:754) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.client.impl.StandardClient.readResponse(StandardClient.java:673) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.client.impl.StandardClient.execute(StandardClient.java:616) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:93) ~[mariadb-java-client-3.0.4.jar:na]  
at org.mariadb.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:276) ~[mariadb-java-client-3.0.4.jar:na]  
at com.zaxxer.hikari.pool.ProxyPreparedStatement.executeQuery(ProxyPreparedStatement.java:52) ~[HikariCP-4.0.3.jar:na]

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 15, 2022, 11:30am UTC](https://community.postman.com/t/next-val-in-field-list/36213/4 "2022-06-15T11:30:48Z")

</div>

That’s not a Postman error…

I’d guess this is realated to your SQL tables looking at that error message.

Maybe this will help;

> <https://stackoverflow.com/questions/38948289/java-sql-sqlsyntaxerrorexception-unknown-column-in-field-list>

---

<div class="post-metadata">

**Author:** ![cpanon](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cpanon](https://community.postman.com/u/cpanon)\
**Post date:** [June 15, 2022, 12:02pm UTC](https://community.postman.com/t/next-val-in-field-list/36213/5 "2022-06-15T12:02:38Z")

</div>

Hi  
I believe my issue is more minimalist that that. How/where can I know exactly what is being sent? Yes I know that is the role of the body, but is there anything else that could being sent by pm other than what is in the interface? Yes I know that is self-refuting, just madly groping here:)

---

<div class="post-metadata">

**Author:** ![w4dd325](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/w4dd325/32/12436_2.png) [@w4dd325](https://community.postman.com/u/w4dd325)\
**Post date:** [June 15, 2022, 12:12pm UTC](https://community.postman.com/t/next-val-in-field-list/36213/6 "2022-06-15T12:12:09Z")

</div>

> [@cpanon](#):
>
> How/where can I know exactly what is being sent?

Your best bet would be the console log I guess.

---

<div class="post-metadata">

**Author:** ![cpanon](https://avatars.discourse-cdn.com/v4/letter/c/ce73a5/32.png) [@cpanon](https://community.postman.com/u/cpanon)\
**Post date:** [June 15, 2022, 12:18pm UTC](https://community.postman.com/t/next-val-in-field-list/36213/7 "2022-06-15T12:18:55Z")

</div>

I do now believe it has something to do with the sequence generator on the db. From [this](https://stackoverflow.com/questions/50627820/hibernate-sequence-get-stuck-at-value-41). I am able to execute flyway scripts so it is configured. Will update. Hopefully others than a mere mortal has a deterministic answer before me:)
