Data updates are not reflected in UI after a Visualforce+Apex update in Lightning Experience

Apex , VisualForce , Lightning

Last updated Today ·Reference W-3535908 ·Reported By 137 users

In Review

Summary
When data is updated from an Apex controller and redirected to the detail page in Lightning Experience, the updated data is not seen in the UI, even though the data is updated in the database.

This is an intermittent behavior and could happen when we are performing the updates continuously and redirecting to the page, with in a span of 30 secs.

If the same transaction is repeated after 30 secs or more no issues observed.

This issue is because of some cache issues with the Lightning Experience

This behavior will be observed only if there are redirections between Visualforce and Lightning pages.

No issues observed when the same functionality is implemented in Lightning.

Repro
- Create a VF page with below code:
<apex:page standardController="Account" extensions="MyPageController">
<apex:form >
<apex:commandButton value="Increment Revenue" action="{!incrementRevenue}"/>
<apex:inputHidden value="{!Account.AnnualRevenue}"/>
</apex:form>
</apex:page>


- Create related controller with below code:

public class MyPageController
{

public MyPageController(ApexPages.StandardController controller)
{
this.controller = controller;
}

public PageReference incrementRevenue()
{
Account a = (Account)controller.getRecord();
a.AnnualRevenue = a.AnnualRevenue + 1;

return controller.save();
}
}

- Create a custom detail page VF button on Account object with this VF page.(this issue can happen on any object, account is just taken as reference)

- Now navigate to Lightning Experience view.

- Open any account record

- Click the custom button and this will increment the AnnualRevenue field by 1 and when you are redirected back to Account detail page you don't observe the updated AnnualRevenue.

- If you don't see the issue try repeating the steps immediately.

Workaround
No workaround at this point

Reported By (137)

Ricardo Solano Michael Richmond Jyot Thakkar Dan Iorg Zakaria Bousaid Côme HABRAN chakib lemkhantar Roger Farrow Spencer Kohler Krishna Ganugapati Karan Khanna Ramon Out Piyush Sharma Lorna Damren Yury Bondarau P Naraharisetti Andreas Schuierer Sara Woodman Roberto Brandao Michelle Jensen Katie Anderson Lonna Williams Michael Miller Mason Gray Mikel Truman Lori Stephens gaurav arora swati marda Mitchell Woloschek Rahul Sharma Sravan Pinninti Neal Morgan Trent Morrison Karan Khanna Himanshu Kaushal Anurag Ranjan pradeep kumar manegalla Dan Stark Jake Darling Cesar Parra Yogesh Arora Srini Venkatasamy Aaron Uttley Martin Lezer Hannah O'Connor Tianhao Wu Kothandaraman Narasiman Sasitharan P Robert Collins Maciej Słomka Rajasekhar Reddy Nathan Yung Matt Nadeau John Fulton Vinaya Daware Kanhaiya Diwan santosh kulkarni Narendra Garud Nitin Negi Neena Ahirrao Guha Nitin Negi Mayur Shastri Kiran Ande Ashish Kulkarni Abhishek Das Nakul Malhotra Ryan Morden John Stamers Jocsan Diaz Shift CRM varsha salunke Sudha Kumari Virginia Leandro Benny Varghese Angad Pathak Chetan Bhelonde Veerakumar vadivelu Rajni Patil Nilesh Jagtap Nathaniel Sombu Mahesh Adi A.J. Angus IT Support User Romain Vernay Admin Admin Prashant Raiyani Cindy FRANCE Anagha Sulakhe Dev TNOPPV5 Roger Borges Grilo Julian Azzam Roman Belokon Santosh Bajjuri Marka Grimes Varun Chaddha Dan Howell David Casper Steve Stockstill Ferdinando Isernia Jeremiah Dohn Lakshminarayana Medikonda Christophe Boucquet Matic Repše Camelia Militaru Delia Di Bona Joyce Coquico Nidish Rekulapalli Andrea Azzola Francesca Deplano Francesco Del Favero Enrico Murru WR Dev Valerio De Rosa Christian Tinghino Ivano Guerini Fabien Taillon Jason Curtis Abdul Basit Asia Naseer Surabhi Menon Orkhan Shukurov Tom Kovar Anuj Maheshwari Cédric ARNAL Laetitia HERON UserMOA UserMOA Polline HAK Adil HASSNAOUI Anwar TREDANO Luca Nardini Ciro De Felice Pritam Shekhawat Mahmood Butt Michael Welburn Eugene Rusalev Andrew Fawcett David Frudd

Is it Fixed?

AP0 AP1 AP2 AP3 AP4 AP5 AP9 CS1 CS2 CS3 CS4 CS5 CS6 CS7 CS8 CS9 CS10 CS115 CS11 CS116 CS12 CS13 CS14 CS15 CS16 CS17 CS18 CS19 CS20 CS21 CS22 CS23 CS24 CS25 CS26 CS27 CS28 CS30 CS31 CS32 CS33 CS40 CS41 CS42 CS43 CS44 CS45 CS47 CS50 CS51 CS52 CS53 CS54 CS57 CS58 CS59 CS60 CS61 CS62 CS63 CS64 CS65 CS66 CS67 CS68 CS69 CS70 CS71 CS72 CS77 CS78 CS79 CS80 CS81 CS82 CS83 CS84 CS85 CS86 CS87 CS88 CS89 CS90 CS91 CS92 CS93 CS94 CS95 CS96 CS97 CS98 CS99 EU1 EU2 EU3 EU4 EU5 EU6 EU7 EU9 EU11 NA3 NA6 NA7 NA8 NA21 NA24 NA28 NA29 NA30 NA31 NA32 NA33 NA34 NA35 NA37 NA38 NA39 NA40 NA41 NA42 NA43 NA44 NA45 NA46 NA47 NA48 NA49 NA50 NA51 NA52 NA53 NA54 NA55 NA56 NA57 NA58 NA59 NA60 NA61 NA62 NA63 NA64 NA67 NA68 NA69 NA72 NA73 NA74 NA76 NA77 NA78 NA79 NA87 NA88 NA99

Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.