<?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 Error Code 500 when attempting to retrieve attachments in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-code-500-when-attempting-to-retrieve/m-p/512437#M47752</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a point Featureclass in a dataset stored in SDE (SQL Server). The points have attachments enabled and pdf files of bridge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inspections attached. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Building off of the sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_popupfl.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_popupfl.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to display the points and display the attachments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I first tried to do this using a web page we use for a different application but the attachments returned an error even though the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proper name was displayed as being present as an attachment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I substituted my featurelayer in a local copy of the referenced sample, changed the field names and extents as appropriate. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on a bridge the proper field items and text display in the popup and the correct attachment displays under Attachments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet, similar to my first attempt, I am getting the following error when I click on the attachment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server Error - The remote server returned an error: (404) Not Found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is stored in ArcSDE, it's registered as versioned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Dec 2012 12:20:35 GMT</pubDate>
    <dc:creator>KeithGanzenmuller</dc:creator>
    <dc:date>2012-12-11T12:20:35Z</dc:date>
    <item>
      <title>Error Code 500 when attempting to retrieve attachments</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-code-500-when-attempting-to-retrieve/m-p/512437#M47752</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a point Featureclass in a dataset stored in SDE (SQL Server). The points have attachments enabled and pdf files of bridge&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;inspections attached. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Building off of the sample:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_popupfl.html" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples_start.htm#jssamples/widget_popupfl.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to display the points and display the attachments. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I first tried to do this using a web page we use for a different application but the attachments returned an error even though the&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;proper name was displayed as being present as an attachment. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I substituted my featurelayer in a local copy of the referenced sample, changed the field names and extents as appropriate. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I click on a bridge the proper field items and text display in the popup and the correct attachment displays under Attachments:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yet, similar to my first attempt, I am getting the following error when I click on the attachment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Error&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Server Error - The remote server returned an error: (404) Not Found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Code: 500&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The data is stored in ArcSDE, it's registered as versioned. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What am I missing?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks, &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 12:20:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-code-500-when-attempting-to-retrieve/m-p/512437#M47752</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2012-12-11T12:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error Code 500 when attempting to retrieve attachments</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-code-500-when-attempting-to-retrieve/m-p/512438#M47753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;OK, well, answered my own question. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, after poking around on the server I noticed the attachments were correctly downloaded and placed in the c:\arcgisserver\arcgisoutput folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So I went into server manager and noticed it had two arcgisoutput folders listed, one on the c: drive and one on the e: drive. Probably my error on install/re-install over the years.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The service actually pointed to the correct arcgisoutput folder where the pdf's were waiting so I investigated further and in IIS the virtual folder was pointing to the other, incorrect arcgisoutput folder. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I pointed IIS to the correct arcgisoutput folder and like magic the pdfs open when I click their name in the popup. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Keith&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Dec 2012 14:53:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-code-500-when-attempting-to-retrieve/m-p/512438#M47753</guid>
      <dc:creator>KeithGanzenmuller</dc:creator>
      <dc:date>2012-12-11T14:53:34Z</dc:date>
    </item>
  </channel>
</rss>

