This chapter describes how to load data from one or more external data sources to your Hyperion Essbase OLAP Server using the Hyperion Essbase Application Manager. It shows you how to use free-form or rules file data sources to load data or build dimensions dynamically.
You can load data without updating the outline, you can update the outline without loading data, or you can do both operations simultaneously.
This chapter contains the following sections:
Use import in MaxL or the LOADDATA or UPDATEFILE commands in ESSCMD to load data without a rules file. See the online Technical Reference in the DOCS directory for information.
|
To start loading data or building dimensions, you must have:
.XLS
extension, Version 4.0 and higher. You must load Microsoft Excel files Version 5.0 and higher as client objects or files in the file system.
.WKS
,.WK1
,.WK3
, or.WK4
extension
Note: | You must use a rules file to load SQL data or to build dimensions and members dynamically. |
You can select data sources using the Hyperion Essbase Application Manager or Windows. For a list of valid data sources, see Prerequisites for Loading Data and Building Dimensions.
Make sure you are connected to the server before you specify the data sources.
You can use import in MaxL or the LOADDB command in ESSCMD to select a data source and to load data. See the online Technical Reference in the DOCS directory for information.
|
Figure 23-1: Data Load Dialog Box
Figure 23-2: SQL Data Load Dialog Box
Figure 23-3: Open Server Data File Object Dialog Box
If you select Server, the data source to load must reside in the database directory under \ESSBASE\APP\
application_name\
database_name, where application_name and database_name represent the name of your application and database. Type the name of the data source in the Object Name text box or select it from the Objects list box. In Figure 23-3, for example, you could select ACT1.
If you select Client, the file may reside in either the application or database directory under \ESSBASE\CLIENT
or on the drives accessible from the client file system. Click File System to select a file from a standard Open Client Data Files dialog box. Select the file to open, for example, ASYMM.XLS
in the \ESSBASE\CLIENT\SAMPLE
directory.
To select multiple files, hold down the Ctrl key and click the files.
Note: |
ESSBASE is the default directory specified during installation. You may have specified a different default directory. Load Microsoft Excel files Version 5.0 and higher as client objects or files in the file system, not as server objects. |
Figure 23-4: Open Client Data Files Dialog Box
Now you can to specify how to load the data or build dimensions.
You can select the data sources using Hyperion Essbase Application Manager, the Windows File Manager or the Windows Explorer. For a list of valid data sources, see Prerequisites for Loading Data and Building Dimensions.
Make sure you are connected to the server before you select the data sources.
Note: |
If the data source contains blank fields for data values, replace them with #MI or #MISSING . Otherwise, the data will not load correctly. To replace a blank field with #MI or #MISSING , see Replacing an Empty Field with Text.
|
After you select the data sources, specify how Hyperion Essbase loads those data sources and whether to build dimensions dynamically using the Data Load dialog box. If you have not chosen your data sources yet, see Choosing the Data Sources Using the Hyperion Essbase Application Manager or Choosing the Data Sources Using Windows.
You can set the following options:
If you are loading data without a rules file, skip to Setting the Error Log File.
Rules files perform operations on the data as it is loaded, such as moving fields or building new dimensions.
Figure 23-5: Open Server Rules Object Dialog Box
Figure 23-6: Open Server Rules Object Dialog Box
If you select Server, the rules files to use must reside in the database directory under \ESSBASE\APP\
application_name\
database_name, where application_name and database_name represent the name of your application and database. Type the name of the rules source in the Object Name text box or select it from the Objects list box. For example, GENREF.
If you select Client, the rules file may reside in either the application or database directory under \ESSBASE\CLIENT
or on the drives accessible from the client file system. Click File System to select a rules file from a standard Open Client Data Files dialog box.
Note: |
The \ESSBASE\APP and \ESSBASE\CLIENT are the default directories specified during installation. You may have set these directories differently.
|
This occurs automatically for free-form files, but not for data sources loaded using a rules file.
You can modify the outline using a data source and rules file. This lets you change or add new dimensions and members to the database based on data in your data source instead of by using the Outline Editor. You must use a rules file to change the outline.
CAUTION: | Modifying the outline restructures your database. |
To change the outline, select the following options in the Data Load dialog box:
Hyperion Essbase updates the outline with any new members or dimensions found in the data source. To set up a dimension build rules file, see Introducing Dynamic Dimension Building.
Note: | If Modify Outline is not selected, Hyperion Essbase rejects any records containing new members during the data load. |
Each time a data source fails, Hyperion Essbase tells you which data source failed to load and asks you if you want to continue reading the remaining data sources.
Figure 23-7: Dataload Error Dialog Box
To continue loading the remaining data sources, click Yes. To stop, click No. Any data sources loaded before you stop are in the database.
Check the error log to determine why Hyperion Essbase did not load the data source or perform the dimension build operation. See Finishing the Data Load or Dimension Build if you do not know how to do this.
After you create a dimension build rules file, you may want to automate the process of updating dimensions. You can modify the outline, load data, and calculate databases using a MaxL or ESSCMD script. See the online Technical Reference in the DOCS
directory, or Performing Interactive and Batch Operations Using ESSCMD for more information.
You can set a file to record errors during the data load or dimension build if you are using a rules file. An error file can be a valuable debugging tool if your data load or dimension build fails. By default, the error log is in the\ESSBASE\CLIENT
directory and is named DATALOAD.ERR
. To name the error log something else, enter the name in the Error Output File text box in the Data Load dialog box.
CAUTION: | If the Server Output File text box is blank, Hyperion Essbase does not capture errors. |
For more information on errors during data loading or dimension building, see Finishing the Data Load or Dimension Build.
Now you can start loading data or building dimensions.
After you have set the data load options in the Data Load dialog box, you can start loading the data sources or building dimensions dynamically.
To speed up or optimize a data load, see the Optimizing Data Loads.
When the data load or dimension build finishes, Hyperion Essbase displays a dialog box listing the results. Data loads and dimension builds end in one of the following:
In a complete load, Hyperion Essbase had no problems loading every specified record in each data source. When data sources load completely, Hyperion Essbase lists the data sources successfully loaded in the following dialog box. In Figure 23-8, for example, the Calcdat
file loaded successfully.
Figure 23-8: Data Load Completed Dialog Box
In a partial load, some of the data sources might have loaded and some might not have loaded. The Data Load Completed dialog box lists all files that may have partially loaded in the middle list box. Hyperion Essbase lists all free-form data loads that fail here.
In Figure 23-9, for example, the Act1 text file did not load successfully.
Figure 23-9: Partial Data Load
It is located in\ESSBASE\CLIENT\DATALOAD.ERR
for data loads and \ESSBASE\CLIENT\DIMBUILD.ERR
for dimension builds. If there is no error log for data load, set one and restart the load. If there is no error log for the dimension build, it means the dimension build was successful. See Setting the Error Log File.
Note: | Hyperion Essbase only creates an error log file if you are using a rules file. |
\\ Member Sales Not Found In Database California,Caffeine Free Cola, Sales, 145,132,125,110,106,96,87,87,109,109,116,102
\\ Member COGS Not Found In Database California,Caffeine Free Cola, COGS, 95,104,109,123,127,141,154,154,122,122,113,127
\\ Member Marketing Not Found In Database California,Caffeine Free Cola, Marketing, 30,33,34,39,40,45,49,49,39,39,36,40
\\ Member Payroll Not Found In Database California,Caffeine Free Cola, Payroll, 22,22,22,23,23,23,22,22,22,22,22,22
\\ Member Misc Not Found In Database California,Caffeine Free Cola, Misc, 0,0,1,1,0,0,0,1,0,0,1,1
To fix the data source in Figure 23-10, for example, either edit the data source to remove the invalid members (that is, Sales, COGS, Marketing, Payroll, and Misc) or, if those members are all in the same column, ignore all fields in that column, see Ignoring All Fields in a Column.
. To view a specific record in a data source from the Data Prep Editor, see Setting the Records Displayed.
See Loading the Error Log File for more information.
When no data sources or records were loaded into the database, Hyperion Essbase displays the following dialog box:
If you did not set an error log, set one and restart the load. See Setting the Error Log File.
It contains a list of each of the data sources and records that did not load. In Figure 23-11, for example, Data
did not load.
To jump directly to a record in a data source, see Setting the Records Displayed.
This section lists tips for data loading. It describes how to load data into a parent instead of its children, how to load a subset of records in a data source, and how to load data using a spreadsheet.
If you load data into the parent member, when you calculate your database, the consolidation of the children's values can overwrite the parent's data. To prevent this from happening:
#MISSING
values from children into their parents. Set this at the database level through Hyperion Essbase Application Manager or use alter database in MaxL or the SETDBSTATEITEM command in ESSCMD. You can also use the SET AGGMISSG command in calc scripts. See the online Technical Reference in the DOCS
directory for more information.
This only works if the children's values are empty (#MISSING
). If the children have data values, those values will still overwrite the values of the parent. See Calculating #MISSING Values for more information.
You can load a range of records from a data source. For example, you could load just the records 250 to 500 without loading the other records in the data source.
Note: |
You cannot reject more records than the error log file can hold. By default, this is 1000, but you can change it by setting the DATAERRORLIMIT in the ESSBASE.CFG file. See the online Technical Reference in the DOCS directory for more information.
|
If you load data using a spreadsheet, see the following documents:
DOCS
directory. See the Spreadsheet Add-in Online Help for information about using VBA with the Visual Basic API.
Copyright © 1991-2000 Hyperion Solutions Corporation. All rights reserved.