Please check your entity definition and compare that against what you want
to inject in the table.

Best regards,

Pierre Smits

*Apache Trafodion <https://trafodion.apache.org>, Vice President*
*Apache Directory <https://directory.apache.org>, PMC Member*
Apache Incubator <https://incubator.apache.org>, committer
*Apache OFBiz <https://ofbiz.apache.org>, contributor (without privileges)
since 2008*
Apache Steve <https://steve.apache.org>, committer


On Mon, Apr 29, 2019 at 11:24 AM Arshitha K M <[email protected]> wrote:

> hi,
> I am new to ofbiz. I  met trouble during loading the seed data(hello3),
>
> The Following Errors Occurred:
> ERROR: parsing file: ERROR parsing Entity Xml file:
> org.xml.sax.SAXException: A transaction error occurred reading
> data<br/>org.ofbiz.entity.GenericEntityException:
> org.ofbiz.entity.GenericEntityException:
> org.ofbiz.entity.GenericEntityException: Error while inserting:
> [GenericEntity:HelloHobby][createdStamp,2019-04-29
> 12:59:49.86(java.sql.Timestamp)][createdTxStamp,2019-04-29
>
> 12:59:49.82(java.sql.Timestamp)][description,Reading(java.lang.String)][helloHobbyId,READING(java.lang.String)][lastUpdatedStamp,2019-04-29
> 12:59:49.86(java.sql.Timestamp)][lastUpdatedTxStamp,2019-04-29
> 12:59:49.82(java.sql.Timestamp)] (SQL Exception while executing the
> following:INSERT INTO OFBIZ.HELLO_HOBBY (HELLO_HOBBY_ID, DESCRIPTION,
> LAST_UPDATED_STAMP, LAST_UPDATED_TX_STAMP, CREATED_STAMP, CREATED_TX_STAMP)
> VALUES (?, ?, ?, ?, ?, ?) (Column 'HELLO_PERSON_ID' cannot accept a NULL
> value.))
> the entity i want to load seed data is having only two columns HelloHobbyId
> and Description,i did'nt get that,why error message showing as
> 'HelloPersonId' cannot accept a null value.
>
> I tried to load seed data into another entity HelloPerson and that was
> successful.
> Could you please help me to fix the error.
>

Reply via email to