<?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>Error in Record sorting</title><link>https://community.appian.com/discussions/f/data/21493/error-in-record-sorting</link><description>Hi all, 
 I am using a view as the data source for an entity-backed record. I have a field &amp;quot;Student Full Name&amp;quot; in the view, which I am getting by concatenating &amp;quot;Student First Name&amp;quot; and &amp;quot;Candidate Last Name&amp;quot; using the function concat(&amp;quot;studLastNm&amp;quot;, &amp;quot;, </description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/84011?ContentTypeID=1</link><pubDate>Sun, 25 Jul 2021 08:39:25 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:988c707c-02c1-40d2-8129-5a825bdc98ef</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;Thank you Stefan.&amp;nbsp; It is working now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/84010?ContentTypeID=1</link><pubDate>Sun, 25 Jul 2021 08:38:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:df47387f-4f08-43c3-b876-6971abef1599</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;&lt;a href="/members/vimals"&gt;vimalkumars&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Thank you.&amp;nbsp; When I removed the initial sort from the record list, the&amp;nbsp;sorting of field with record link worked properly and did not give any issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/84006?ContentTypeID=1</link><pubDate>Sat, 24 Jul 2021 07:01:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:96463e47-059d-45e1-a1f8-a646baa0c481</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I have the same idea. Please check that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/84002?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 22:27:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:87ed2ef0-4b63-403b-839a-e421262946e5</guid><dc:creator>vimalkumars</dc:creator><description>&lt;p&gt;@&lt;a class="internal-link view-user-profile" href="/members/brindas"&gt;Brinda&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;Can you share the initial sort configuration you have for the Grid in Record Types and also sort configuration of the grid column &amp;quot;Student Full Name&amp;quot;?&lt;/p&gt;
&lt;p&gt;It seems like you might have used rf!STUDENT_FULL_NM&amp;nbsp; or something similar to that instead of just &amp;quot;&lt;span&gt;STUDENT_FULL_NM&amp;nbsp;&amp;quot;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83996?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 19:02:22 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c8f6c757-4887-4ab1-98c1-d958f47ab69f</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Hm ... sorry, I am out of ideas ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83994?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 18:23:09 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d18545de-4a07-4810-8efa-4d64811854eb</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;Hi Stefan,&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;I am using this &amp;quot;&lt;span&gt;STUDENT_FULL_NM&amp;quot; in the view as a link field.&amp;nbsp; The following is the configuration for the link field:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;a!recordLink(&lt;br /&gt; label:&amp;nbsp;rf!&lt;span&gt;STUDENT_FULL_NM&lt;/span&gt;, &lt;br /&gt;recordType:rp!type,&lt;br /&gt;identifier:rp!id&lt;br /&gt;)&lt;/p&gt;
&lt;p&gt;It gives the alias error which I mentioned only in the link field, when I use it in the normal text field in the record list it is sorting properly and does not give any error.&lt;/p&gt;
&lt;p&gt;The Appian version I am using is 21.1.&amp;nbsp; Any suggestion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83983?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 13:14:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2788a708-d3fb-4bc5-878e-7cfd2328daaa</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I meant the record list configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83982?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 11:32:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:241485b2-a62f-43f4-b2e0-310d66f09040</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;I don&amp;#39;t think so.&amp;nbsp; The following is a part of XSD definition for&amp;nbsp;&lt;span&gt;TEST_VW_Student CDT:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;lt;xsd:element name=&amp;quot;STUDENT_FULL_NM&amp;quot; nillable=&amp;quot;true&amp;quot; type=&amp;quot;xsd:string&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;@Column(name=&amp;quot;STUDENT_FULL_NM&amp;quot;, columnDefinition=&amp;quot;VARCHAR(255)&amp;quot;)&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;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;But the view in cloud database does not have the primary key.&amp;nbsp; By any chance, is the error due to that?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83980?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:47:00 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6c11fbfe-02d1-4bd3-b6fb-01592b36af2a</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;I have created the recordtype from the view as the data source.&amp;nbsp; The record list field is giving error while sorting&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83979?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:41:54 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3baa9a0d-f8c6-410b-b2a9-60ff9ec62600</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;Seems to be OK. By any chance, the piece&lt;/p&gt;
&lt;p&gt;&amp;quot;alias [[field=STUDENT_FULL_NM, ascending=true]]&amp;quot; in the error message does not match.&lt;/p&gt;
&lt;p&gt;Could it be that you entered that in a wrong field or typed it as a string (in quotes) instead of code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83978?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:36:06 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d065b6d4-152d-4667-baf4-e730b5c91a16</guid><dc:creator>Stewart Burchell</dc:creator><description>&lt;p&gt;Where exactly are you implementing your sort on this field? Is it in an Interface object? If so, please provide the code for that Interface.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83977?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:32:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:71b5f9ff-6df1-4449-9c88-ff53629dc93c</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;I have created a view from the student table to get student full name. I am using this view as a datasource for my entity-backed record where the &amp;quot;STUDENT_FULL_NM&amp;quot; sorting is giving the error. The SQL coding for view is as follows:&lt;/p&gt;
&lt;p&gt;CREATE OR REPLACE VIEW `TEST_VW_Student` AS&lt;br /&gt;SELECT&lt;br /&gt; `Student`.`STUDENT_ID` AS `STUDENT_ID`,&lt;br /&gt; `Student`.`STUDENT_F_NM` AS `STUDENT_F_NM`,&lt;br /&gt; `Student`.`STUDENT_M_NM` AS `STUDENT_M_NM`,&lt;br /&gt; `Student`.`STUDENT_L_NM` AS `STUDENT_L_NM`,&lt;br /&gt;CAST(&lt;br /&gt; CONCAT(&lt;br /&gt; CASE WHEN `Student`.`STUDENT_L_NM` = &amp;#39; &amp;#39; OR `Student`.`STUDENT_L_NM` IS NULL THEN &amp;#39;Last Name&amp;#39; ELSE `Student`.`STUDENT_L_NM`&lt;br /&gt; END,&lt;br /&gt; &amp;#39;, &amp;#39;,&lt;br /&gt; `Student`.`STUDENT_F_NM`,&lt;br /&gt; &amp;#39; &amp;#39;,&lt;br /&gt; CASE WHEN `Student`.`STUDENT_M_NM` = &amp;#39; &amp;#39; OR `Student`.`STUDENT_M_NM` IS NULL THEN &amp;#39;&amp;#39; ELSE `Student`.`STUDENT_M_NM`&lt;br /&gt;END&lt;br /&gt;) AS CHAR(100) CHARSET utf8mb4&lt;br /&gt;) AS `STUDENT_FULL_NM`&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83976?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:18:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5551971e-6164-4d1c-a052-72f5b9a47334</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. What is your queryEntity code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83975?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 10:17:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:8199885d-c51e-4424-9480-54461d51ed5a</guid><dc:creator>Brinda</dc:creator><description>&lt;p&gt;But my field name in the view and CDT is&amp;nbsp;STUDENT_FULL_NM Stefan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Error in Record sorting</title><link>https://community.appian.com/thread/83973?ContentTypeID=1</link><pubDate>Fri, 23 Jul 2021 08:27:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f4ab7c0f-1612-44ac-90b6-f03fa02298ce</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;I think the issue is that the alias for the concat is&amp;nbsp;&amp;quot;Student Full Name&amp;quot;. Appian does not support field names containing spaces. Changing this to e.g.&amp;nbsp;&amp;quot;Student_Full_Name&amp;quot; should do it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>