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.
hi Sarathkumar R This might have couple of reasons, are you getting any errors? can you show me how are you updating the variables, snapshot of your code might help
That's odd, try it again. Have you checked logs??
AFAIK may be one of the following scenario may lead to it
1. There isn't anything that overwriting?
2. It's not getting updated in DB or Record(Sync issue)??
3. Write records is successful(Without any errors)?
4. Mappings of variables done properly?? (ACP to Pv)
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
I am not getting any errors. Everything is fine
We havent checked the logs.There is no overriding happening. DB is not updating. No error as well and all variables are mapped properly.
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?
I am not using write to records function in script task. In user input task, some certain values are being updated. These are not getting updated into database. But after user input task, for testing purpose, I updated some values using script task. The values which are updated using script task are being updated. After script task, we are having write to records smart service. Hope it clarifies now.
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.