<?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: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters' in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598331#M73942</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/850823"&gt;@eallan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;A couple of things to try...&lt;/P&gt;&lt;P&gt;You are using sddraft.targetFolder, try switch to portalFolder (I dont see targetFolder in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank" rel="noopener"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Remove sddraft.targetServer (you're already signing into AGOL, it knows where to go, and I don't see targetServer in the docs)&lt;/P&gt;&lt;P&gt;You can also try removing the arcpy.SignInToPortal() and just be already signed into AGOL in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;This &lt;A href="https://learn.finaldraftmapping.com/publish-a-hosted-feature-service-to-arcgis-online-from-arcgis-pro-using-arcpy/" target="_blank" rel="noopener"&gt;blog post&lt;/A&gt; details publishing from ArcGIS Pro with ArcPy.&lt;/P&gt;&lt;P&gt;And here's some other community posts that might be helpful:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/overwrite-web-layer/m-p/1595870#M73922" target="_blank"&gt;Solved: Overwrite Web Layer - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067" target="_blank"&gt;Automate overwrite web layer, feature class - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
    <pubDate>Sun, 23 Mar 2025 11:08:23 GMT</pubDate>
    <dc:creator>Clubdebambos</dc:creator>
    <dc:date>2025-03-23T11:08:23Z</dc:date>
    <item>
      <title>sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598181#M73940</link>
      <description>&lt;P&gt;I am trying to write a Notebook/Python script that will:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;select certain records from an SQL Server&lt;/LI&gt;&lt;LI&gt;then export to a File GDB Table&lt;/LI&gt;&lt;LI&gt;then I run the XY Table To Point tool to create a Feature Class from the File GDB Table&lt;/LI&gt;&lt;LI&gt;then complete an Overwrite Web Layer, which is in our ArcGIS Online account&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I was able to publish the original web layer and also overwrite it manually via mouse and keyboard in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;My script will complete steps 1-3, but at step 4 I am getting this error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'dict' object has no attribute '_validateParameters'&lt;/PRE&gt;&lt;P&gt;Libraries and Modules I have uploaded:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_0-1742588449214.png" style="width: 736px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128488i07EBF1D6E875037D/image-dimensions/736x89?v=v2" width="736" height="89" role="button" title="eallan_0-1742588449214.png" alt="eallan_0-1742588449214.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Error can also be seen at the bottom of this screenshot (screenshot is also attached, incase this one is showing up too blurry) of my Notebook:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-21 121843.jpg" style="width: 735px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128482i60A7CBE993011DF8/image-dimensions/735x1238?v=v2" width="735" height="1238" role="button" title="Screenshot 2025-03-21 121843.jpg" alt="Screenshot 2025-03-21 121843.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have filled in the Name, Summary, and Tags (required items in order to publish or overwrite a web layer) for my map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_3-1742587174844.png" style="width: 718px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128487iDC117D52D6BE836E/image-dimensions/718x584?v=v2" width="718" height="584" role="button" title="eallan_3-1742587174844.png" alt="eallan_3-1742587174844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I complete steps 1-3 above in my Notebook, those required items stay in place for the Map:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_0-1742586467593.png" style="width: 716px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128484iCC2D30DB91C9F512/image-dimensions/716x338?v=v2" width="716" height="338" role="button" title="eallan_0-1742586467593.png" alt="eallan_0-1742586467593.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I complete steps 1-3, the required items in the Feature Class will disappear, not sure if I need those required items in the Feature Class when I do a Share &amp;gt; Publish Web Layer / Overwrite Web Layer:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_1-1742586818851.png" style="width: 735px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128485i9C41AF24381D354A/image-dimensions/735x418?v=v2" width="735" height="418" role="button" title="eallan_1-1742586818851.png" alt="eallan_1-1742586818851.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone know have an idea of why I am having this issue? Or could help point me in the right direction of Help Documentation?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 20:22:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598181#M73940</guid>
      <dc:creator>eallan</dc:creator>
      <dc:date>2025-03-21T20:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598253#M73941</link>
      <description>&lt;P&gt;that's strange, it all looks correct.&amp;nbsp; have you tried removing the tags, desc, summary etc?&amp;nbsp; May be some issue with overwriting those - ie. work your way through the sddraft parameters.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 22:17:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598253#M73941</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-03-21T22:17:18Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598331#M73942</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/850823"&gt;@eallan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;A couple of things to try...&lt;/P&gt;&lt;P&gt;You are using sddraft.targetFolder, try switch to portalFolder (I dont see targetFolder in the &lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/sharing/featuresharingdraft-class.htm" target="_blank" rel="noopener"&gt;docs&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;Remove sddraft.targetServer (you're already signing into AGOL, it knows where to go, and I don't see targetServer in the docs)&lt;/P&gt;&lt;P&gt;You can also try removing the arcpy.SignInToPortal() and just be already signed into AGOL in ArcGIS Pro.&lt;/P&gt;&lt;P&gt;This &lt;A href="https://learn.finaldraftmapping.com/publish-a-hosted-feature-service-to-arcgis-online-from-arcgis-pro-using-arcpy/" target="_blank" rel="noopener"&gt;blog post&lt;/A&gt; details publishing from ArcGIS Pro with ArcPy.&lt;/P&gt;&lt;P&gt;And here's some other community posts that might be helpful:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/overwrite-web-layer/m-p/1595870#M73922" target="_blank"&gt;Solved: Overwrite Web Layer - Esri Community&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067" target="_blank"&gt;Automate overwrite web layer, feature class - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All the best,&lt;/P&gt;&lt;P&gt;Glen&lt;/P&gt;</description>
      <pubDate>Sun, 23 Mar 2025 11:08:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598331#M73942</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-03-23T11:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598819#M73948</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;for all that info, truly appreciated!&lt;/P&gt;&lt;P&gt;I commented out the&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;sddraft.targetServer = target_server_connection&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_3-1742859312185.png" style="width: 983px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128598i10CFE67672B1D7F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="eallan_3-1742859312185.png" alt="eallan_3-1742859312185.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And now I'm getting this new error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ValueError&lt;/SPAN&gt;: Service and/or folder name contains unsupported characters: ' '&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm thinking it's because of the spaces in my project title and gdb title?:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="eallan_4-1742859493449.png" style="width: 977px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128600iC310ADD75E26CAFF/image-size/large?v=v2&amp;amp;px=999" role="button" title="eallan_4-1742859493449.png" alt="eallan_4-1742859493449.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 23:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598819#M73948</guid>
      <dc:creator>eallan</dc:creator>
      <dc:date>2025-03-24T23:45:58Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598835#M73949</link>
      <description>&lt;P&gt;Thank you very much for the help&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I commented out all the credits, description, summary, tags, use limitations, and server folder. I was able to get that cell to complete, which was the one originally giving me the error:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;'dict' object has no attribute '_validateParameters'&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then the next cell is still giving me this error now:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Start Staging
