Skip to main content
vijaykumars5676
December 29, 2022
Question

Error in process mocel while write to data store entity task

  • December 29, 2022
  • 3 replies
  • 0 views

I'm doing document data extraction and using two CDT for that and have following error in the task "Write to data store entity : 

An error occurred while trying to write to the entity "POC2_invoicedetails" [id=8c106ba8-4e44-41c9-89c2-2190b74590d7@5544, type=POC2_invoicedetails (id=4354)] (data store: POC2_invoice_data_store). Details: javax.persistence.PersistenceException: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): POC2InvoicedetailsDT7844: org.hibernate.id.IdentifierGenerationException: ids for this class must be manually assigned before calling save(): POC2InvoicedetailsDT7844 Data: TypedValue[it=4354,v={<null>,5618,Invoice7,TIN222356195086,2022-12-15,Maharashtra,WQHNHRF,27,T216_Meghraj Fand,BigTree Entertainment Pvt Ltd,60.0,5.4,5.4,10.8,70.8,COMPLETE,{<null>,Avatar: The Way of Water (3D Hindi) (U/A) Convenience,999799,2,30.0,0.0,60.00,9 %,5.40,9 %,5.40,0,0.00,0 0.00,0 0.00,70.80}}]

    3 replies

    harshitb6843
    December 29, 2022

    There is a column in your CDT which is null but it expects a value. My idea is that you did not set your Primary Key to Auto increment. 
    Can you try doing it and see if it works?

    vijaykumars5676
    December 29, 2022

    Yes it is set to Auto increment still the same error.

    harshitb6843
    December 29, 2022

    Can you attach the XSD or the screenshot of POC2InvoicedetailsDT7844