<?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>Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/discussions/f/rules/4556/use-case---we-have-created-three-custom-group-which-are-present-in-one-group-ty</link><description>Use Case:- We have created three custom group which are present in one group type. I need to get list of all users present in my group type. I am able to get list of users but when I am trying to get attributes of users it throws below error. &amp;quot;Invalid</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16432?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:52:11 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:38b7da65-5a62-4bf3-aa71-e62f159f9a1d</guid><dc:creator>vineeta6579</dc:creator><description>thanks conorc and Ale its working now.. &lt;br /&gt;i was  able to remove coinsurance of  ; by split function&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16431?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:51:28 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:626a5add-407b-45b5-887c-297e63bf1d43</guid><dc:creator>Conor Cahill</dc:creator><description>ah, So for the get unique users you could try something like this:&lt;br /&gt;&lt;br /&gt;local!getUniqueUsers: reject(fn!isnull,union(local!allUsers,touser({})))&lt;br /&gt;&lt;br /&gt;this way you would both get the set of unique users, while at the same time removing the null values.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16430?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:44:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b944d36b-3fd3-4921-aa93-f0cb61aad263</guid><dc:creator>vineeta6579</dc:creator><description>if there is no user inside custom group then the output would be like below..&lt;br /&gt;&lt;br /&gt;; ; ; ; vahluwalia; ; ; ; ; ; vahluwalia; ; ; vahluwalia; ; &lt;br /&gt;&lt;br /&gt;I need to remove single or multiple occurrence of ;&lt;br /&gt; &lt;br /&gt;The code provided you doesn&amp;#39;t work on this situation &lt;br /&gt;&lt;br /&gt;local!allUsers: reduce(fn!append,touser({}),apply(fn!GetUserList,local!getGroupIdfromGroupType))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16429?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:23:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d2a2478f-4f74-4df8-9926-122e106d1f15</guid><dc:creator>Conor Cahill</dc:creator><description>rule!GetUserList, sorry about that&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16428?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:20:42 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:b91101be-547b-4f2f-b611-01e7fb0cdc53</guid><dc:creator>vineeta6579</dc:creator><description>ignore previous comment&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16427?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:14:51 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:a78baadb-4178-4116-bee2-f6622c46020b</guid><dc:creator>vineeta6579</dc:creator><description>what is fn!GetUserList ?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16425?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:07:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c6533be7-099d-432f-9f86-2b7e227f395a</guid><dc:creator>Conor Cahill</dc:creator><description>I would get the overall userlist doing this:&lt;br /&gt;&lt;br /&gt;local!allUsers: reduce(fn!append,touser({}),apply(fn!GetUserList,local!getGroupIdfromGroupType))&lt;br /&gt;&lt;br /&gt;local!getUniqueUsers: union(local!allUsers,local!allUsers)&lt;br /&gt;&lt;br /&gt;My guess is that your parsing is causing some extra text or characters to get into the username strings. The above method removes the need to do the parsing.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16424?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 01:03:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:659aa2f3-fea8-4b05-a408-afa4e1f48c0a</guid><dc:creator>vineeta6579</dc:creator><description>removed all other users expect my user. but still getting same error.. If i pass static array it works always..&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16423?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 00:23:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:343b5174-7ced-4981-bae5-872cfd241932</guid><dc:creator>Aleksi White</dc:creator><description>I did a simple test of this in my environment and was only able to recreate that error when the username did not exist in the system.&lt;br /&gt;&lt;br /&gt;Can you confirm that none of the users have been deactivated?&lt;br /&gt;&lt;br /&gt;Could you try testing by replacing fn!apply(rule!getFirstName(_),local!getUniqueList)) with a hardcoded list of users, something like fn!apply(rule!getFirstName(_),{&amp;quot;user1&amp;quot;, &amp;quot;user2&amp;quot;, &amp;quot;user3&amp;quot;}))&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16422?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 00:10:43 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4d7e87b4-7e16-4e1f-8f10-26b1ab304094</guid><dc:creator>vineeta6579</dc:creator><description>attached..&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/5518.UserList.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/5518.UserList.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/rule.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/rule.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16421?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2015 00:07:15 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:58585b6b-7758-47cd-919b-ef5be8473229</guid><dc:creator>Aleksi White</dc:creator><description>Could you provide a screenshot of the error you are seeing as well as a screenshot of the rule getFirstName?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16420?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:49:27 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:cfb61acb-1daf-4245-aa20-f53e0edc3969</guid><dc:creator>vineeta6579</dc:creator><description>i have validated each username separately against firstname attributes and didnt encounter any invalid user error&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16419?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:45:19 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:d90121b2-5347-41ab-b1ad-83bb34e88637</guid><dc:creator>vineeta6579</dc:creator><description>i am storing it as text .. tried touser() also but it doesnt work&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16418?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:43:47 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3fdff350-9c05-43c9-b8da-8c3deda75659</guid><dc:creator>Aleksi White</dc:creator><description>The most recent errors I see in the logs have the following issue:&lt;br /&gt;&lt;br /&gt;Caused by: com.appiancorp.suiteapi.common.exceptions.InvalidUserException: [InvalidUserException]&lt;br /&gt;&lt;br /&gt;It looks like the user you are passing in is invalid.  Are you storing the usernames as Text, or as User datatype?&lt;br /&gt;&lt;br /&gt;Try wrapping the ri!username in the touser() function, which would give you&lt;br /&gt;user(touser(ri!username), &amp;quot;firstName&amp;quot;)&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16417?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:42:30 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:4818ddd7-b454-416d-b0a4-bb9cc32937cc</guid><dc:creator>vineeta6579</dc:creator><description>filtered server log &lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/8322.serverlogs.txt"&gt;serverlogs.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16416?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:39:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5c546db3-19b9-4f27-9bd2-6784676390a3</guid><dc:creator>vineeta6579</dc:creator><description>No. with same data its working fine. I am able to get list of users (userList attachment ) but when tried to show first name of user in grid second column got error.&lt;br /&gt; &lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/serverlogs.txt"&gt;serverlogs.txt&lt;/a&gt;&lt;/p&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/UserList.PNG"&gt;&lt;img src="/cfs-filesystemfile/__key/communityserver-discussions-components-files/15/UserList.PNG" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Use Case:-  We have created three custom group which are present in one group ty</title><link>https://community.appian.com/thread/16415?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2015 23:29:14 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:0eabb1a1-3239-4088-bcd4-cc58142542f3</guid><dc:creator>Aleksi White</dc:creator><description>If you call the user() function with some sample data by itself in the expressions editor do you get the same error?&lt;br /&gt;Could you attach your application-server.log?&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>