<?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 How to add a database .sde file as a Datastore ? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-a-database-sde-file-as-a-datastore/m-p/1692028#M11890</link>
    <description>&lt;P&gt;I can create a new data store item for an sde file interactively via the wizard.&lt;/P&gt;&lt;P&gt;The wizard asks some other questions that I presume needs to be included in the ItemProperties in the add method, like a list of federated servers, and the "same as publisher" option.&lt;/P&gt;&lt;P&gt;The item this code creates has "unavailable" when I look at the federated servers list in the item's properties...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder: Folder = [x for x in user.folders 
                  if x.name == 'datastores'][0]
item_props = ItemProperties(
    title="new_datastore_item",
    item_type=ItemTypeEnum.DATA_STORE,
    tags=["tag1"],
    snippet="Demo datastore item item added from Python API"
    # properties= "somehow a list of federated servers?"    
)

add_job = folder.add(
    item_properties=item_props, 
    file=r"C:\temp\test.sde"
)

print(type(add_job))
item = add_job.result()
print(item)
print(type(item.get_data()))
print(item.get_data())
#prints 
# &amp;lt;class 'arcgis.gis._impl._content_manager.folder.core.Job'&amp;gt;
# &amp;lt;Item title:"new_datastore_item" type:Data Store owner:portaladmin&amp;gt;
# &amp;lt;class 'str'&amp;gt;
# C:\Users\KKUYKE~1\AppData\Local\Temp\test.sde

#status of all federated servers in item settings is "unavailable"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 23 Mar 2026 19:36:55 GMT</pubDate>
    <dc:creator>KirkKuykendall1</dc:creator>
    <dc:date>2026-03-23T19:36:55Z</dc:date>
    <item>
      <title>How to add a database .sde file as a Datastore ?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-a-database-sde-file-as-a-datastore/m-p/1692028#M11890</link>
      <description>&lt;P&gt;I can create a new data store item for an sde file interactively via the wizard.&lt;/P&gt;&lt;P&gt;The wizard asks some other questions that I presume needs to be included in the ItemProperties in the add method, like a list of federated servers, and the "same as publisher" option.&lt;/P&gt;&lt;P&gt;The item this code creates has "unavailable" when I look at the federated servers list in the item's properties...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;folder: Folder = [x for x in user.folders 
                  if x.name == 'datastores'][0]
item_props = ItemProperties(
    title="new_datastore_item",
    item_type=ItemTypeEnum.DATA_STORE,
    tags=["tag1"],
    snippet="Demo datastore item item added from Python API"
    # properties= "somehow a list of federated servers?"    
)

add_job = folder.add(
    item_properties=item_props, 
    file=r"C:\temp\test.sde"
)

print(type(add_job))
item = add_job.result()
print(item)
print(type(item.get_data()))
print(item.get_data())
#prints 
# &amp;lt;class 'arcgis.gis._impl._content_manager.folder.core.Job'&amp;gt;
# &amp;lt;Item title:"new_datastore_item" type:Data Store owner:portaladmin&amp;gt;
# &amp;lt;class 'str'&amp;gt;
# C:\Users\KKUYKE~1\AppData\Local\Temp\test.sde

#status of all federated servers in item settings is "unavailable"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2026 19:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-add-a-database-sde-file-as-a-datastore/m-p/1692028#M11890</guid>
      <dc:creator>KirkKuykendall1</dc:creator>
      <dc:date>2026-03-23T19:36:55Z</dc:date>
    </item>
  </channel>
</rss>

