net.ucanaccess.jdbc.UcanaccessSQLException: UCAExc:::5.0.1 user lacks privilege or object not found: full questionnaire in statement [SELECT * FROM "full questionnaire" WHERE 1=0]

valdereo
New Contributor

I have followed the steps given here to parse .accdb files using ucanaccess on Azure Databricks, however, I receive errors.

See below my code:

# Connection properties
conn_properties = {"driver" : "net.ucanaccess.jdbc.UcanaccessDriver"}
 
# Path
url = "jdbc:ucanaccess:///dbfs/mnt/dropzone/xyx.accdb"
 
# Table
dbtable = "full questionnaire"
 
# Dataframe
df_accdb = spark.read.jdbc(url = url, table = dbtable, properties = conn_properties)
 
df_accdb.printSchema()

Below is a screenshot of the error message:

net.ucanaccess.jdbc.UcanaccessSQLException_ UCAExc___5.0.1 user lacks privilege or object not found_ full questionnaire in statement [SELECT _ FROM  "full questionnaire" WHERE 1=0] 

Any tips on how I can resolve this issue?

Thanks in advance!