<?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: String or Binary data would be truncated Error! in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791940#M8443</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is definitely with the last substr(), but the formula is supposed to take the first four digits of the LAT and LONG fields,not including decimals and -, therefore&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;substr(${LONG}, 3, 5) will not work. I am looking into discussing with my colleagues to see if we can choose another combination of characters for this special ID (PDD_ID).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Sep 2019 18:01:14 GMT</pubDate>
    <dc:creator>EricaSummers</dc:creator>
    <dc:date>2019-09-12T18:01:14Z</dc:date>
    <item>
      <title>String or Binary data would be truncated Error!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791938#M8441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a survey for our forestry department and keep getting this error when I test the survey. The Calculation that is giving me trouble is:&amp;nbsp;concat(substr(${LAT},0,2),substr(${LAT}, 3,5),substr(${LONG},1,4),substr(${LONG},5)).&amp;nbsp; PDD_ID is a unique identifier for the department and is how they identify the area or block they are surveying.&lt;/P&gt;&lt;P&gt;Typically the error arises when I added in the last Substr. In and of itself, the substring calculations work as do the concatenations. It seems as though the error is happening when they are combined.&amp;nbsp;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/459245_error.PNG" /&gt;&lt;/P&gt;&lt;P&gt;What I have done:&lt;BR /&gt;I have lengthened all fields to an appropriate size in both Survey123 and ArcGIS Pro.&lt;BR /&gt;I have created fake fields and tried the same calculation, while also breaking down the calculation.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have attached a copy of my XLSX. Is there a work around for this? It feel as though I have tried everything.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You in Advance&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Sep 2019 14:51:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791938#M8441</guid>
      <dc:creator>EricaSummers</dc:creator>
      <dc:date>2019-09-11T14:51:54Z</dc:date>
    </item>
    <item>
      <title>Re: String or Binary data would be truncated Error!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791939#M8442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erica&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect the issue is in the last substr() function - substr(${LONG}, 5). &amp;nbsp;That would grab all of the characters from position 5 onward. &amp;nbsp;Given teh rest of the formula, did you mean&amp;nbsp;&lt;SPAN&gt;substr(${LONG}, 3, 5)?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 17:30:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791939#M8442</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-09-12T17:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: String or Binary data would be truncated Error!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791940#M8443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is definitely with the last substr(), but the formula is supposed to take the first four digits of the LAT and LONG fields,not including decimals and -, therefore&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;substr(${LONG}, 3, 5) will not work. I am looking into discussing with my colleagues to see if we can choose another combination of characters for this special ID (PDD_ID).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Sep 2019 18:01:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791940#M8443</guid>
      <dc:creator>EricaSummers</dc:creator>
      <dc:date>2019-09-12T18:01:14Z</dc:date>
    </item>
    <item>
      <title>Re: String or Binary data would be truncated Error!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791941#M8444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;James,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have since added in the additional character just to test the formula again and it does work. I did this three time for 3 different locations.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then took out the added character and went with my original calculation. The first submission worked, but the second did not and I got the same error.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 13:58:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791941#M8444</guid>
      <dc:creator>EricaSummers</dc:creator>
      <dc:date>2019-09-13T13:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: String or Binary data would be truncated Error!</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791942#M8445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have fixed our error!&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Thanks James!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Erica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Sep 2019 14:17:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/string-or-binary-data-would-be-truncated-error/m-p/791942#M8445</guid>
      <dc:creator>EricaSummers</dc:creator>
      <dc:date>2019-09-13T14:17:49Z</dc:date>
    </item>
  </channel>
</rss>

