<?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: Problems registering models via /api/2.0/mlflow/model-versions/create in Get Started Discussions</title>
    <link>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104010#M9413</link>
    <description>&lt;P&gt;The error happens because of how the source path is interpreted. Use the correct DBFS path format: dbfs:/Volumes/.... Avoid adding /dbfs redundantly, as it's already the DBFS root.&lt;/P&gt;&lt;H3&gt;Key Fixes:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;New Version Not Created&lt;/STRONG&gt;: Ensure each log_model call uses a unique run_id and updated model metadata to trigger versioning.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Required Parameters&lt;/STRONG&gt;: For REST API, include run_id (from the MLflow run) and source (DBFS path to the model artifact).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Example Payload&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;"name": "my_model_name",&lt;/DIV&gt;&lt;DIV&gt;"source": "dbfs:/Volumes/my-model-path/model",&lt;/DIV&gt;&lt;DIV&gt;"run_id": "1234567890abcdef"&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 03 Jan 2025 00:29:16 GMT</pubDate>
    <dc:creator>fmadeiro</dc:creator>
    <dc:date>2025-01-03T00:29:16Z</dc:date>
    <item>
      <title>Problems registering models via /api/2.0/mlflow/model-versions/create</title>
      <link>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104005#M9411</link>
      <description>&lt;P&gt;Initially, I tried registering while logging a model from mlflow and got:&lt;/P&gt;&lt;P&gt;"Got an invalid source 'dbfs:/Volumes/compute_integration_tests/default/compute-external-table-tests-models/test_artifacts/1078d04b4d4b4537bdf7a4b5e94e9e7f/artifacts/model'. Only DBFS locations are currently supported."&lt;/P&gt;&lt;P&gt;WAT?&lt;/P&gt;&lt;P&gt;I got this when trying to log a model and supply a model name.&amp;nbsp; I can also reproduce by calling the REST API directly.&lt;/P&gt;&lt;P&gt;After some trial and error, I found that using the source:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;'dbfs:/dbfs/Volumes/compute_integration_tests/default/compute-external-table-tests-models/test_artifacts/1078d04b4d4b4537bdf7a4b5e94e9e7f/artifacts/model'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;"worked".&lt;/P&gt;&lt;P&gt;But a new version never got created.&lt;/P&gt;&lt;P&gt;Also, the &lt;A href="https://docs.databricks.com/api/workspace/modelregistry/createmodel" target="_self"&gt;documentation&lt;/A&gt; doesn't mention the required &lt;FONT face="courier new,courier"&gt;run_id&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;source&lt;/FONT&gt; parameters.&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 22:05:15 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104005#M9411</guid>
      <dc:creator>unj1m</dc:creator>
      <dc:date>2025-01-02T22:05:15Z</dc:date>
    </item>
    <item>
      <title>Re: Problems registering models via /api/2.0/mlflow/model-versions/create</title>
      <link>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104006#M9412</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.databricks.com/t5/user/viewprofilepage/user-id/57127"&gt;@unj1m&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;The path should be in the format &lt;CODE&gt;dbfs:/Volumes/...&lt;/CODE&gt; without the extra &lt;CODE&gt;/dbfs&lt;/CODE&gt; prefix. The correct path should be: &lt;CODE&gt;
dbfs:/Volumes/compute_integration_tests/default/compute-external-table-tests-models/test_artifacts/1078d04b4d4b4537bdf7a4b5e94e9e7f/artifacts/model&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 02 Jan 2025 22:15:12 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104006#M9412</guid>
      <dc:creator>Alberto_Umana</dc:creator>
      <dc:date>2025-01-02T22:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Problems registering models via /api/2.0/mlflow/model-versions/create</title>
      <link>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104010#M9413</link>
      <description>&lt;P&gt;The error happens because of how the source path is interpreted. Use the correct DBFS path format: dbfs:/Volumes/.... Avoid adding /dbfs redundantly, as it's already the DBFS root.&lt;/P&gt;&lt;H3&gt;Key Fixes:&lt;/H3&gt;&lt;OL&gt;&lt;LI&gt;&lt;STRONG&gt;New Version Not Created&lt;/STRONG&gt;: Ensure each log_model call uses a unique run_id and updated model metadata to trigger versioning.&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Required Parameters&lt;/STRONG&gt;: For REST API, include run_id (from the MLflow run) and source (DBFS path to the model artifact).&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;STRONG&gt;Example Payload&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV&gt;{&lt;/DIV&gt;&lt;DIV&gt;"name": "my_model_name",&lt;/DIV&gt;&lt;DIV&gt;"source": "dbfs:/Volumes/my-model-path/model",&lt;/DIV&gt;&lt;DIV&gt;"run_id": "1234567890abcdef"&lt;/DIV&gt;&lt;DIV&gt;}&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Jan 2025 00:29:16 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104010#M9413</guid>
      <dc:creator>fmadeiro</dc:creator>
      <dc:date>2025-01-03T00:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems registering models via /api/2.0/mlflow/model-versions/create</title>
      <link>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104134#M9414</link>
      <description>&lt;P&gt;I know, right!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Look at the error message I posted:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"Got an invalid source 'dbfs:/Volumes/compute_integration_tests/default/compute-external-table-tests-models/test_artifacts/1078d04b4d4b4537bdf7a4b5e94e9e7f/artifacts/model'. Only DBFS locations are currently supported."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Adding the /dbfs was necessary to make it work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Jan 2025 19:03:21 GMT</pubDate>
      <guid>https://community.databricks.com/t5/get-started-discussions/problems-registering-models-via-api-2-0-mlflow-model-versions/m-p/104134#M9414</guid>
      <dc:creator>unj1m</dc:creator>
      <dc:date>2025-01-03T19:03:21Z</dc:date>
    </item>
  </channel>
</rss>

