Hello,
I try to access a Azure ML Dataset in python and get the following error message:
Execution failed in operation 'to_pandas_dataframe' for Dataset(id='[data.id]', name='[data.name]', version=1, error_code=ScriptExecution.DatabaseConnection.Unexpected,error_message=ScriptExecutionException was caused by DatabaseConnectionException.\n DatabaseConnectionException was caused by UnexpectedException.\n 'MSSQL' encountered unexpected exception of type 'AggregateException' with HResult 'x80131500' while opening connection to server ([REDACTED]), database ([REDACTED]).\n Failed due to inner exception of type: AggregateException\n| session_id=[session-id]) ErrorCode: ScriptExecution.DatabaseConnection.Unexpected
It is a Tabular Dataset created from a Azure SQL database datasource.
For the access from the studio to the database a service principal is used.
I can access all the resources mentioned above in the standard ui.
The "sample usage" in the "consume" tab of the dataset was used for accessing the dataset in python.
Regarding environments i tried python 3.6 and 3.8 locally and in a compute instance of the ML studio.
However the same error keeps coming.
I also tried to use sync-keys as described in this question:
https://learn.microsoft.com/en-us/answers/questions/644562/datasetto-pandas-dataframe-throws-a-scriptexecutio.html
Best Regards,
Gerhard