I have created a simple table in the same database as aavehicle and I created a data model for the table along with CREATE and UPDATE record actions. When I add a new record using the CREATE record action and associated UI, the data does not appear in the record List until after I run a Data Sync. When I UPDATE a record using the UPDATE record action and associated UI, the changes are reflected immediately in the record List. I have scrolled through all pages of the list and confirmed the new record does not appear. If I query the database BEFORE running the Data Sync, the new record is in the database. Any ideas why this may be happening?
Discussion posts and replies are publicly visible
Hi, An immediate sync will occur anytime Appian writes to the database table.An immediate sync will only refresh the data that was changed by Appian.
Hello! Thank you for responding! I cannot find an "immediate sync" option on the Data Sync page of my record type. I am using Appian 22.1. The only options I find under Data Sync are Sync Schedule (which allows a scheduled to be established for daily sync) and Start Sync to manually run a data sync. Can you please tell me where to find the option for enabling "Immediate sync"? Thanks!
"immediate sync" happens as soon as you update , add or delete the record.You dont need to re-sync the record. You can just refresh the record using refresh button like below snap,
There is also a functionality where you can configure refresh interval .
Though i am unsure about auto refresh after any record action.
Hi charletonh0001
If the data sync is enabled, any CRUD operation using the related actions of the record will trigger the sync and data will be updated. Sometimes it fails which you can see in the sync history.
Can you try to update/ create something using the related action of the record and have a look at the sync history, If it will fail you will see the status in the data sync tab under sync history.
That is what I thought. I assumed that there would be an immediate sync after I submitted the new record, but that does not happen. I have also clicked the refresh button, and the new record does not appear. The record is inserted into the database, but the immediate sync with Appian does not seem to be happening for the Create record action. The Update record action does work and changes are immediately seen in the grid.
Hi! Thanks for your response. After adding the new record through the Create record action, there is no new sync history row. If I click the START SYNC button, the new record is returned from the database and a new row is added to the Sync History. I expected the sync to happen immediately once I clicked the submit button when added a new record, but it is not. It does immediately sync when I use the Update record action, but not Create. When I add a new record, the only way I can get the new record into the grid is to perform a manual sync.
Can you check it in the Records Tab of Tempo, whether the new record is coming up there after you create it? If it appears in the Tempo, in the grid try to set the "refreshAfter" in the grid to "RECORD_ACTION"
refreshAfter:"RECORD_ACTION"
I tried to recreate the same scenario. I created a new row using record action and once I refreshed the record list I was able to see the newly added record. I would suggest you to check your record type configuration.
Also, make sure your process chains through the 'Write to data store node' so that Appian writes your value to the database before the page reloads
Thanks. I will keep looking to see if I can figure out why this is happening. Maybe I will try creating a new record type and see if that one works properly, then compare to my first to find the differences.