<?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: AttributeError: 'module' object has no attribute 'CreateFileGDB_Management' in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute/m-p/402116#M10729</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sophia,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This forum is specifically for ArcObjects but your question is related to Python and ArcPy, you want to be posting such questions in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/117-Python"&gt;this&lt;/A&gt;&lt;SPAN&gt; section of the forum and not here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that your error is due to a simple syntax mistake. You wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFileGDB_Management(root_directory, terminal_db)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what you should have written is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFileGDB_&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;&lt;STRONG&gt;m&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;anagement(root_directory, terminal_db)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this error can be fixed by changing exactly 1 character!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Jun 2014 17:32:15 GMT</pubDate>
    <dc:creator>DuncanHornby</dc:creator>
    <dc:date>2014-06-14T17:32:15Z</dc:date>
    <item>
      <title>AttributeError: 'module' object has no attribute 'CreateFileGDB_Management'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute/m-p/402115#M10728</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting this error, and don't understand why.&amp;nbsp; Here's my code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import ArcPy site-package and os modules
import os
import sys
import arcpy

#Set variables
root_directory ="C:\\Users\\Me\\Documents\\ArcGIS\\Test2\\"
arcpy.env.workspace = root_directory

#Create Terminal clips gdb
terminal_db = "2014-05 Terminal Clips.gdb"
arcpy.CreateFileGDB_Management(root_directory, terminal_db)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried removing the trailing "\\" from root_directory and also replacing the root_directory and terminal_db variables with the string literals, but still get the same results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I googled the error, and it looks like it means that CreateFileGDB_Management doesn't exist.&amp;nbsp; People had the attribute error for other classes/functions and the problem was that it was spelled incorrectly or the capitalization was off.&amp;nbsp; However, I copied this directly from &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//018s0000000v000000" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resources.arcgis.com/en/help/main/10.2/index.html#//018s0000000v000000&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp; I am using arcGIS 10.2, for the record.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 18:19:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute/m-p/402115#M10728</guid>
      <dc:creator>SophiaCarter</dc:creator>
      <dc:date>2021-12-11T18:19:57Z</dc:date>
    </item>
    <item>
      <title>Re: AttributeError: 'module' object has no attribute 'CreateFileGDB_Management'</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute/m-p/402116#M10729</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sophia,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This forum is specifically for ArcObjects but your question is related to Python and ArcPy, you want to be posting such questions in &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/forums/117-Python"&gt;this&lt;/A&gt;&lt;SPAN&gt; section of the forum and not here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Having said that your error is due to a simple syntax mistake. You wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFileGDB_Management(root_directory, terminal_db)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what you should have written is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.CreateFileGDB_&lt;/SPAN&gt;&lt;SPAN style="color:#ff0000;"&gt;&lt;STRONG&gt;m&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;anagement(root_directory, terminal_db)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So this error can be fixed by changing exactly 1 character!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Duncan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Jun 2014 17:32:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/attributeerror-module-object-has-no-attribute/m-p/402116#M10729</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2014-06-14T17:32:15Z</dc:date>
    </item>
  </channel>
</rss>