Sddraft not staged. Analyzer errors encountered - Failed to execute. Parameters are not valid.
ERROR 000814: Invalid file type
ERROR 000814: Invalid file type
Failed to execute (StageService).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what it looks like on my notebook for the commenting out of the parameters and the new error code I am getting:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2025-03-24 170015.jpg" style="width: 987px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/128601i600CB70E4473CC37/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot 2025-03-24 170015.jpg" alt="Screenshot 2025-03-24 170015.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Going to also see if creating a new project with no spaces in the title and no spaces in the .gdb title might fix it. I did the suggestion Clubdebambos said of just removing&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;sddraft.targetServer&lt;/STRONG&gt;&lt;/EM&gt; and I left everything else the same in the script (like in my original post) and I got this error (I also shared it in my reply to his response):&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class=""&gt;ValueError&lt;/SPAN&gt;: Service and/or folder name contains unsupported characters: ' '&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 00:20:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598835#M73949</guid>
      <dc:creator>eallan</dc:creator>
      <dc:date>2025-03-25T00:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598840#M73950</link>
      <description>&lt;P&gt;Yes I'd remove any spaces from the service name.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 00:37:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598840#M73950</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2025-03-25T00:37:19Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598874#M73951</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/850823"&gt;@eallan&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;It looks like you are placing the sddraft_output_filename and your sd_output_filename in your file geodatabase. It more than likely doesn't like the '.' (dot)&lt;/P&gt;&lt;P&gt;Set these to another folder that is not a .gdb&lt;/P&gt;&lt;P&gt;After that, if not working, test commenting out sddraft.serverFolder (or replace for sddraft.portalFolder)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 08:20:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1598874#M73951</guid>
      <dc:creator>Clubdebambos</dc:creator>
      <dc:date>2025-03-25T08:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: sddraft.exportSDDraft() spitting out error: 'dict' object has no attribute '_validateParameters'</title>
      <link>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1599537#M73961</link>
      <description>&lt;P&gt;That was the fix&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/417766"&gt;@Clubdebambos&lt;/a&gt;&amp;nbsp;! Thank you so much for helping me find the issue and correction for it. I ended up figuring this out yesterday after I spent a couple hours going through my code (ahhhh!) when I should of just checked back here and looked at your response ha.&lt;/P&gt;&lt;P&gt;I got my Notebook to work now, and also got it working as a Toolbox Script when I manually run it, but now I'm having issues with it not working when I schedule it, keep getting:&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;ERROR 000464: Cannot get exclusive schema lock.  Either being edited or in use by another application or service.
Failed to execute (ExportTable).&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I might have to do another community post for this new issue if I can't figure it out by the end of the day.&lt;/P&gt;&lt;P&gt;Appreciate your help again. Have a good day.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 17:12:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sddraft-exportsddraft-spitting-out-error-dict/m-p/1599537#M73961</guid>
      <dc:creator>eallan</dc:creator>
      <dc:date>2025-03-26T17:12:00Z</dc:date>
    </item>
  </channel>
</rss>

