MyReport
MyReport reads Pennylane through the ClickHouse ODBC driver. Install and configure the driver once, on the Windows machine that runs MyReport Data and its ETL jobs.
The chain is Pennylane Data Sharing, then ClickHouse, then the Windows ODBC driver, then MyReport Data.
Connection values are the ones on Connect. Host datasharing.pennylane.com, port 443, database pennylane. Do not point the DSN at a *.clickhouse.cloud host, and do not set the database to data_sharing.
| Step | What you do |
|---|---|
| 1. Pennylane access | Turn on Data Sharing and copy the password |
| 2. Download | ClickHouse ODBC driver, Windows 64-bit |
| 3. Install | The .msi installer |
| 4. ODBC source | A system DSN, Unicode driver |
| 5. Test | A check query from PowerShell |
| 6. MyReport Data | Connection BDD Ext_Pennylane, then the ETL |
1. Pennylane access
Turn on Data Sharing in Pennylane before you install the driver.
- Company: Settings, Connectivity, Data sharing.
- Firm: firm settings, Data sharing.
The password is shown once. Copy host, port, database, user, and password when they appear. If you lose the password, reset it on that screen and update the ODBC source. The user can take a few hours to become usable. That delay is separate from table freshness.
You need Windows 64-bit, a local administrator (to install the driver and create a system DSN), and outbound HTTPS on port 443 to datasharing.pennylane.com.
An existing Redshift source (port 5439) stays as it is. Create a new source. The driver and the host are different.
2. Download the driver
Download the Windows 64-bit .msi from the ClickHouse ODBC releases. Version 1.5.4 is the one tested with MyReport.
Pick the file that ends in -win64.msi. Skip:
- files whose name contains
-powerbi-(those are for Power BI) .ziparchives- releases marked Pre-release or Beta
3. Install
- Close MyReport Data.
- Run
clickhouse-odbc-…-win64.msi. - Accept the license and keep the default folder (
C:\Program Files\clickhouse-odbc\). - Install, accept the Windows administrator prompt, then Finish.
Open ODBC Data Sources (64-bit). On the Drivers tab you should see ClickHouse ODBC Driver (ANSI) and ClickHouse ODBC Driver (Unicode). The installer also creates sample DSNs that point at localhost. Do not use those for Pennylane.
4. Create the system DSN
A system DSN is visible to the account that runs scheduled MyReport ETL jobs. A user DSN is not.
- Open ODBC Data Sources (64-bit).
- System DSN, Add.
- Choose ClickHouse ODBC Driver (Unicode), then Finish. The Pennylane extension uses the Unicode driver.
- Fill the dialog and click Ok.
| Field | Value |
|---|---|
| Name | PENNYLANE |
| Description | Pennylane - Data Sharing ClickHouse (optional) |
| URL | empty |
| Host | datasharing.pennylane.com |
| Port | 443 |
| Database | pennylane |
| SSLMode | require |
| User | u_<id> |
| Password | the Data Sharing password |
| Timeout | empty |
| Compression | off |
| SQL Compatibility Settings | off |
SSLMode is the word require, in lower case. true and yes fail. Do not put the host in URL.
5. Test
The driver dialog has no test button. On the MyReport server, open 64-bit PowerShell:
$cn = New-Object System.Data.Odbc.OdbcConnection("DSN=PENNYLANE")
try {
$cn.Open()
$cmd = $cn.CreateCommand()
$cmd.CommandText = "SELECT version()"
"OK - ClickHouse version: " + $cmd.ExecuteScalar()
} catch {
"ERROR: " + $_.Exception.Message
} finally {
$cn.Close()
}
OK - ClickHouse version: … means the DSN works.
6. MyReport Data
The Pennylane extension reads ClickHouse through the ODBC connection BDD Ext_Pennylane.
- Open the project in MyReport Data.
- Under MyReport, Ext_Pennylane, open the properties of
BDD Ext_Pennylane. - The connection type is ODBC.
- Set the DSN to the name from step 4, for example
PENNYLANE. - Leave user and password empty. The driver reads them from the DSN.
- Save, then run the extension ETL (for example
Ext_Pennylane_ETL_Complet).
The connection is in place when that ETL finishes with no error. A new password is changed only in the ODBC source. Nothing changes in MyReport Data.
pennylane is the default database. To read practice_management, see Practice management.
Dates
%M is the month name in ClickHouse. This fails:
formatDateTime(now(), '%d/%m/%Y %H:%M:%S')
Use minutes (%i) and the Paris timezone:
formatDateTime(now('Europe/Paris'), '%d/%m/%Y %H:%i:%S')
Exports and the connection use UTF-8. An ANSI export fails.
Troubleshooting
| Symptom | Fix |
|---|---|
bad value 'true' for attribute 'SSLMode' | Set SSLMode to require. |
HTTP 404, There is no handle /… | Clear URL. Put the host in Host, with no https:// and no trailing /. |
| Timeout | Allow outbound HTTPS to datasharing.pennylane.com on port 443. If Data Sharing was just turned on, wait and retry. |
| Code 516, authentication failed | Type the user and password again in the ODBC source. |
Code 202, TOO_MANY_SIMULTANEOUS_QUERIES, maximum 3 | Each user can run 3 queries at once. Do not run two Pennylane ETLs, or another tool, with the same user. |
| The ClickHouse driver is missing from the list | You opened the 32-bit ODBC administrator. Open ODBC Data Sources (64-bit). |
If some companies are missing and Pennylane has given you a second host, create a second system DSN. Same user, port, and database.
Pennylane questions (access, password, host) go to your usual Pennylane contact. MyReport questions (the extension, the ETL) go to your usual MyReport contact.
Driver parameters: ClickHouse ODBC. Quotas: Limits.