<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How can I fix this error. ExecutionError: An error occurred while calling o392.mount: java.lang. in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/121797#M46552</link>
    <description>&lt;P&gt;I was using databricks scopes, to get the key which was used in the the config. I received a similar mount error while mounting with "wasbs" driver,&amp;nbsp; "&lt;SPAN class=""&gt;ExecutionError: &lt;/SPAN&gt;&lt;SPAN&gt;An error occurred while calling o427.mount.&lt;/SPAN&gt;", this was the issue because the scope was not defined correctly, after creating a new scope it solved the error.&lt;/P&gt;&lt;P&gt;If the requirement is not using scopes, a simple script like this worked for me&lt;/P&gt;&lt;LI-CODE lang="python"&gt;container_name = "&amp;lt;container_name&amp;gt;"
storage_account = "&amp;lt;storage_account&amp;gt;"

url = "wasbs://" + container_name + "@" + storage_account + ".blob.core.windows.net/"
config = "fs.azure.account.key." + storage_account + ".blob.core.windows.net"
key = "&amp;lt;storage_account_key&amp;gt;"

mount_folder = "/mnt/newmnt"
dbutils.fs.mount(source = url, mount_point = mount_folder, extra_configs = {config : key})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 15 Jun 2025 02:20:55 GMT</pubDate>
    <dc:creator>Nikhill</dc:creator>
    <dc:date>2025-06-15T02:20:55Z</dc:date>
    <item>
      <title>How can I fix this error. ExecutionError: An error occurred while calling o392.mount: java.lang.NullPointerException</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/2675#M9</link>
      <description>&lt;P&gt;Hello, I'm trying to mount my Databricks to my Azure gen 2 data lake to read in data from the container, but I get an error when executing this line of code: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dbutils.fs.mount(
source = "abfss://resumes@choisysresume.dfs.core.windows.net/",
mount_point = "/mnt/resumeSharepointdata", extra_configs = configs)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The error I get is: (Note: The "redacted" is me taking out sensitive information)&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;---------------------------------------------------------------------------
ExecutionError                            Traceback (most recent call last)
File &amp;lt;command-739828508581633&amp;gt;:10
      1 #Granting Access and mounting the input to the storage
      3 configs = {"fs.azure.account.auth.type": "OAuth",
      4        "fs.azure.account.oauth.provider.type": "org.apache.hadoop.fs.azurebfs.oauth2.ClientCredsTokenProvider",
      5        "fs.azure.account.oauth2.client.id": "redacted",
      6        "fs.azure.account.oauth2.client.secret": "redacted",
      7        "fs.azure.account.oauth2.client.endpoint": "https://login.microsoftonline.com/redacted/oauth2/token",
      8        "fs.azure.createRemoteFileSystemDuringInitialization": "true"}
---&amp;gt; 10 dbutils.fs.mount(
     11 source = "abfss://resumes@redacted.dfs.core.windows.net/",
     12 mount_point = "/mnt/resumeSharepointdata", extra_configs = configs)
&amp;nbsp;
File /databricks/python_shell/dbruntime/dbutils.py:362, in DBUtils.FSHandler.prettify_exception_message.&amp;lt;locals&amp;gt;.f_with_exception_handling(*args, **kwargs)
    360 exc.__context__ = None
    361 exc.__cause__ = None
