<?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: shp2sde file attribute loading issues in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597055#M33679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yup, 'vi' is your friend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They never got the marking capability running on the arcgis.com Forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Aug 2011 16:56:29 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2011-08-09T16:56:29Z</dc:date>
    <item>
      <title>shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597050#M33674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm trying to automate a routine that imports data from a Shapefile to SDE.&amp;nbsp; The old data in the SDE layer needs to be wiped away each time, so I am using the 'init' option in the shp2sde command.&amp;nbsp; Since Shapefiles notoriously truncate field names, I am trying to use the '-a' option that loads a file map of the names and other info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;shp2sde -o init -l pittarib.polyfeature,shape -f polyfeature -a file=poly_feat_attr.txt -r poly_feat_rej -v -i esri_sde_devtest -s testserver -u pittarib -p mypassword&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Doing a lyrinfo command on the shapefile yields this information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID OBJECTID SE_INTEGER 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_FEATUR SDE_FEATURE_DATE SE_DATE 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_LINE_ TEST_LINE_PART_COUNT SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_POINT TEST_POINT_PART_COUNT SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_THREE TEST_THREE_POINT_COUNT SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_POLY_P SDE_POLY_PART_COUNT SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_CLOSEP SDE_CLOSEPOLY_ERR_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_MULTIP SDE_MULTIPART_SHP_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_INTERS SDE_INTERSECT_ERR_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AREA AREA SE_DOUBLE 27 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LEN LEN SE_DOUBLE 27 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECT_ID_ OBJECT_ID_FK SE_INTEGER 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID N 10 - SE_INTEGER 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_FEATUR D 8 - SE_DATE 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_LINE_ N 5 - SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_POINT N 5 - SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_THREE N 5 - SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_POLY_P N 5 - SE_INTEGER 5 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_CLOSEP C 1 - SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_MULTIP C 1 - SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_INTERS C 1 - SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AREA N 19 8 SE_DOUBLE 27 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LEN N 19 8 SE_DOUBLE 27 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECT_ID_ N 10 - SE_INTEGER 0 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE column definition string:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID integer, SDE_FEATUR date, TEST_LINE_ integer(5), TEST_POINT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;integer(5), TEST_THREE integer(5), SDE_POLY_P integer(5), SDE_CLOSEP&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;string(1), SDE_MULTIP string(1), SDE_INTERS string(1), AREA double(27,8),&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LEN double(27,8), OBJECT_ID_ integer&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The attribute info on the SDE Layer in ArcCatalog yields this information:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECT_ID_FK / Data type: Integer / Width: 4 / Precision: 10 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_FEATURE_DATE / Data type: Date / Width: 36 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_LINE_PART_COUNT / Data type: SmallInteger / Width: 2 / Precision: 3 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_POINT_PART_COUNT / Data type: SmallInteger / Width: 2 / Precision: 3 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_THREE_POINT_COUNT / Data type: SmallInteger / Width: 2 / Precision: 3 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_CLOSEPOLY_ERR_FL / Data type: String / Width: 1 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID / Alias: OBJECTID / Data type: OID / Width: 4 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_POLY_PART_COUNT / Data type: SmallInteger / Width: 2 / Precision: 3 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Shape / Data type: Geometry / Width: 0 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_MULTIPART_SHP_FL / Data type: String / Width: 1 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PITTARIB.POLYFEATURE_SDE.AREA / Data type: Double / Width: 8 / Precision: 38 / Scale: 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_INTERSECT_ERR_FL / Data type: String / Width: 1 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;PITTARIB.POLYFEATURE_SDE.LEN / Data type: Double / Width: 8 / Precision: 38 /Scale: 8&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHAPE / Data type: Geometry / Width: 4 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHAPE.AREA / Data type: Double / Width: 0 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SHAPE.LEN / Data type: Double / Width: 0 / Precision: 0 / Scale: 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Based on the format from the online help, I'm guessing the attribute file should be in this form:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;lt;shpCol&amp;gt; [sdeCol] [type] [size] [nDecs] [NOT_NULL]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, the SHP &amp;gt; SDE fields/info in the text file are as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECTID OBJECTID SE_INTEGER 4 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;OBJECT_ID_ OBJECT_ID_FK SE_INTEGER 8 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_FEATUR SDE_FEATURE_DATE SE_DATE 36 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_LINE_ TEST_LINE_PART_COUNT SE_INTEGER 2 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_POINT TEST_POINT_PART_COUNT SE_INTEGER 2 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;TEST_THREE TEST_THREE_POINT_COUNT SE_INTEGER 2 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_POLY_P SDE_POLY_PART_COUNT SE_INTEGER 2 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_CLOSEP SDE_CLOSEPOLY_ERR_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_MULTIP SDE_MULTIPART_SHP_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE_INTERS SDE_INTERSECT_ERR_FL SE_STRING 1 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;AREA AREA SE_DOUBLE 27 15 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LEN LEN SE_DOUBLE 27 15 -&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Upon loading, the program returns a fatal error and I have to exit out.&amp;nbsp; Do I have this in the wrong format?&amp;nbsp; Should I use 'N' instead of SE_INTEGER, for example, as the load type?&amp;nbsp; Do I need to use the SDE Layer field information (width, decimals, etc) instead of what I got from the Shapefile?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:03:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597050#M33674</guid>
      <dc:creator>BartPittari</dc:creator>
      <dc:date>2011-08-09T13:03:38Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597051#M33675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do not attempt to load into the AREA and LEN shape properties. If you use 'sdetable -o describe'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;you'll see the column layout that 'shp2sde' sees; this should help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The types are all equivalent, so you only need 'shpname sdename' in the mapping file. Don't&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;mention the shape column in the mapping file (-l table,COLUMN handles that).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 13:07:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597051#M33675</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-08-09T13:07:54Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597052#M33676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do not attempt to load into the AREA and LEN shape properties. If you use 'sdetable -o describe'&lt;BR /&gt;you'll see the column layout that 'shp2sde' sees; this should help.&lt;BR /&gt; &lt;BR /&gt;The types are all equivalent, so you only need 'shpname sdename' in the mapping file. Don't&lt;BR /&gt;mention the shape column in the mapping file (-l table,COLUMN handles that).&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Vince,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That file change seemed to work in one of the environments I'm using (SDE 9.3.1)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but when I run it in the other environment (SDE 9.2), I get this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SDE Code (-53): Invalid column data type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Line&amp;nbsp; 1: Error in parsing ColDef string.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;" "OBJECTID&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Error, reading column specification file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if it matters, but the 9.2 version is working off of Solaris and the 9.3.1 is working from Windows.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:11:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597052#M33676</guid>
      <dc:creator>BartPittari</dc:creator>
      <dc:date>2011-08-09T16:11:11Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597053#M33677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you have an escape character in the Unix mapping file? If it was edited on Windows&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;it may be missing a terminal newline (or have embedded CR before the LF).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597053#M33677</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-08-09T16:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597054#M33678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have an escape character in the Unix mapping file? If it was edited on Windows&lt;BR /&gt;it may be missing a terminal newline (or have embedded CR before the LF).&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That did it!! (thank you vi, lol) - UNIX didn't like the CR (^M as it looks in UNIX).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you.&amp;nbsp; How do I mark this as solving the problem?&amp;nbsp; I'm still trying to get accustomed to the interface.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597054#M33678</guid>
      <dc:creator>BartPittari</dc:creator>
      <dc:date>2011-08-09T16:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597055#M33679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yup, 'vi' is your friend.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They never got the marking capability running on the arcgis.com Forums.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 16:56:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597055#M33679</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2011-08-09T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: shp2sde file attribute loading issues</title>
      <link>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597056#M33680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yup, 'vi' is your friend.&lt;BR /&gt; &lt;BR /&gt;They never got the marking capability running on the arcgis.com Forums.&lt;BR /&gt; &lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which explains why I didn't see it.&amp;nbsp; It was pretty visible on the old versions.&amp;nbsp; Do they just mark it as complete?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2011 17:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/shp2sde-file-attribute-loading-issues/m-p/597056#M33680</guid>
      <dc:creator>BartPittari</dc:creator>
      <dc:date>2011-08-09T17:10:01Z</dc:date>
    </item>
  </channel>
</rss>

