Can you please take a look at this demo and let me know why I am not able to create new feature class from a shapefile based on selecting by attribute and saving the new future in a Geodatabase?
The file is adding to the GDB but it is empty on attributes and geometry
<SPAN class="comment token"># Import arcpy module</SPAN>
<SPAN class="keyword token">import</SPAN> arcpy
<SPAN class="comment token"># Local variables:</SPAN>
Dataset <SPAN class="operator token">=</SPAN> <SPAN class="string token">"D:\\GIS\\TPK\\src\\New Folder\\lui.gdb\\Dataset"</SPAN>
Louisiana <SPAN class="operator token">=</SPAN> <SPAN class="string token">"Louisiana"</SPAN>
Louisiana__3_ <SPAN class="operator token">=</SPAN> Louisiana
mm <SPAN class="operator token">=</SPAN> <SPAN class="string token">"D:\\GIS\\TPK\\src\\New Folder\\lui.gdb\\Dataset\\mm"</SPAN>
<SPAN class="comment token"># Process: Select Layer By Attribute</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>SelectLayerByAttribute_management<SPAN class="punctuation token">(</SPAN>Louisiana<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"NEW_SELECTION"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"\"NAME_2\" = 'Acadia'"</SPAN><SPAN class="punctuation token">)</SPAN>
<SPAN class="comment token"># Process: Create Feature Class</SPAN>
arcpy<SPAN class="punctuation token">.</SPAN>CreateFeatureclass_management<SPAN class="punctuation token">(</SPAN>Dataset<SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"mm"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"POLYGON"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"Louisiana"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"DISABLED"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN class="string token">"DISABLED"</SPAN><SPAN class="punctuation token">,</SPAN> <SPAN