Skip to main content
Inspiring
Jul 16, 2024 8:55 AM UTC
Question

Write to data store

Hi, I have a variable of type document and another of data entity type where I need to store the documents, in all the process models I have this:

but in just one case the documentId is not filled hence I am getting an error when trying to use the cmcDocument variable. In database it is inserted as expected:

the instance: 

I don't know what can be the problem as in other process models it is working and there is no difference between those processes

    3 replies

    venkatrea696188
    Inspiring
    Jul 16, 2024 9:14 AM UTC

    Hi , isn't the Document Id is the primary key with Auto increment enabled?? Are you saving it back ,in Output tab storedValues?

    karumurua531442
    Participating Frequently
    Jul 16, 2024 10:51 AM UTC

    hi [mention:0d77b95d889c420097b2afce6f897f56:e9ed411860ed4f2ba0265705b8793d05]  could you check your PK is auto increment

    rajt0005
    Known Participant
    Jul 16, 2024 1:49 PM UTC

    check PK with auto Increment enabled!  and store the value in process variable then retrieve using that same process variable