Hi all,We are using record type PVs in our process model and passing the same to user input task. In the task, we are updating the values and after submit is clicked, we are updating the variables to database using write to records smart service. But when we are doing the same, the values are getting updated in pv level, but not getting updated in database. All configurations are correct inside the process model. Not sure what is the gap in this? Please provide your insights.
Discussion posts and replies are publicly visible
I think you are updating PVs in a user task but they aren't saving to the database.Verify below expected scenario:-Updating a copy of the PVs instead of the originals.Data mapping issues in Write to Records smart service.
We tried updating the copy, the pv is updatedbut db is notWhen we updated value in script task, at that time, db was getting updated
Sarathkumar R said:When we updated value in script task, at that time, db was getting updated
What's this i don't get it?What you are doing in script task using a!writerecords() ??
Can you please share your process details?
Its something similar to this. In user input task, we are updating some values and in script task, we tried updating some values. The values which are being updated in user input task are not getting saved and The values which are being updated in script task are getting saved.
are the values which you are updating in user input task are stored in pv variables or they are getting stored in ac variable?
Its getting updated in pv. In process details, I am able to see the same. I dont think we can see it in process variables if its in ac.
could you show user input properties please for better understanding
Sorry for the delay in reply.We tried remapping everything and did the changes once more. Still the issue is not resolved. Then we saved the same variable again into the same variable using a script task. Then data was getting updated properly in the database. In 24.1 version, we can see if values of variables are changed using process history. When we checked, the values were changed but in process history, it didn't show that arrow icon which will indicate whether has been changed or not. After saving using script task, that arrow mark appeared and everything was perfect. This issue seems to be a weird one but resaving using script task solved the issue.Thanks for helpingdocs.appian.com/.../Write_Records_Smart_Service.html