Hello Friends,
FDMEE: System Maintenance Tasks series where we are going to cover Maintain Application Folder script.
If you have not yet read previous two posts of this blog series, I would suggest you to go through them here to get a comprehensive picture of FDMEE System Maintenance Tasks:
FDMEE: System Maintenance Tasks: Maintain FDMEE Data Tables
FDMEE: System Maintenance Tasks: Maintain ODI Session Data
FDMEE: System Maintenance Tasks: Maintain FDMEE Data Tables
FDMEE: System Maintenance Tasks: Maintain ODI Session Data
In this third post, we will focus on the ‘Maintain Application Folder’ task and will see how to manually execute ‘Maintain Application Folder’ purge script.
Important Note:
- This post has been written and associated activities have been demonstrated on FDMEE version 11.1.2.4.210.
- There is no outage required on the FDMEE application to execute these purge scripts. But it is advisable not to run any data loads during the purge activity.
- Based on the data retention policy of your organization, you should pre-decide how many days of data you want to retain for FDMEE Application folders.
- Don't forget to take complete FDMEE schema backup before attempting to run these purge scripts.
Maintain Application Folder
Whenever you load data (files) through FDMEE, there are three types of files stored:
All these files remain on your FDMEE server or network location (server) and often gradually cause your disk storage space to get full. These files themselves are not that important, as the data is stored in both, the FDMEE database as well as your target EPM application (Essbase, Planning, HFM, etc.) database.
The “Maintain Application Folder” script is used to clean up FDMEE Inbox, Outbox, and Data (excluding Data\Scripts subfolder) folders by the number of days entered as an input parameter for these folders.
- The file which you uploaded, is stored in the inbox directory
- The export file, which is stored in the outbox directory
- The data file, which is stored in the data directory.
All these files remain on your FDMEE server or network location (server) and often gradually cause your disk storage space to get full. These files themselves are not that important, as the data is stored in both, the FDMEE database as well as your target EPM application (Essbase, Planning, HFM, etc.) database.
FDMEE checks the inbox and outbox subfolders under the respective folders and deletes any files present over there. In the data subfolder, FDMEE skips the scripts subfolder because it contains your custom, event, and import scripts. Cleanup also includes Reports and Logs under the Outbox folder that are associated with Process IDs.
Maintain Application Folder (deleting old files from FDMEE inbox, outbox and Data directories) script saves you a lot of disk space as these folders' size gets bigger with time, if not housekept regularly.
When you execute ‘Maintain Application Folder’ purge script, it seeks following input parameters to be entered:
- Target Application
- Days to keep Inbox directory
- Days to keep Outbox directory
- Days to keep Data directory
If the Days to keep value is not specified for a specific folder (Inbox/Outbox/Data), FDMEE skips that folder for file deletion.
Step-by-Step process to execute ‘Maintain Application Folder’ purge script
1- Log in to Workspace with Admin credentials.
2- Open FDMEE console (Data Management) from Workspace and on the Workflow tab, under Other, select Script Execution:
3- In Script Execution, and then in Custom Script Group, select System Maintenance Tasks.
4- From the Scripts grid, select Maintain Application Folder script and Click Execute.
5- It will prompt to enter the following input parameters:
6- Click on the search icon for Target Application and select the application name from the list.
7- Now enter Days to keep for Inbox, Outbox and Data directories.
For example, to retain files under these three folders for the last 3 months, enter 90 (days):
For example, to retain files under these three folders for the last 3 months, enter 90 (days):
8- Keep Execution mode selected as Online. The online method processes the report immediately.
Execution modes:
online — ODI processes the data in sync mode (immediate processing).
offline — ODI processes the data in async mode (runs in background).
7- Optionally, If you want to schedule the purge script run rather than running it instantly, Click on Schedule option and enter the scheduling details as per your requirement.
8- If you want to instantly run the purge script, then directly click on OK (not on the Schedule option).
You will see a message informing the process ID of your script run as shown below:
9- To see the status of your script execution, click on the Process Details link under the Workflow tab—Monitor—Process Details.
10- Above we can see our script with Process ID 8144 has executed successfully.
Click on the Show button for Process ID 8144 to open the corresponding log file.
In the log file, look for the message "Maintain Application Folder: Completed" to confirm that script has run successfully without any error. If you encounter any errors, troubleshoot them based on the cause mentioned in the log file. In our case, we see no issue in the script execution.
Note, you need to repeat all of the above steps for other target applications too where your FDMEE data loads are happening.
Once you are done with running the Maintain Application Folder purge script for all of your selected target applications, you can check FDMEE Inbox, Outbox and Data directories to verify the deleted files.
That's all for this post.
Maintain Application Folder purge script can be automated to run using Executescript batch file located in the folder:
<drive>\Oracle\Middleware\user_projects\epmsystem1_fdm\FinancialDataQuality.

