<?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 Expression Syntax Error in InfraWorks Forum</title>
    <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7622613#M14253</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an expression to apply some specific styles. Unfortunately I cannot create the expression as I always get the following message:&amp;nbsp;&lt;EM&gt;Invalid Expression: Generic Syntax Error.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is my workflow:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Model created with model builder&lt;/LI&gt;&lt;LI&gt;Drag and drop shape file (polygons representing zones with certain attributes, among them population density)\&lt;/LI&gt;&lt;LI&gt;Configure shape file as Coverage Area.&lt;/LI&gt;&lt;LI&gt;Select Expression Editor from the Rule Style box&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 1.JPG" style="width: 305px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438929i544569751201F84D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 1.JPG" alt="Expression Editor 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under Properties/Numeric, double click &lt;FONT color="#FF9900"&gt;&lt;EM&gt;Pop_Dens&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 2.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438930i9427E465DB4F9EB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 2.JPG" alt="Expression Editor 2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under Operators/Comparison, double click = (note it also inserts &lt;FONT color="#FF00FF"&gt;&lt;EM&gt;[value]&lt;/EM&gt;&lt;/FONT&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 3.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438931i3B8D59106B13B1B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 3.JPG" alt="Expression Editor 3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the right pane, select from the drop down Pop_Dens and from the list below double click 25, for instance. Note the number gets inserted after&amp;nbsp;&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;[value]&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 4.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438932i78B047A8A6BA5F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 4.JPG" alt="Expression Editor 4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;I tried the following combinations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pop_Dens = 25&lt;/P&gt;&lt;P&gt;Pop_Dens = '25'&lt;/P&gt;&lt;P&gt;Pop_Dens = [25]&lt;/P&gt;&lt;P&gt;Pop_Dens = ['25']&lt;/P&gt;&lt;P&gt;I have also tried removing the spaces.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Select OK. Syntax Error message.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 5.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438934i250243B92C97EBBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 5.JPG" alt="Expression Editor 5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Dec 2017 03:55:43 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-12-14T03:55:43Z</dc:date>
    <item>
      <title>Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7622613#M14253</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to create an expression to apply some specific styles. Unfortunately I cannot create the expression as I always get the following message:&amp;nbsp;&lt;EM&gt;Invalid Expression: Generic Syntax Error.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This is my workflow:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Model created with model builder&lt;/LI&gt;&lt;LI&gt;Drag and drop shape file (polygons representing zones with certain attributes, among them population density)\&lt;/LI&gt;&lt;LI&gt;Configure shape file as Coverage Area.&lt;/LI&gt;&lt;LI&gt;Select Expression Editor from the Rule Style box&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 1.JPG" style="width: 305px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438929i544569751201F84D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 1.JPG" alt="Expression Editor 1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under Properties/Numeric, double click &lt;FONT color="#FF9900"&gt;&lt;EM&gt;Pop_Dens&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 2.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438930i9427E465DB4F9EB0/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 2.JPG" alt="Expression Editor 2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Under Operators/Comparison, double click = (note it also inserts &lt;FONT color="#FF00FF"&gt;&lt;EM&gt;[value]&lt;/EM&gt;&lt;/FONT&gt;)&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 3.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438931i3B8D59106B13B1B8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 3.JPG" alt="Expression Editor 3.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the right pane, select from the drop down Pop_Dens and from the list below double click 25, for instance. Note the number gets inserted after&amp;nbsp;&lt;FONT color="#FF00FF"&gt;&lt;EM&gt;[value]&lt;/EM&gt;&lt;/FONT&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 4.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438932i78B047A8A6BA5F6F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 4.JPG" alt="Expression Editor 4.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;P&gt;I tried the following combinations&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pop_Dens = 25&lt;/P&gt;&lt;P&gt;Pop_Dens = '25'&lt;/P&gt;&lt;P&gt;Pop_Dens = [25]&lt;/P&gt;&lt;P&gt;Pop_Dens = ['25']&lt;/P&gt;&lt;P&gt;I have also tried removing the spaces.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;UL&gt;&lt;LI&gt;Select OK. Syntax Error message.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Expression Editor 5.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/438934i250243B92C97EBBC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Expression Editor 5.JPG" alt="Expression Editor 5.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am I doing something wrong?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be much appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 03:55:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7622613#M14253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T03:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7622701#M14254</link>
      <description>&lt;P&gt;The Rule style field in data source configuration dialog is used to apply styles for all features when import, and it requires the style value or style values returned from the expressions. The expression you provided was&amp;nbsp;returned with true or false,&amp;nbsp; not like&amp;nbsp;a valid style.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you'd like to apply some&amp;nbsp;styles to some feature classes,&amp;nbsp;it's recommended to define style rules and run in the model via&amp;nbsp;Style Rules panel, see details at&amp;nbsp;&amp;nbsp;&lt;A href="http://help.autodesk.com/view/INFMDR/ENU/?guid=GUID-4279B93A-99B6-4DF3-87B7-A10F64C4688B&amp;nbsp;" target="_blank"&gt;http://help.autodesk.com/view/INFMDR/ENU/?guid=GUID-4279B93A-99B6-4DF3-87B7-A10F64C4688B&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 05:30:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7622701#M14254</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2017-12-14T05:30:22Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7625402#M14255</link>
      <description>&lt;P&gt;Hi Kathy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply. The link you sent doesn't work but I guess you mean this one&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.autodesk.com/view/INFMDR/ENU/?guid=GUID-295892D4-AFCB-4217-A48F-992F87564B00" target="_blank"&gt;http://help.autodesk.com/view/INFMDR/ENU/?guid=GUID-295892D4-AFCB-4217-A48F-992F87564B00&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using that style rules panel but I failed. This comes to my ignorance about writing expressions and how the system works.&lt;/P&gt;&lt;P&gt;Let's recap and see if you can please help me out.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I have a shp with attributes. Among them,&amp;nbsp;&lt;EM&gt;Pop_Dens&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;I would like to create a style rule that will show the polygons contained in the aforementioned shp in different colours depending on a range of values of&amp;nbsp;&lt;EM&gt;Pop_Dens&lt;/EM&gt;. Please see image below&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Legend.JPG" style="width: 247px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/439304iB766EB9102A8D9A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Legend.JPG" alt="Legend.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I tried creating a coverage area style rule called&amp;nbsp;&lt;EM&gt;Population_Density_3&amp;nbsp;&lt;/EM&gt;with an expression 'Pop_Dens' &amp;gt; 100 AND 'Pop_Dens' &amp;lt;=&amp;nbsp; 400 and add a bright green colour to it&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 228px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/439309iF09285E331749187/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I then configured the shp file to use that rule style&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 306px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/439312i39FA26CBA19DC129/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;And finally I run the rules&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The result is not correct. Only a handful of polygons get coloured. I double checked in Civil 3D and there's definitely more polygons within that range. I don't know where my mistake is unfortunately. My ultimate goal is to get a rule that colours all polygons depending on the value range, as per image above. Is that possible to do in a single expression?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2017 22:32:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7625402#M14255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-14T22:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7625969#M14256</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi Javier,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thanks for the reply. Sorry about the bad link for Help that has extra space at the end. The content you redirected is correct.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If I understand correctly, you want to stylize features with different attribute ranges.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;From steps you shared, I didn't quite sure if the style rule name is executable in data source dialog. Would it be an option to you to import all data in and then run style rules? If yes, here's&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;what I recreate to this option:&lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;import SHP as coverage with blank configurations in rule style ( all data is imported )&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;define style rules in Style Rules panel (same as your steps before data source configure, I added 4 rules with expressions of numeric attributes)&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;click Commit button to save style rules&amp;nbsp;Style Rules panel&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;click Run Rules button at Style Rules panel&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Then assets are colored with the style rule definitions. see snapshot below.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StyleRule.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/439390i0C5824A7DD91021E/image-size/large?v=v2&amp;amp;px=999" role="button" title="StyleRule.png" alt="StyleRule.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Can you try to see if it fits your needs?&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Kathy&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;&lt;SPAN&gt;Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2017 06:44:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7625969#M14256</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2017-12-15T06:44:31Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7633816#M14257</link>
      <description>&lt;P&gt;Thanks for that lengthy reply Kathy. Unfortunately I haven't been able to apply your instructions to my example. Most likely, it's due to my lack of knowledge of expressions and GIS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, you use ID, which is a property found under &lt;EM&gt;Properties/Common&lt;/EM&gt; in the&amp;nbsp;Create Filter Expression.&amp;nbsp;Is there a way to add the Pop_Dens property to that list. Otherwise the system doesn't really let you use it. I tried assigning to the imported shp the Pop_Dens to the External ID (see picture for clarification)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/440665i3BF2A6E0A47B7664/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and then create and expression using that Extenal ID property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture2.JPG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/440666i33BE7559D772F8E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Capture2.JPG" alt="Capture2.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately, the rules do not apply properly. Only some polygons are coloured and they don't even get the correct values. Sorry, I'm a bit lost. Apologies if this is too dumb but I cannot figure out what I'm doing wrong here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 02:28:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7633816#M14257</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-19T02:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7633874#M14258</link>
      <description>&lt;P&gt;Hmm, seemed lyour case may be specific. Would you mind sharing me the model so that I can look closer? If possible, adding me (kathy.feng@autodesk.com) to your online group or sharing the network drive would be good for me. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 03:15:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7633874#M14258</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2017-12-19T03:15:18Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7637115#M14259</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Javier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for sharing the model. I checked your proposal and found from model explorer -&amp;gt; coverage data table that, not all shp data imported as coverage when you specify 'Pop_Dens' as External ID.&amp;nbsp; So the style rules based on those records are incomplete.&amp;nbsp; The reason I feel is that&amp;nbsp; 'External ID' isn't allow duplicated values, so it imports only distinct Pop_Dens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There're two options to map attributes when import.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Option 1: add script and map to unused column in the coverage table. ( In Coverage data table you can see what're columns defined)&lt;/P&gt;
