<?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 CIMLayoutDocument.FromJson() error with Feature Service layer on Map in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimlayoutdocument-fromjson-error-with-feature/m-p/1013832#M5922</link>
    <description>&lt;P&gt;I'm doing some layout modifications and rendering using the CIM. The process starts with the importation of an existing layout (the "template") by reading a pagx file into a JSON string. We then call CIMLayoutDocument.FromJson() to get an in-memory representation of the entire Layout and its components.&lt;/P&gt;&lt;P&gt;This has been working as expected until I added a Feature Service layer (a Polyline layer) to a Map referenced by the Layout in question. Since this Map is referenced by the Layout, it gets included in the list of CIMMaps in the CIMLayoutDocument.&lt;/P&gt;&lt;P&gt;With that feature service layer added, the call to CIMLayoutDocument.FromJson() produces an error, &lt;STRONG&gt;"Value was either too large or too small for an Int32."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All the stack trace shows is that this is the result of a call to System.Convert.ToInt32(). Is this a bug?&lt;/P&gt;</description>
    <pubDate>Tue, 05 Jan 2021 01:56:58 GMT</pubDate>
    <dc:creator>DavidLaMartina</dc:creator>
    <dc:date>2021-01-05T01:56:58Z</dc:date>
    <item>
      <title>CIMLayoutDocument.FromJson() error with Feature Service layer on Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimlayoutdocument-fromjson-error-with-feature/m-p/1013832#M5922</link>
      <description>&lt;P&gt;I'm doing some layout modifications and rendering using the CIM. The process starts with the importation of an existing layout (the "template") by reading a pagx file into a JSON string. We then call CIMLayoutDocument.FromJson() to get an in-memory representation of the entire Layout and its components.&lt;/P&gt;&lt;P&gt;This has been working as expected until I added a Feature Service layer (a Polyline layer) to a Map referenced by the Layout in question. Since this Map is referenced by the Layout, it gets included in the list of CIMMaps in the CIMLayoutDocument.&lt;/P&gt;&lt;P&gt;With that feature service layer added, the call to CIMLayoutDocument.FromJson() produces an error, &lt;STRONG&gt;"Value was either too large or too small for an Int32."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;All the stack trace shows is that this is the result of a call to System.Convert.ToInt32(). Is this a bug?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Jan 2021 01:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimlayoutdocument-fromjson-error-with-feature/m-p/1013832#M5922</guid>
      <dc:creator>DavidLaMartina</dc:creator>
      <dc:date>2021-01-05T01:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: CIMLayoutDocument.FromJson() error with Feature Service layer on Map</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimlayoutdocument-fromjson-error-with-feature/m-p/1014855#M5942</link>
      <description>&lt;P&gt;If you create a layout with a map that only contains that feature service layer you still get the error?&amp;nbsp; If so can you attach the json?&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2021 21:18:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/cimlayoutdocument-fromjson-error-with-feature/m-p/1014855#M5942</guid>
      <dc:creator>Wolf</dc:creator>
      <dc:date>2021-01-07T21:18:36Z</dc:date>
    </item>
  </channel>
</rss>

