<?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: ArcEnterprise 10.8 Service Definition File Size Limit in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607919#M23391</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonah - yes thanks.&amp;nbsp; And yes, that's what I thought as well re SD files.&amp;nbsp; I'd never read anywhere about a size limit for those.&amp;nbsp; Yes, the largest attachment (in this case pdf's) is about 9.5Mb.&amp;nbsp; I like to work in the IDLE for Pro - here is a snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;stageSDDraft&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lyrName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;summary&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lyrs&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;descript&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;tags&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;sdfolder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 sddraft_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:/ArcProProjects/PortalUpdates/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; sdfolder &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyrName &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".sddraft"&lt;/SPAN&gt;
 draft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getWebLayerSharingDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"HOSTING_SERVER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FEATURE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyrName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyrs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;portalFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; folder
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tags &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tags
 &lt;SPAN class="comment token"&gt;##draft.allowExporting = True&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;summary &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; summary
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; descript
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteExistingService &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 portal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SignInToPortal&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://ags3.myorg.net/portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"userName_portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"userNamePw"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/PortalUpdates.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; m &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FloodAttachments"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Map: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 desc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ElevationCertificate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 lyrList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
 lyrList&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 stageSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; "The Elevation Certificate point layer contains the addresses of homes &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; businesses that have a documented finished floor elevation that &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; above the Effective \
 FEMA designated base flood elevation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;",lyrList,"&lt;/SPAN&gt;The Elevation Certificate point layer contains the addresses of homes &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; businesses that have documented finished floor elevation \
 that &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; above the Effective FEMA designated base flood elevation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; The certificate &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; accessed &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; a layer attachment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;"&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"EnvironmentalLayers"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Cadastral,Environmental,Services"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Environmental"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Draft Created"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;StageService_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sddraft'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sd'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Staged"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sd'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'My Hosted Services'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OVERRIDE_DEFINITION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHARE_ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PUBLIC"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"SHARE_ORGANIZATION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Uploaded"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 message &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; message &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1. "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Uploaded"&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's pretty straight-forward.&amp;nbsp; &amp;nbsp;However, you are probably right about there being another issue.&amp;nbsp; I have been overwriting this feature layer weekly for a couple of years because of how the attachments are constructed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachments are pulled in from another system of record and then we use a GP to dump them into another directory before attaching them to the points via a match table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to try setting this up with a new layer, new SD file, etc and see it works.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 02:01:32 GMT</pubDate>
    <dc:creator>DavidColey</dc:creator>
    <dc:date>2021-12-12T02:01:32Z</dc:date>
    <item>
      <title>ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607915#M23387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello - I don't think that this section from the Enterprise help&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="link-titled" href="https://enterprise.arcgis.com/en/portal/latest/use/manage-hosted-feature-layers.htm" title="https://enterprise.arcgis.com/en/portal/latest/use/manage-hosted-feature-layers.htm"&gt;Manage hosted feature layers—Portal for ArcGIS | Documentation for ArcGIS Enterprise&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;at 10.8 is entirely accurate:&lt;/P&gt;&lt;H6 style="color: #4c4c4c; background-color: #ffffff; font-weight: 300; font-size: 1.9994rem; margin: -145px 0px 1.55rem; padding-top: 175px;"&gt;"Allow attachments&lt;/H6&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;You can allow editors to attach images and other files to individual features in a layer in a hosted feature layer. This is useful, as it allows you to associate documentation or photos to specific, relevant features. For example, a code compliance officer might attach a photo of the code violation for a specific address point, or a building inspector might include a PDF of a permit for a building feature.&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;Each hosted feature layer view inherits the attachment setting of the hosted feature layer from which it was created. By default, all view users can see the attachments inherited from the hosted feature layer. To control who has access to these attachments, you can&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/latest/use/manage-hosted-feature-layers.htm#ESRI_SECTION2_7DD979D7969D403AAF08CD372197998C" style="color: #0074b8; text-decoration: none;"&gt;hide the attachments&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the hosted feature layer view.&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;&lt;STRONG style="text-decoration: underline; "&gt;Each file you attach to a feature can be a maximum size of 2 GB. To attach files larger than 2 GB&lt;/STRONG&gt;, you can use the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/upload-part.htm" style="color: #0074b8; text-decoration: none;" target="_blank"&gt;Upload Part&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://developers.arcgis.com/rest/services-reference/add-attachment.htm" style="color: #0074b8; text-decoration: none;" target="_blank"&gt;Add Attachment&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;operations from ArcGIS REST API to do a multipart upload. . . . . .&lt;STRONG&gt; "&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;What I have found is that when sharing or overwriting a hosted feature layer via the 2.5.x ArcGIS Pro sharing module to Enterprise 10..8, the &lt;STRONG&gt;maximum service definition file size&lt;/STRONG&gt; appears to be &lt;STRONG&gt;2GB.&amp;nbsp;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;In my case, I have a point layer with some 3600 records and pdf attachments.&amp;nbsp; The largest attachement is about 9MB.&amp;nbsp; However, the total size of the service definition file exceeds 2GB, and the sharing module overwrite now fails with a 99999.&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;Specifically, the:&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;## &lt;SPAN style="color: #ff0000;"&gt;arcpy.UploadServiceDefinition_server&lt;/SPAN&gt;('C:/ArcProProjects/PortalUpdates/Environmental/' + lyr.name + '.sd', 'My Hosted Services', "","","","","","OVERRIDE_DEFINITION","SHARE_ONLINE","PUBLIC",&lt;BR /&gt;## "SHARE_ORGANIZATION","")&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;fails because I think that the entire sd file size cannot exceed 2GB.&lt;/P&gt;&lt;P style="color: #4c4c4c; background-color: #ffffff; margin-bottom: 1.55rem;"&gt;Has anyone encountered this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jul 2020 17:32:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607915#M23387</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-09T17:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607916#M23388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Buen día &lt;A href="https://community.esri.com/migrated-users/8653"&gt;David Coley&lt;/A&gt;‌, proba subir en ventana incógnito de google chrome.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Saludos,&lt;/P&gt;&lt;P&gt;Anibal&amp;nbsp;&lt;/P&gt;&lt;P&gt;Telecom Argentina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 13:43:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607916#M23388</guid>
      <dc:creator>AnibalMmartinez</dc:creator>
      <dc:date>2020-07-13T13:43:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607917#M23389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Grasias Anibal - es posible.&amp;nbsp; Pero luego tendria que usar la api&amp;nbsp; . .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And I didn't really want to do that because the file does publish to AGOL using the Pro sharing module and I didn't want to have to re-write this part of my workflow unless necessary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 19:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607917#M23389</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-13T19:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607918#M23390</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm posting my response here as well to keep this post up-to-date. There&amp;nbsp;is no file size limit&amp;nbsp;for SD files. If your attachments are&amp;nbsp;below the 2GB file size limit and you still see an error, there is likely a different issue here. We would need to see your&amp;nbsp;python script to look into the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Jonah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jul 2020 21:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607918#M23390</guid>
      <dc:creator>JonahLay</dc:creator>
      <dc:date>2020-07-13T21:14:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607919#M23391</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonah - yes thanks.&amp;nbsp; And yes, that's what I thought as well re SD files.&amp;nbsp; I'd never read anywhere about a size limit for those.&amp;nbsp; Yes, the largest attachment (in this case pdf's) is about 9.5Mb.&amp;nbsp; I like to work in the IDLE for Pro - here is a snippet of my code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;def&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;stageSDDraft&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lyrName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;summary&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;lyrs&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;descript&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;folder&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;tags&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;sdfolder&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 sddraft_out &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:/ArcProProjects/PortalUpdates/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; sdfolder &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"/"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyrName &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;".sddraft"&lt;/SPAN&gt;
 draft &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getWebLayerSharingDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"HOSTING_SERVER"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"FEATURE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyrName&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyrs&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;portalFolder &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; folder
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;tags &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; tags
 &lt;SPAN class="comment token"&gt;##draft.allowExporting = True&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;summary &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; summary
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;description &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; descript
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteExistingService &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;
 draft&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;exportToSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;sddraft_out&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;return&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;try&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 portal &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;SignInToPortal&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"https://ags3.myorg.net/portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"userName_portal"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"userNamePw"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 aprx &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;mp&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ArcGISProject&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/PortalUpdates.aprx'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; m &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; aprx&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listMaps&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"FloodAttachments"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Map: "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; lyr &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 desc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;==&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'ElevationCertificate'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 lyrList &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;
 lyrList&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;append&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;listLayers&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 stageSDDraft&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;m&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; "The Elevation Certificate point layer contains the addresses of homes &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; businesses that have a documented finished floor elevation that &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; above the Effective \
 FEMA designated base flood elevation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;",lyrList,"&lt;/SPAN&gt;The Elevation Certificate point layer contains the addresses of homes &lt;SPAN class="operator token"&gt;and&lt;/SPAN&gt; businesses that have documented finished floor elevation \
 that &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; above the Effective FEMA designated base flood elevation&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt; The certificate &lt;SPAN class="keyword token"&gt;is&lt;/SPAN&gt; accessed &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; a layer attachment&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;"&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"EnvironmentalLayers"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Cadastral,Environmental,Services"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"Environmental"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Draft Created"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;StageService_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sddraft'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sd'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Staged"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;UploadServiceDefinition_server&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'C:/ArcProProjects/PortalUpdates/Environmental/'&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.sd'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'My Hosted Services'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"OVERRIDE_DEFINITION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"SHARE_ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"PUBLIC"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;
 &lt;SPAN class="string token"&gt;"SHARE_ORGANIZATION"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Uploaded"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
 message &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; message &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\n"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"1. "&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;lyr&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;" Service Uploaded"&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's pretty straight-forward.&amp;nbsp; &amp;nbsp;However, you are probably right about there being another issue.&amp;nbsp; I have been overwriting this feature layer weekly for a couple of years because of how the attachments are constructed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The attachments are pulled in from another system of record and then we use a GP to dump them into another directory before attaching them to the points via a match table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to try setting this up with a new layer, new SD file, etc and see it works.....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 02:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607919#M23391</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2021-12-12T02:01:32Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607920#M23392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you try the following as well? This might help us identify the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Try the same workflow from Pro UI instead of Python.&lt;/LI&gt;&lt;LI&gt;Try uploading the SD directly to portal from portal home app.&lt;/LI&gt;&lt;LI&gt;Check the logs on server while using Python script and share the logs, if possible.&amp;nbsp;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 15:37:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607920#M23392</guid>
      <dc:creator>ShilpiJain</dc:creator>
      <dc:date>2020-07-14T15:37:46Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607921#M23393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shilpi - I did try using the Pro UI with the same result.&amp;nbsp; 99999 fail code at the upload stage. I will try adding as an update later today.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jul 2020 16:50:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607921#M23393</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-14T16:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607922#M23394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the portal error i receive:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Failed to add or update item '1cab88c8bef743baab32716aa17e9724'. Error writing to file: D:\arcgisportal\content\items\1cab88c8bef743baab32716aa17e9724\FloodCert.sd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note this is an entirely new layer (but the same data and attachments) copied to my file gdb and added to my pro project's map and so in this case is not an overwrite but a new write.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i've got either a corrupt attachment or attachments or there are communication errors between my portal, server and datastore (although all components test correctly). So as &lt;A href="https://community.esri.com/migrated-users/340786"&gt;Jonah Lay&lt;/A&gt;‌ suggested earlier there are probably other issues going on with my environment or the layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, my org is really abusing the attachment capability.&amp;nbsp; I don't think attachments should replace a document search system or repository.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jul 2020 18:30:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607922#M23394</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-15T18:30:53Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607923#M23395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it turns out that this is a result of invalid characters in the attachment file name and some invalid attachment types&amp;nbsp; The Postgres datastore at 10.8 does not like certain characters in the name - Brackets, braces, dashes, periods can all cause issues.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this case some invalid email attachment types ".msg" and some period "." characters in the file names caused an 'Object Store Exception' error. Datastore thought that was the file name.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amazingly ArcGIS Online hosted this layer with no issue, i guess it's datastore can handle these things.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 19:40:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607923#M23395</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-23T19:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607924#M23396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;interesting development &lt;A href="https://community.esri.com/migrated-users/340786"&gt;Jonah Lay&lt;/A&gt; In this case, after removing bad naming conventions and invalid attachment types, the sd file will still not complete an overwrite with either the pro sharing module or the api.&amp;nbsp; The pro module fails with the same 5 9's code while the api featureLayerCollection.manager.overwrite(data_file=sdFile) method fails with&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expecting value: line 1 column 1 (char 0) after a certain amount of time. (@ 6 minutes on portal, ~ 21 minutes to agol)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this suggests a bad name or type of attachment, but if that were the case I would think the layer would fail it's .add and .publish when adding as a new layer.&amp;nbsp; On the other hand, there are issues with size and hosted feature layers:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUG-000127663 Exporting a hosted feature layer containing large attachments fails if the size of the&lt;BR /&gt;exported file geodatabase exceeds 2 GB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be clear, other service definition files / layers with attachments (with standard attachment names and types) that are less than 2Gb in size don't have any add, publish, overwrite or pro sharing module issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:35:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607924#M23396</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-07-28T14:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607925#M23397</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sad to say this is still an issue at Enterprise 10.8.1 and ArcGIS Online.&amp;nbsp; The:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sdFile = os.path.join(sdPath, "FemaElevationCert.sd") #item[:-4]&lt;/P&gt;&lt;P&gt;sdItem.update(data=sdFile)&amp;nbsp;&lt;/P&gt;&lt;P&gt;fs = sdItem.publish(overwrite=True)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;method continues to fail as does the overwrite method from the feature layer collection manager"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;portalFLC.manager.overwrite(sdFile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whatever it is, for sd files with attachments that are larger than 2Gb can be added and published as new items through the api, but cannot be overwritten.&amp;nbsp; The json error remains:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Expecting value: line 1 column 1 (char 0) after a certain amount of time. (@ 1 minute on portal, ~ 21 minutes on agol).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;A href="https://community.esri.com/migrated-users/380082"&gt;Jonah Lay&lt;/A&gt;‌ thought you might want to know&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 21:18:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607925#M23397</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-08-11T21:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607926#M23398</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I gave up on this.&amp;nbsp; I began by setting up a virtual directory in my IIS and tying that to a sever directory.&amp;nbsp; I pushed all my documents into the server directory and set up a link field in arcade.&amp;nbsp; If I need to link to more than one doc for any given feature, I'll use arcade for that too, most likely in a when statement.&amp;nbsp; Sure is alot easier than trying push all these attachments as part of an sd file to the datastore.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Aug 2020 18:37:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607926#M23398</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-08-26T18:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607927#M23399</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to successfully publish and overwrite an SD with attachments greater than 2GB from Pro using python window. I was also able to publish the data from scratch from Pro and also overwrite the same. I would suggest you contact Esri support and give your data, as well as the information about the errors/warning you see in the server logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Gayathri Vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2020 22:01:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607927#M23399</guid>
      <dc:creator>GayathriVijay</dc:creator>
      <dc:date>2020-09-15T22:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcEnterprise 10.8 Service Definition File Size Limit</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607928#M23400</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah I have done all that.&amp;nbsp; Naming convention of the pdf attachment documents becomes very important when the total size of the service definition file causes the file to upload the json in parts.&amp;nbsp; When a json part is encountered that contains some invalid character &lt;STRONG&gt;&lt;EM&gt;at the beginning of the part - like an ampersand,&lt;/EM&gt;&lt;/STRONG&gt;&amp;nbsp;the initial upload does not necessarily fail, but all of my overwrite attempts do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now that I understand that, I understand why my large service definition files with a 100s to 1000s of attachments, would fail upon overwrite, but not in the same place.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Sep 2020 17:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/arcenterprise-10-8-service-definition-file-size/m-p/607928#M23400</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2020-09-17T17:40:53Z</dc:date>
    </item>
  </channel>
</rss>

