Support Article
Data is lost after saving and opening the WO again
SA-6341
Summary
You entered some data in the work object, submitted the form back to the server, and closed the portal tab containing the work. Later you re-opened the same assignment to continue entering the data, but the data you entered previously was gone.
Error Messages
This field cannot be blank
Steps to Reproduce
1. Type some new data, but leave some required fields blank.
2. Click button to submit the data to the server.
3. Close the tab.
4. Re-open the work.
Root Cause
The server is trying to save the new data, but the client side validation gives an error saying that required fields are blank, which is why the new data is not being submitted to the server or written to the database.
Resolution
Distinguish in your validation logic whether blank fields are allowed or not, and if the intent is to let the work be saved and continued later, do not use client side validation. This will allow the partially entered data to be saved. If the intent is for the work to be complete, and required fields are still blank, then use server side validation and at that time put up an error.
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.