<?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 Model Builder - Scheduled Task with Secured Service in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-scheduled-task-with-secured-service/m-p/1538697#M88284</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am am running a simple model that uses a secured feature layer and exports its features to GeoJson.&lt;/P&gt;&lt;P&gt;I can run the model in ArcGIS Pro Modelbuilder and everything works as expected.&lt;/P&gt;&lt;P&gt;If I convert that model to run as a scheduled task, nothing happens.&amp;nbsp; &amp;nbsp;No errors either.&lt;/P&gt;&lt;P&gt;I have access to the secured feature layer via my AD login so I thought maybe I needed to run the task with my credentials but still no luck.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to add reference to my ArcGIS Pro project to the script knows how to find the layer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mele&lt;/P&gt;</description>
    <pubDate>Sat, 14 Sep 2024 20:12:13 GMT</pubDate>
    <dc:creator>MeleKoneya</dc:creator>
    <dc:date>2024-09-14T20:12:13Z</dc:date>
    <item>
      <title>Model Builder - Scheduled Task with Secured Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-scheduled-task-with-secured-service/m-p/1538697#M88284</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am am running a simple model that uses a secured feature layer and exports its features to GeoJson.&lt;/P&gt;&lt;P&gt;I can run the model in ArcGIS Pro Modelbuilder and everything works as expected.&lt;/P&gt;&lt;P&gt;If I convert that model to run as a scheduled task, nothing happens.&amp;nbsp; &amp;nbsp;No errors either.&lt;/P&gt;&lt;P&gt;I have access to the secured feature layer via my AD login so I thought maybe I needed to run the task with my credentials but still no luck.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;Do I need to add reference to my ArcGIS Pro project to the script knows how to find the layer?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Mele&lt;/P&gt;</description>
      <pubDate>Sat, 14 Sep 2024 20:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-scheduled-task-with-secured-service/m-p/1538697#M88284</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2024-09-14T20:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder - Scheduled Task with Secured Service</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/model-builder-scheduled-task-with-secured-service/m-p/1538849#M88306</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/6782"&gt;@MeleKoneya&lt;/a&gt;&amp;nbsp;I would recommend exporting the Model to a python script.&amp;nbsp; Then, in the script, add the following line:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;arcpy.SignInToPortal("https://webadaptorhost.domain.com/webadaptorname", 
                     'username@DOMAIN', 'password')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;If the script executes successfully, you can easily schedule this as well.&amp;nbsp; Check out the document &lt;A href="https://community.esri.com/t5/python-documents/schedule-a-python-script-using-windows-task/ta-p/915861" target="_self"&gt;here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Sep 2024 12:45:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/model-builder-scheduled-task-with-secured-service/m-p/1538849#M88306</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2024-09-16T12:45:30Z</dc:date>
    </item>
  </channel>
</rss>

