These rules are provided to help you understand the state
transitions in a file for various operations.
The following list is a summary of state management rules
for a file:
- You can add one or more files to a session that is in Draft state.
When you add a file, the status of the session changes to In
Progress. You can also add more files to a session, which
is in the In Progress state.
- You can delete a file when it is in the Imported state
or any error state.
- If the importing of one or more files fails during a session,
then the status of the file and the session changes to File
Import Error.
- When one or more files are in Deleting state
during a session, then the status of the session changes to Updating.
- When the operation of importing all the files in a session is
complete, then the status of all the files changes to Imported.
At the same time, the status of the session changes to Draft.
- There can be errors when you import or delete a file in a session.
If there are errors, then the statuses of the file and the session
change to their corresponding error states. For example, if a file
delete operation fails, then the statuses of the file and the session
change to File Deletion Error. This rule shows the
cumulative effect of the file operation failure on a session state.