<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/discussions/f/general/5938/i-created-a-view-that-includes-a-calculated-field-which-came-in-with-a-type-39</link><description>I created a view that includes a calculated field which came in with a type &amp;#39;bigint(21)&amp;#39; that I can&amp;#39;t seem to change. I&amp;#39;m trying to create a data type for this view but I can&amp;#39;t seem to get it mapped correctly. I tried to make this field a &amp;#39;bigint&amp;#39; in</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/73741?ContentTypeID=1</link><pubDate>Fri, 01 May 2020 21:45:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8b5ffaeb-35c8-4314-adea-f1c3d36bdc2a</guid><dc:creator>AK47</dc:creator><description>&lt;p&gt;I also has table with multiple primary key. Just curious appian support this design or not&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22863?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2015 16:18:35 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f48917f8-a729-4c39-9dcf-8d816ba389be</guid><dc:creator>judym598</dc:creator><description>Thanks for the additional suggestions!&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22858?ContentTypeID=1</link><pubDate>Thu, 24 Sep 2015 11:26:20 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ba0d0dc6-aa45-4266-884f-2b2fe9c80ee4</guid><dc:creator>PhilB</dc:creator><description>I see you&amp;#39;ve resolved your issue but you might find the below of interest.&lt;br /&gt;&lt;br /&gt;MySQL will generally return calculated integer fields in a view as bigint. You can work around this by creating a function in MySQL that takes an input of bigint and returns an integer type, and then call that function for the relevant fields in the view&amp;#39;s select.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22845?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 23:59:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c9a8bb87-db36-46e2-92a6-e3c2ea6d56e1</guid><dc:creator>patrickh</dc:creator><description>I believe that when the database has a column whose type is bigint, putting &amp;quot;long&amp;quot; in as the type in the xsd will work&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22840?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 21:59:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8f42ec23-1d2b-4770-a1b5-652a0c3c5406</guid><dc:creator>judym598</dc:creator><description>Based on what you wrote, I took away the @id annotation from nbrActiveTeams and it worked! Here&amp;#39;s the final version of the XSD that worked.  Thanks for the help!!&lt;br /&gt;&lt;br /&gt;&amp;lt;xsd:schema xmlns:xsd=&amp;quot;&lt;a href="http://www.w3.org/2001/XMLSchema"&gt;www.w3.org/.../XMLSchema&amp;quot;&lt;/a&gt; xmlns:tns=&amp;quot;urn:com:appian:types&amp;quot; targetNamespace=&amp;quot;urn:com:appian:types&amp;quot;&amp;gt;&lt;br /&gt;  &amp;lt;xsd:complexType name=&amp;quot;IPS_ActiveUsers_v&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;xsd:documentation&amp;gt;&amp;lt;![CDATA[Data Type associated with the ipsactiveusers_v (View)]]&amp;gt;&amp;lt;/xsd:documentation&amp;gt;&lt;br /&gt;      &amp;lt;xsd:appinfo source =&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Table(name=&amp;quot;ipsactiveusers_v&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:appinfo&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;id&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Column(columnDefinition=&amp;quot;bigint NOT NULL&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;/xsd:element&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;lastName&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;firstName&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;userEmail&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;  &lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;appianUsername&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;xsd:element name=&amp;quot;nbrActiveTeams&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;/&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;xsd:element name=&amp;quot;boardSuspenseDate&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;  &amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;lt;/xsd:schema&amp;gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22836?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 21:13:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5bf1373b-6b70-4d85-8d71-6538daac0cd4</guid><dc:creator>Chris</dc:creator><description>When you removed the @id annotation from nbrActiveTeams, did you leave the @ColumnDefinition as &amp;#39;bigint&amp;#39; or remove both annotations?  Paste your XSD in here for your second attempt above and we&amp;#39;ll have a look - that attempt sounds more promising.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22833?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 20:56:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:44360e65-593c-43e5-8b6e-6743aecf4193</guid><dc:creator>judym598</dc:creator><description>Yes to your first question. I removed the @Id annotation on &amp;#39;id&amp;#39; - just did that again and left it where it is for the nbrActiveTeams column and got this error:&lt;br /&gt;A type mapping annotation is invalid: identifier mapping has wrong number of columns: IPSActiveUsersVDT2507 type: integer (MappingException) (APNX-2-4055-000) &lt;br /&gt;If it leave it on the &amp;#39;id&amp;#39; but take it away from the nbrActiveTeams column, I get this error:&lt;br /&gt;The data source schema does not match the type mappings: Wrong column type in Appian.ipsactiveusers_v for column nbractiveteams. Found: bigint, expected: integer (APNX-2-4056-000) &lt;br /&gt;Tried to use the cast(...as int) but that didn&amp;#39;t seem to work&lt;br /&gt;CAST(count(`c`.`id`) AS INT)  I get a syntax error.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22832?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 20:39:18 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2418bc95-91d8-4d84-ac01-e0a883f290ce</guid><dc:creator>Chris</dc:creator><description>I&amp;#39;ve only seen that error when multiple primary keys were defined.  To clarify, you tried with removing the annotations from nbrActiveTeams while leaving the @Id annotation on &amp;quot;id&amp;quot;?  I would also add @Column/columnDefinition annotations on all view fields, not sure if that will help here but has seemed to make things easier for me in the past.  &lt;br /&gt;&lt;br /&gt;On the SQL view, you may also be able to use cast(calculatedColumn as int) around the calulcated column, then map to &amp;#39;int&amp;#39; in your XSD - if you haven&amp;#39;t tried that already.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22831?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 20:28:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0cbfbcdf-c921-48bb-9859-655f12233a5a</guid><dc:creator>judym598</dc:creator><description>...umnDefinition=&amp;quot;bigint NOT NULL&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;/xsd:element&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;xsd:element name=&amp;quot;boardSuspenseDate&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;    &amp;lt;/xsd:sequence&amp;gt;&lt;br /&gt;  &amp;lt;/xsd:complexType&amp;gt;&lt;br /&gt;&amp;lt;/xsd:schema&amp;gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: I created a view that includes a calculated field which came in with a type &amp;#39</title><link>https://community.appian.com/thread/22830?ContentTypeID=1</link><pubDate>Wed, 23 Sep 2015 20:28:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:970c7413-b3e4-4346-a488-bcb8309740b7</guid><dc:creator>judym598</dc:creator><description>...s_v&amp;quot;&amp;gt;&lt;br /&gt;    &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;xsd:documentation&amp;gt;&amp;lt;![CDATA[Data Type associated with the ipsactiveusers_v (View)]]&amp;gt;&amp;lt;/xsd:documentation&amp;gt;&lt;br /&gt;      &amp;lt;xsd:appinfo source =&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;@Table(name=&amp;quot;ipsactiveusers_v&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:appinfo&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;xsd:sequence&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;id&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Column(columnDefinition=&amp;quot;bigint NOT NULL&amp;quot;)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;/xsd:appinfo&amp;gt;&lt;br /&gt;        &amp;lt;/xsd:annotation&amp;gt;&lt;br /&gt;      &amp;lt;/xsd:element&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;lastName&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;firstName&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;userEmail&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;  &lt;br /&gt;      &amp;lt;xsd:element name=&amp;quot;appianUsername&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&amp;quot; /&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  &amp;lt;xsd:element name=&amp;quot;nbrActiveTeams&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:int&amp;quot;&amp;gt;&lt;br /&gt;        &amp;lt;xsd:annotation&amp;gt;&lt;br /&gt;          &amp;lt;xsd:appinfo source=&amp;quot;appian.jpa&amp;quot;&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Id&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;  @Column(col...&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>