Hi,
Could someone help why I'm having Error 210 on this script?
For info, I'm running the script using ArcGIS Notebook with ArcGIS Pro.
a *.dbf file has to go into a folder, If you want a geodatabase table, then a *.gdb needs to be specified
Your workspace name doesn't look right
Actually, my workspace is a folder. I named it specifically like that. And i tried to rename it as well but it's still not working.
Try a folder that is different, or "raw encode the folder path. Either the \U will make the path unusable, or the \n later on
p <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:\Users\jrm236admin\Documents\new\Hurricane\folder\hurricane_dbf.dbf"</SPAN> File <SPAN class="string token">"<ipython-input-1-e0812d7d099a>"</SPAN><SPAN class="punctuation token">,</SPAN> line <SPAN class="number token">1</SPAN> p <SPAN class="operator token">=</SPAN> <SPAN class="string token">"C:\Users\jrm236admin\Documents\new\Hurricane\folder\hurricane_dbf.dbf"</SPAN> <SPAN class="operator token">^</SPAN> SyntaxError<SPAN class="punctuation token">:</SPAN> <SPAN class="punctuation token">(</SPAN>unicode error<SPAN class="punctuation token">)</SPAN> <SPAN class="string token">'unicodeescape'</SPAN> codec can't decode bytes <SPAN class="keyword token">in</SPAN> position <SPAN class="number token">2</SPAN><SPAN class="operator token">-</SPAN><SPAN class="number token">3</SPAN><SPAN class="punctuation token">:</SPAN> truncated \UXXXXXXXX escape <SPAN class="comment token"># ---- raw encoded... a little 'r' goes a long way</SPAN> p <SPAN class="operator token">=</SPAN> r<SPAN class="string token">"C:\Users\jrm236admin\Documents\new\Hurricane\folder\hurricane_dbf.dbf"</SPAN> <SPAN class="keyword token">print</SPAN><SPAN class="punctuation token">(</SPAN>p<SPAN class="punctuation token">)</SPAN> C<SPAN class="punctuation token">:</SPAN>\Users\jrm236admin\Documents\new\Hurricane\folder\hurricane_dbf<SPAN class="punctuation token">.</SPAN>dbf<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
Thanks, Dan! But is there a way to raw encode the output with TableToTable function. It's asking for both the output path and output name. And there's no option to raw encode the output.
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.