In this article, I will outline how to edit a newly generated schema file using our Connectors. This article will use our QuickBooks Online Power BI Connector as an example; however, this walkthrough is applicable to any data source and edition.
With several of our Connectors, we have the option to generate a new schema file. Depending on the edition, you can create these schemas by either running a Stored Procedure or using a graphical interface in the ODBC Administrator tool (applicable for ODBC and Power BI editions). Stored Procedures accept a list of parameters allowing us to define the structure of the schema file.
When we create a new schema file, this creates an .RSD file structuring the data based on our input parameters. This RSD file is saved in the path specified by the Location connection property. You can check the default value of this property by navigating to the documentation of your Connector and on the menu on the left-hand side, navigating to Connection Properties > Schema > Location.
Since I am creating a schema file using the QBO Power BI Connector, I can check for the default value set for the Location connection property in the documentation, like so https://cdn.cdata.com/help/RNJ/powerbi/RSBQuickBooks_p_Location.htm. To confirm the value set for my instance, I can navigate to the ODBC Data Source Administrator, as seen below. Feel free to change the value of the Location property if you want your schema files saved elsewhere.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/eb440da7-25bf-4117-aaf7-09302ad91726.png)
Now that we have the location available to us, we can go ahead and navigate to that folder holding our schema files within our File Explorer. Since my Location property is set to the default value, I have searched for the path within my File Explorer, as seen below.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/de5c6b4a-fa1c-43fc-b17d-25500248dd63.png)
After clicking enter, I am now taken to the relevant Schema folder, where I can see my generated schema files for the Connector.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/a371951e-fb33-41af-94aa-9be26d6c705f.png)
Now to edit the schema file. The best way to edit a newly generated schema is directly in the schema (RSD) file itself. I recently created a Transaction List Report using a Stored Procedure (TransactionListReport.rsd) and set the StartDate parameter as 04/01/2023, as seen below.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/651aa9d6-4ca7-46c0-9248-ce4245fec152.png)
However, after creating this schema file, I realized I wanted transactions starting from 06/01/2023 instead. To change this, I will go ahead and open the schema file in my preferred text editor (Notepad++ in this case).
From here, I will locate the input parameter I’m looking to change, StartDate in this case, then make the changes needed.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/4d53806c-9788-4da3-a65a-85e126f4e8cc.png)
After changing the StartDate to “2023-06-01” and saving my changes, I can reopen the DSN Configuration and head back to the corresponding table to review the changes.
![](https://uploads-us-west-2.insided.com/cdata-en/attachment/eea90840-3694-4a61-a3b5-fcf999961ea1.png)
Now I have successfully edited my schema file to reflect my desired input.
If you’re running into any issues here or have further questions, you can reach out to us directly at [email protected].