Manage Business Object Data During Development
VB Studio provides tools such as the Data Manager to help you manage the data stored in business objects while developing your visual applications.
- When you enable a business object to contain application setup data. In this case, the business object's data is considered required for the application to function properly, so the data is always included when you export or publish the application.
- When you share an application and choose to include development data from your workspace.
In most other cases, you'll need to manage your visual application's data separately.
For visual applications that are yet to be deployed to the Visual Builder instance, you can use the Data Manager to import business object data from a file into your visual application, export all data from your visual application to a file, or create a new business object in your visual application by importing a file. To access the Data Manager, open your visual application workspace, click the Options menu in the Navigator's Business Objects pane, and select Data Manager.

For visual applications that are deployed to the Visual Builder instance, you can use the Deployments tab in the Environments page to import or export business object data. You can also automate this task by configuring build jobs to import or export the data. If the Visual Builder instance that hosts your deployed visual application is in a different identity domain, you can import or export the business object data only by configuring build jobs.
Note also that the Oracle Deployment step in your visual application’s deployment job includes a Data Management option to determine whether your visual application is deployed with the data from your environment, or whether it uses a clean database. See Configure the Deployment Job in Administering Visual Builder Studio.
Import Data From a File Using the Data Manager
You can replace the data in one or more of your business objects by importing CSV files and Excel spreadsheets. Use the Import from File tool in the Data Manager to simultaneously update the data for one or more business objects, for example, to import data for testing the application or in preparation for publishing the application.
When importing an Excel spreadsheet (.xls
or .xlsx
), the spreadsheet can contain one or more sheets. The title of each sheet must be the same as the name of the business object that you want to update. If the data in a cell is calculated using a formula, only the data is imported. The formula is not imported.
When you use the import tool to replace the data in a business object, all the data for that business object is deleted from the database. If a field is defined in the schema for the object but no data for the field is contained in the file, the field is set to the default value, if there is one.
Description of the illustration bo-datamgr-csv.png
Each business object has five default fields: id
, creationDate
, lastUpdateDate
, createdBy
, and lastUpdatedBy
.
Note:
The correct format for a Date field is yyyy-mm-dd (for example,2006–06–17
). If you edit a .csv
file in Excel, Excel converts it to an incorrect format, as shown in the preceding image. To resolve this problem, you can use Format Cells in Excel to change the date format for the column; you need to specify a locale that supports yyyy-mm-dd, such as English (United Kingdom). Alternatively, edit the file in a text editor. You can't import a column that contains dates formatted dd/MM/yy HH:mm
.
The import tool will not create or remove fields for business objects. You can use the Business Objects tabs to create or remove fields, to edit data, and to append data to a business object by importing a file.
To import data into a database:Export the Data to a File from the Data Manager
You can export all the data contained in your database as CSV files. The export tool creates one CSV file for each of the business objects in your database and packages the files as a ZIP archive.
- Click the Options menu in the Navigator's Business Objects pane and select Data Manager.
- Click the Export All Data tile to download a ZIP archive that contains CSV files with the data.
Resolve Problems When Importing Data
When you import data from a file, if you see a warning message that the data was not imported or only partially imported, you might need to make changes to the file and import the file again.
To resolve problems during import, you might want to compare the data in your file to the data in the database. You can see the actual data in the database in the Data tab of your business object. You can also export the current data as a CSV file and compare the data using a tool on your local system.
When you import a CSV file with a Date field, dates must be in the standard ISO format, for example, 2017-09-31. For files with string type fields, the data in each string field must not exceed 4000 bytes.
When you see a warning message:
Create Business Objects From a File
You can create new business objects by importing spreadsheet files and .csv
files using the Import New Business Objects wizard.
The files that you upload are analyzed to determine the business objects that can be created. You may upload comma-separated value text files (.csv
) or Excel spreadsheets (.xls
, .xlsx
). When using .csv
files to create business objects, one business object is created for each file, and the name of the business object is based on the file name. When using .xls
or .xlsx
files to create business objects, one business object is created for each worksheet in the file, and the name of the business object is based on the worksheet name. If the worksheet contains one or more tables, a business object is created for each table based on the table name, and the worksheet name is ignored. The first row of .csv
files, worksheets, and tables must be a header row, and the column headers are used to determine the names of the fields. The data in each column is parsed to help determine the data type for the field, but you should confirm the suggested data type is correct in the Fields step of the wizard.
To upload multiple files, you need to create a ZIP archive containing the files you want to import.
To create business objects in the Import New Business Objects wizard:
Import Data into a Deployed Visual Application
You can import data to your deployed visual application using the import tool that you access from the Deployments tab of your environment.
Export Data from Deployed Visual Applications
You can export data from your deployed visual applications using the tool that you access from the Deployments tab of your environment.
- In the left navigator, click Environments
.
- Select the environment the visual application is deployed to.
- Click Deployments, then Visual Applications.
- For the visual application where you want to export data, click
Actions
and select Export Data to open the Export Data dialog where a message appears requesting confirmation that you want to download all data for the visual application to a zip archive.
- Click Export.