&lt;P&gt;Option 2: leverage existing common column, and double check record number in the data table title (in case the result isn't as expected)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I shared you the model including two proposals with above options, hope it helpful.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mappattributes.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/441167i836B7895932E333E/image-size/large?v=v2&amp;amp;px=999" role="button" title="mappattributes.png" alt="mappattributes.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 03:33:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7637115#M14259</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2017-12-20T03:33:24Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7692359#M14260</link>
      <description>&lt;P&gt;Hi Kathy,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry for taking so long to reply but I was on leave. Yes, the model you sent works fine. I’m not particularly impressed with Infrawork’s capabilities in this area. It’s really easy to this in Civil 3D / Map 3D that I can’t believe they made it so hard in Infraworks. My knowledge in creating those sort of expression is very minimal like the average user, I guess.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So thanks for your help on this. There’s potential but not quite the functionality. Please let me know if you find an easier way.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Javier&lt;/P&gt;</description>
      <pubDate>Mon, 15 Jan 2018 22:20:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7692359#M14260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-01-15T22:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7696146#M14261</link>
      <description>&lt;P&gt;Hi Javier,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's good to know that the model is helpful to you, and&amp;nbsp;thank you for sharing us&amp;nbsp;your candid comments on InfraWorks capabilities on this area.&amp;nbsp;I will let you know if any better idea. Btw, you're highly welcomed to post your ideas on &lt;A href="https://forums.autodesk.com/t5/infraworks-ideas/idb-p/129/tab/most-recent" target="_blank"&gt;Idea &lt;/A&gt;and get voted.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Kathy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="2"&gt;Was this answer helpful? If so, please click the ACCEPT AS SOLUTION or the KUDO button.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 05:46:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/7696146#M14261</guid>
      <dc:creator>kathy.feng</dc:creator>
      <dc:date>2018-01-17T05:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Expression Syntax Error</title>
      <link>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/10621377#M14262</link>
      <description>&lt;P&gt;Does anyone solve this problem in Infraworks?! really?&lt;/P&gt;</description>
      <pubDate>Tue, 14 Sep 2021 13:01:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/infraworks-forum/expression-syntax-error/m-p/10621377#M14262</guid>
      <dc:creator>IBIMKOREA</dc:creator>
      <dc:date>2021-09-14T13:01:05Z</dc:date>
    </item>
  </channel>
</rss>