--&amp;gt; 362 raise exc
&amp;nbsp;
ExecutionError: An error occurred while calling o392.mount.
: java.lang.NullPointerException
	at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.oauth2.AzureADAuthenticator.getTokenCall(AzureADAuthenticator.java:320)
	at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.oauth2.AzureADAuthenticator.getTokenCall(AzureADAuthenticator.java:287)
	at shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.oauth2.AzureADAuthenticator.getTokenUsingClientCreds(AzureADAuthenticator.java:110)
	at com.databricks.backend.daemon.dbutils.DBUtilsCore.verifyAzureOAuth(DBUtilsCore.scala:1092)
	at com.databricks.backend.daemon.dbutils.DBUtilsCore.verifyAzureFileSystem(DBUtilsCore.scala:1104)
	at com.databricks.backend.daemon.dbutils.DBUtilsCore.createOrUpdateMount(DBUtilsCore.scala:988)
	at com.databricks.backend.daemon.dbutils.DBUtilsCore.$anonfun$mount$1(DBUtilsCore.scala:1036)
	at com.databricks.logging.UsageLogging.$anonfun$recordOperation$1(UsageLogging.scala:555)
	at com.databricks.logging.UsageLogging.executeThunkAndCaptureResultTags$1(UsageLogging.scala:650)
	at com.databricks.logging.UsageLogging.$anonfun$recordOperationWithResultTags$4(UsageLogging.scala:671)
	at com.databricks.logging.UsageLogging.$anonfun$withAttributionContext$1(UsageLogging.scala:412)
	at scala.util.DynamicVariable.withValue(DynamicVariable.scala:62)
	at com.databricks.logging.AttributionContext$.withValue(AttributionContext.scala:158)
	at com.databricks.logging.UsageLogging.withAttributionContext(UsageLogging.scala:410)
	at com.databricks.logging.UsageLogging.withAttributionContext$(UsageLogging.scala:407)
	at com.databricks.backend.daemon.dbutils.FSUtils.withAttributionContext(DBUtilsCore.scala:68)
	at com.databricks.logging.UsageLogging.withAttributionTags(UsageLogging.scala:455)
	at com.databricks.logging.UsageLogging.withAttributionTags$(UsageLogging.scala:440)
	at com.databricks.backend.daemon.dbutils.FSUtils.withAttributionTags(DBUtilsCore.scala:68)
	at com.databricks.logging.UsageLogging.recordOperationWithResultTags(UsageLogging.scala:645)
	at com.databricks.logging.UsageLogging.recordOperationWithResultTags$(UsageLogging.scala:564)
	at com.databricks.backend.daemon.dbutils.FSUtils.recordOperationWithResultTags(DBUtilsCore.scala:68)
	at com.databricks.logging.UsageLogging.recordOperation(UsageLogging.scala:555)
	at com.databricks.logging.UsageLogging.recordOperation$(UsageLogging.scala:525)
	at com.databricks.backend.daemon.dbutils.FSUtils.recordOperation(DBUtilsCore.scala:68)
	at com.databricks.backend.daemon.dbutils.FSUtils.recordDbutilsFsOp(DBUtilsCore.scala:132)
	at com.databricks.backend.daemon.dbutils.DBUtilsCore.mount(DBUtilsCore.scala:1030)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:244)
	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:380)
	at py4j.Gateway.invoke(Gateway.java:306)
	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:132)
	at py4j.commands.CallCommand.execute(CallCommand.java:79)
	at py4j.ClientServerConnection.waitForCommands(ClientServerConnection.java:195)
	at py4j.ClientServerConnection.run(ClientServerConnection.java:115)
	at java.lang.Thread.run(Thread.java:750)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the problem here? How could I go about fixing it? &lt;/P&gt;</description>
      <pubDate>Fri, 23 Jun 2023 14:29:42 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/2675#M9</guid>
      <dc:creator>Anotech</dc:creator>
      <dc:date>2023-06-23T14:29:42Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix this error. ExecutionError: An error occurred while calling o392.mount: java.lang.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/35342#M25880</link>
      <description>&lt;P&gt;checked it with my mount script and that is exactly the same except that I do not put a '/' after dfs.core.windows.net&lt;BR /&gt;You might wanna try that.&lt;BR /&gt;Also, is Unity enabled?&amp;nbsp; Because Unity does not allow mounts.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Jun 2023 12:00:22 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/35342#M25880</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-06-27T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix this error. ExecutionError: An error occurred while calling o392.mount: java.lang.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/53978#M29949</link>
      <description>&lt;P&gt;I have got same error. Plz can you show how to check if Unity enabled or not?&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2023 15:49:48 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/53978#M29949</guid>
      <dc:creator>endan</dc:creator>
      <dc:date>2023-11-27T15:49:48Z</dc:date>
    </item>
    <item>
      <title>Re: How can I fix this error. ExecutionError: An error occurred while calling o392.mount: java.lang.</title>
      <link>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/121797#M46552</link>
      <description>&lt;P&gt;I was using databricks scopes, to get the key which was used in the the config. I received a similar mount error while mounting with "wasbs" driver,&amp;nbsp; "&lt;SPAN class=""&gt;ExecutionError: &lt;/SPAN&gt;&lt;SPAN&gt;An error occurred while calling o427.mount.&lt;/SPAN&gt;", this was the issue because the scope was not defined correctly, after creating a new scope it solved the error.&lt;/P&gt;&lt;P&gt;If the requirement is not using scopes, a simple script like this worked for me&lt;/P&gt;&lt;LI-CODE lang="python"&gt;container_name = "&amp;lt;container_name&amp;gt;"
storage_account = "&amp;lt;storage_account&amp;gt;"

url = "wasbs://" + container_name + "@" + storage_account + ".blob.core.windows.net/"
config = "fs.azure.account.key." + storage_account + ".blob.core.windows.net"
key = "&amp;lt;storage_account_key&amp;gt;"

mount_folder = "/mnt/newmnt"
dbutils.fs.mount(source = url, mount_point = mount_folder, extra_configs = {config : key})&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jun 2025 02:20:55 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/how-can-i-fix-this-error-executionerror-an-error-occurred-while/m-p/121797#M46552</guid>
      <dc:creator>Nikhill</dc:creator>
      <dc:date>2025-06-15T02:20:55Z</dc:date>
    </item>
  </channel>
</rss>

