--- title: "Why am I getting an error 'Cannot access Data Store before initialization' when I try to insert a row into my table using the Node.js SDK?" url: https://docs.catalyst.zoho.com/en/faq/cloud-scale/datastore-nodejs/ description: "You will encounter this error if you have not initialized the Catalyst Node.js SDK properly in your function. Use the following code to ensure you have …" last_updated: 2026-11-13T05:00:22Z service: CloudScale type: faq --- You will encounter this error if you have not initialized the Catalyst Node.js SDK properly in your function. Use the following code to ensure you have initialized the Node.js SDK and Catalyst Data Store properly. ```javascript const catalyst = require("zcatalyst-sdk-node"); const datastore = catalystApp.datastore(); //Initializing catalystApp variable differs with each function type ```