Im getting the error when writing to data store: ... " with identifier value `1007` does not exist " . This is the value of my primary key I'm trying to insert into the data store. I already have the primary key from user input and I'm trying to write all of the info into an empty data store. (I would share screenshot but it's work information). This is occurring within my process model when I am using the write to data store smart service. Why is this happening?
Discussion posts and replies are publicly visible
The Write to DSE node configuration needs to be corrected. In the input ‘Data Store Entity’ , the value seems fine. The save into should be blank here.
Then add a new Input here. You can name it after your cdt formRequest. The type should be the cdt type. Now in the value of this formRequest input put the pv!formRequest. Dont put any thing in saveinto for this input also.
Rather in the output tab you can save the output back in the pv!formRequest. Dont configure save intos in the input node. Try and let me know!
Try to follow the documentation here: https://docs.appian.com/suite/help/25.2/Write_to_Data_Store_Entity_Smart_Service.html#data-tab
Hello Harsha thank you for the reply. I have entered in the information as you said but now I get the error where my process model tells me that I can't enter in null values for the primary keys. I have a main CDT -> {main CDT fields, related CDT1, related CDT2}. I am trying to write individually to the related CDT's first and then save the output back into the process variable but this still occurs. And I made sure that appian had the primary keys be auto generated when writing new records to data store entity. I have attached the picture of the error which relates the related CDT1
I have fixed my problem, the main issue was that even though I updated my Appian table to auto-increment and verified the tables, my sql server was still outdated with the old properties(no auto increment). So after I deleted the tables, the new key settings were able to apply.