Importing from MongoDB using Zoho Databridge

Importing from MongoDB using Zoho Databridge

Zoho Analytics allows you to import data stored in the Claris MongoDB database using the Zoho Databridge. You can also automate the import process to synchronize the data from your local /hosted MongoDB database into Zoho Analytics in a periodic interval. Report loading time will be faster as the data is stored in Zoho Analytics.

The Zoho Databridge bridges your local & MongoDB database and Zoho Analytics server to fetch data from your local/hosted MongoDB database. With this, you can also automate the import process to synchronize the data from your local/hosted MongoDB database into Zoho Analytics at a periodic interval.

Zoho Databridge

1.What is Zoho Databridge?

Zoho Databridge is a lightweight independent utility that bridges your on-premise data source and Zoho Analytics server, to enable easy data import. You can also automate the import process to synchronize the data from your local or hosted database into Zoho Analytics at periodic intervals.

2. How do I install Zoho Databridge?



Note: It is mandatory to install Zoho Databridge to import data from MongoDB database.

3. What are the prerequisites to successfully import data into Zoho Analytics?

This database requires a driver to connect to Zoho Analytics. Place the JDBC jar file for database inside the <Databridge>/lib/drivers folder to import data into Zoho Analytics. To do this,

  1. Download the JDBC jar file.
  2. Open the already downloaded Zoho Databridge folder and navigate to lib > drivers folder.
  3. Copy the downloaded JDBC jar file and paste it in the drivers folder.
  4. Restart Zoho Databridge.
Note: It is mandatory to fulfil the prerequisites. On failing, you will receive an alert message "Driver not found. Put the appropriate jar required to connect to your database in <Path to Databridge>/lib/jars folder."  

Data Import

1.  How do I import data from MongoDB database using Zoho Databridge?



2. How long does it take for the data to be imported into Zoho Analytics?

Import will take a few minutes to hours depending on the volume of the data. Please note, if you access the Workspace before the initial fetch is completed, you may find the tables empty (with no data).

3. How can I edit the Import setup?

You can edit the import setup anytime by following the steps below:

  1. Open the Workspace.
  2. Click the  Data Sources  tab from the left bar.


  3. All the data sources for this Workspace will be listed. Click the MongoDB data source that you want to edit. 
  4. The  Data Sources  page will open. Click  Edit Connection.



  5. Modify the settings as needed and click  Save. The connection details will be saved.

4.  How can I schedule import from MongoDB database?

Zoho Analytics allows you to automatically schedule the periodic import of data. You can schedule the import of data into an existing table by following the steps below. 

  1. Click the  Data Sources  tab from the left bar and click the MongoDB    data source for which you want to schedule import.
  2. The  Data Sources  page will open. Click  Sync Settings .
  3. The  Local Database - Synchronization Settings  dialog will open.
  4. Select the required schedule interval from the  Repeat  drop-down menu. Supported intervals are:
    • Not Scheduled
    • Every 'N' Hours
    • Every Day
    • Weekly Once
    • Monthly Once
  5. Select when the data needs to be imported from  Perform every  option. 
  6. In the  Notify me after every Sync Failure(s)  drop-down menu, set the number of consecutive import failures after which you need to be notified.


  7. Click  Save. Data will be imported into Zoho Analytics in the set interval.
You can also schedule import during the initial setup using the Schedule Setting option.


5. Will I be notified on Import failures?

Yes, you will be notified after consecutive import failure, in case it occurs. You can set the number of consecutive import failures after which you need to be notified in the   Notify me after every 'N' Sync Failure(s)   option of the   schedule import .


6. What if the import from MongoDB database that is hosted in the cloud fails, how do I solve the issue? 

Import from a cloud database may fail when the Databridge does not have the privilege to access the data. In case your database security system only allows access from restricted IP Addresses, then it will blocklist the server/machine where Databridge is installed. Ensure that you have the IP Address of the machine/ server is in the allowlist, where the Databridge is installed.

7. Can I import data into an existing Zoho Analytics Workspace?

Yes, you can import your data from a database into an existing Workspace.
Follow the below steps to import data into an existing workspace:

  1. Open the Workspace into which you wish to import the data.
  2. Click  Create > New Table / Import Data .


  3. The  Import Your Data  section will open. Click  Local Databases  option.


  4. The  Import Wizard  will open. Configuring the import will be similar to the steps followed in setup presentation.

8. Can I import data from MongoDB database into an existing table in Zoho Analytics?

Yes, you can change the data source of a table, into which the MongoDB has been synced. 
Follow the below steps to import if the source is available in the same MongoDB that is imported into the table. 

  1. From the required table, click  Import Data > Import into this Table .


  2. The  Select Data to Import  tab of  Import wizard  will open. 
  3. You can choose to import from a different table using the  Select Table  option or import using the  Custom Query .

9. I have synced data from database into a table. Can I change the data source of this table?

Yes, you can change the data source of a table, into which the MongoDB database has been synced. To do this:
  1. Open the workspace.
  2. Click the Data Sources tab from the left bar. 
  3. All data sources for this workspace will be listed. Click the data source you want to edit.
  4. The Data Sources page will open. Click the Edit Connection link.
  5. In the Local Database - Edit Connection dialog that open, modify the data source. You can also change the Databridge that fetches the data.

  6. Click  Save  to implement the changes made.

10. Can I import data from the databases which are hosted in various networks/private cloud?

Yes, you can import from various databases that are hosted in different networks by installing multiple Databridges. You need to install various Databridges for each network. To link all the Databridge installations to your account, use the same installation key available in the  Download  dialog.



Note:
  1. Single Databridge installation can import data from various data sources available in the same network.
  2. You can install only one Databridge per machine. 

11. Will foreign keys defined between my tables in the database be linked in Zoho Analytics as well?

Yes, the tables will be directly linked in Zoho Analytics, based on the foreign keys defined between your tables in databases. Click here to learn about look-up after importing data into Zoho Analytics.

12. Can I change the datatype of the columns imported in Zoho Analytics?

Yes, you can change the datatype of the columns imported into Zoho Analytics. However, it is necessary that the datatype of your column is compatible with the datatype of the column in your database for successful data synchronizations. It is always recommended that you change the data type in both your database as well as your Zoho Analytics Workspace.

13. How do I remove the import setup?

You can remove the import setup by following the steps below. 

  1. Click the  Data Sources  tab from the left bar.
  2. All the data sources for this Workspace will be listed. Click the data source you want to remove.
  3. In the  Data Sources  tab that opens, click the  Settings  icon inline to the data source name on the left.
  4. Click the  Remove Data Source  option from the drop-down menu.


Please do note that this only removes the connection. You can still continue accessing the Workspace in Zoho Analytics.

14. I am unable to establish the connection between the local MongoDB and Zoho Analytics server. How do I solve this?

This may happen due to various factors such as connectivity issues or privileges to access the protected data source. Refer to our  Zoho Databridge Troubleshooting tip  section to solve the specific issue you are facing.