<?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>No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/discussions/f/new-to-appian/21795/no-values-have-been-written-details-could-not-insert-userroledt2804-apnx-1-4208-004</link><description>Could not display interface. Please check definition and inputs. 
 
 
 Interface Definition: Expression evaluation error: An error occurred while executing a smart service: An error occurred while trying to write to the data store [KONE_User_Development_Database</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85617?ContentTypeID=1</link><pubDate>Thu, 09 Sep 2021 03:46:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:3ea10852-9533-4eec-8918-8d4f1dc67a95</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;It is the duplicated entry for &amp;quot;NAME&amp;quot; of ri!userrole&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85484?ContentTypeID=1</link><pubDate>Mon, 06 Sep 2021 05:36:58 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eebd3417-290a-42bb-870d-c62cf8661f60</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;a!localVariables(
  local!rule:rule!KONE_Development_userinputsheet_Rule(),
  local!allRole:rule!KONE_Development_ROLE(),
  local!allLanguage:rule!KONE_Development_LANGUAGE(),
  local!allBranch:rule!KONE_Development_BRANCH(),
  local!allRegion:rule!KONE_Development_REGION(),
  local!noFiltersApplied: all(fn!isnull, {ri!userinputsheet.KONE_user_name}),
  a!sectionLayout(
    label:&amp;quot;Update Info&amp;quot;,
    contents: {
      a!columnsLayout(
        columns: {
          a!columnLayout(
            contents: {
              a!textField(
                label: &amp;quot;Username&amp;quot;,
                value: ri!userinputsheet.KONE_user_name,
                saveInto: ri!userinputsheet.KONE_user_name,
                refreshAfter: &amp;quot;KEYPRESS&amp;quot;
              ),
              a!buttonLayout(
                primaryButtons: {
                  a!buttonWidget(
                    label: &amp;quot;SEARCH&amp;quot;,
                    saveInto: {
                      ri!userinputsheet.KONE_user_name
                    },
                    disabled: local!noFiltersApplied
                  )
                }
              ),
              a!gridLayout(
                label: &amp;quot;Editable Grid&amp;quot;,
                labelPosition: &amp;quot;ABOVE&amp;quot;,
                headerCells: {
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Username&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;First Name&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Last Name&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Email&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Role&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Branch&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Region&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Manager_role&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Language&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;CE_LEVEL&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Telephone Number&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Exceptional Case Library View Right&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Update&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Delete&amp;quot;
                  ),
                  a!gridLayoutHeaderCell(
                    label: &amp;quot;Restart&amp;quot;
                  )
                },
                columnConfigs: {
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  ),
                  a!gridLayoutColumnConfig(
                    width: &amp;quot;DISTRIBUTE&amp;quot;
                  )
                },
                rows: {
                  a!forEach(
                    items: local!rule,
                    expression:a!gridRowLayout(
                      contents: {
                        a!textField(
                          label: &amp;quot;Username&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.KONE_user_name,
                          saveInto: {
                            fv!item.KONE_user_name,
                          a!save(target:ri!userinputsheet.KONE_user_name,value:save!value),
                          a!save(target:ri!userrole.NAME,value:save!value),
                          a!save(target:ri!userrole.USER_ID,value:a!localVariables(local!value:fv!item.KONE_user_name,
                          a!forEach(
                            items:rule!KONE_Development_Username_UserId(),
                            expression: if(local!value=fv!item.username,fv!item.userid,{}),
                          ),
                          )),
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          readOnly: true,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;First Name&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.FIRST_NAME,
                          saveInto: {fv!item.FIRST_NAME,
                            a!save(target:ri!userinputsheet.FIRST_NAME,value:save!value)},
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;Last Name&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.LAST_NAME,
                          saveInto: {fv!item.FIRST_NAME,
                          a!save(target:ri!userinputsheet.LAST_NAME,value:save!value),
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;Email&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.Email,
                          saveInto: { 
                            fv!item.Email,
                            a!save(target:ri!userinputsheet.Email,
                          value:save!value),
                          a!save(target:ri!userrole.EMAIL,value:save!value)},
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!dropdownField(
                          label: &amp;quot;Role&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          choiceLabels:reject(fn!isnull,local!allRole),
                          choiceValues:reject(fn!isnull,local!allRole),
                          value:if(isnull(fv!item.Role),&amp;quot;null&amp;quot;,fv!item.Role),
                          saveInto:{
                            fv!item.Role,
                            a!save(target:ri!userinputsheet.Role,value:save!value),
                            a!save(
                              target:ri!userrole.ROLE_ID,
                              value: a!forEach
                              (items:rule!KONE_Development_Role_RoleId(),
                              expression:if(fv!item.Role=ri!userinputsheet.Role,fv!item.Role_Id,{})        
                              )),
                              a!save(
                                target:ri!userrole.ROLE,
                                value: save!value),
                                a!save(target:ri!userrole.PHASE_ID,
                                value:a!forEach
                                (items:rule!KONE_Development_Role_RoleId(),
                                expression:if(fv!item.Role=ri!userinputsheet.Role,fv!item.Role_Id,{})        
                                ))
                          },
                          validations: {}
                        ),
                        a!dropdownField(
                          label: &amp;quot;Branch&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          choiceLabels:reject(fn!isnull,local!allBranch),
                          choiceValues:reject(fn!isnull,local!allBranch),
                          value:if(isnull(fv!item.Branch),&amp;quot;null&amp;quot;,fv!item.Branch),
                          saveInto:{
                            fv!item.Branch,
                            a!save(target:ri!userinputsheet.Branch,value:save!value),
                            a!save(target:ri!userrole.BRANCH,value:save!value),
                            a!save(target:ri!userrole.BRANCH_ID,
                            value:a!forEach
                            (items:rule!KONE_Development_Branch_BranchId(),
                            expression:if(fv!item.Branch=ri!userinputsheet.Branch,fv!item.Branch_Id,{})        
                            ))
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!dropdownField(
                          label: &amp;quot;Region&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          choiceLabels:reject(fn!isnull,local!allRegion),
                          choiceValues:reject(fn!isnull,local!allRegion),
                          value:fv!item.Region,
                          saveInto:{
                            fv!item.Region,
                            a!save(target:ri!userinputsheet.Region,value:save!value),
                            a!save(target:ri!userrole.REGION,value:save!value),
                            a!save(target:ri!userrole.REGION_ID,
                            value:a!forEach
                            (items:rule!KONE_Development_Region_RegionId(),
                            expression:if(fv!item.Region=ri!userinputsheet.Region,fv!item.Region_Id,{})        
                            ))
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!dropdownField(
                          label: &amp;quot;Manager_role&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          choiceLabels:reject(fn!isnull,local!allRole),
                          choiceValues:reject(fn!isnull,local!allRole),
                          value:if(isnull(fv!item.Manager_role),&amp;quot;null&amp;quot;,fv!item.Manager_role),
                          saveInto:{
                            fv!item.Manager_role,
                            a!save(target:ri!userinputsheet.Manager_role,value:save!value)
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!dropdownField(
                          label: &amp;quot;Language&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          choiceLabels:reject(fn!isnull,local!allLanguage),
                          choiceValues:reject(fn!isnull,local!allLanguage),
                          value:if(isnull(ri!userinputsheet.Language),&amp;quot;null&amp;quot;,ri!userinputsheet.Language),
                          saveInto:{
                            fv!item.Language,
                            a!save(target:ri!userinputsheet.Language,value:save!value),
                            a!save(target:ri!userrole.LANG_ID,
                            value:a!forEach
                            (items:rule!KONE_Development_Language_LanguageId(),
                            expression:if(fv!item.Language=ri!userinputsheet.Language,fv!item.Language_Id,{})        
                            ))
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;CE_LEVEL&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.CE_LEVEL,
                          saveInto: {
                            fv!item.CE_LEVEL,
                            a!save(target:ri!userinputsheet.CE_LEVEL,value:save!value),
                            a!save(target:ri!userrole.LEVEL,value:save!value)
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;Telephone Number&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.Telephone_number,
                          saveInto: {
                            fv!item.Telephone_number,
                            a!save(target:ri!userinputsheet.Telephone_number,value:save!value),
                            a!save(target:ri!userrole.TELEPHONE_NUMBER,value:save!value)
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!textField(
                          label: &amp;quot;Exceptional Case Library View Right&amp;quot;,
                          labelPosition: &amp;quot;ABOVE&amp;quot;,
                          value:fv!item.Exceptional_case_library_view_right,
                          saveInto: {
                            fv!item.Exceptional_case_library_view_right,
                            a!save(target:ri!userinputsheet.Exceptional_case_library_view_right,value:save!value),
                            a!save(target:ri!userrole.IS_EXCEPTION,value:0),
                            a!save(target:ri!userrole.ACTIVE,value:1),
                            a!save(target:ri!userinputsheet.updateTime,value:now()),
                          },
                          refreshAfter: &amp;quot;UNFOCUS&amp;quot;,
                          validations: {}
                        ),
                        a!richTextDisplayField(
                          label:&amp;quot;Update&amp;quot;,
                          labelPosition:&amp;quot;ABOVE&amp;quot;,
                          value:{
                            a!richTextIcon(
                              icon:&amp;quot;check&amp;quot;,
                              link:a!dynamicLink(
                                saveInto:{
                                  a!writeToMultipleDataStoreEntities(
                                    valuesToStore: {
                                      a!entityData(entity: cons!KONE_Development_userinputsheet_Constant, data: ri!userinputsheet),
                                      a!entityData(entity: cons!KONE_Development_userrole_Constant, data: ri!userrole)
                                    }
                                  ),
                                }
                              ),
                              linkStyle:&amp;quot;STANDALONE&amp;quot;,
                              color:&amp;quot;POSITIVE&amp;quot;
                            )
                          }
                        ),
                        a!richTextDisplayField(
                          label:&amp;quot;Delete&amp;quot;,
                          labelPosition:&amp;quot;ABOVE&amp;quot;,
                          value:{
                            a!richTextIcon(
                              icon:&amp;quot;arrow-down&amp;quot;,
                              link:a!dynamicLink(
                                saveInto:{a!save(target:ri!userrole.ACTIVE,value:0),
                                a!writeToMultipleDataStoreEntities(
                                  valuesToStore: {
                                    a!entityData(entity: cons!KONE_Development_userinputsheet_Constant, data: ri!userinputsheet),
                                    a!entityData(entity: cons!KONE_Development_userrole_Constant, data: ri!userrole)
                                  },
                                ),
                                }
                              ),
                              linkStyle:&amp;quot;STANDALONE&amp;quot;,
                              color:&amp;quot;NEGATIVE&amp;quot;
                            )
                          }
                        ),
                        a!richTextDisplayField(
                          label:&amp;quot;Restart&amp;quot;,
                          labelPosition:&amp;quot;ABOVE&amp;quot;,
                          value:{
                            a!richTextIcon(
                              icon:&amp;quot;arrow-up&amp;quot;,
                              link:a!dynamicLink(
                                saveInto:{a!save(target:ri!userrole.ACTIVE,value:1),
                                a!writeToMultipleDataStoreEntities(
                                  valuesToStore: {
                                    a!entityData(entity: cons!KONE_Development_userinputsheet_Constant, data: ri!userinputsheet),
                                    a!entityData(entity: cons!KONE_Development_userrole_Constant, data: ri!userrole)
                                  },
                                ),
                                }
                              ),
                              linkStyle:&amp;quot;STANDALONE&amp;quot;,
                              color:&amp;quot;POSITIVE&amp;quot;,
                            )
                          }
                        ),
                      }
                    )
                  )
                },
              ),
            }
          )
        }
      )
    }
  )
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;would you watch this for me again where it reappear the same error for&amp;nbsp;&lt;span&gt;Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004). The userrole table primariy key as userid, but the username have to be unique as well, I wish to make an update interface but set the userid and username readonly since they are primary key and unique. Theoretically should be insert successfully, how it report this? appreciate your help&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85380?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 08:32:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eb48ce33-2049-4382-9794-af75d8aaf36c</guid><dc:creator>hemalathak803</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you please check the tom-cat log for the root cause? That will help to identify the error.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Hema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85379?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 08:23:37 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:fcbea3bc-0928-4ea4-b3bd-39aab0630c62</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;That is what I already did and it is work well. After clean to empty i let the submit button being disabled until all fields are going to become filled&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85378?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 08:20:33 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:113ec284-80a3-43cb-b9ca-348025794a4e</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;AFAIK you use a!writetodatastore. Why not just clean all the fields using some a!save() in the onSuccess parameter. You already know how to&amp;nbsp;do that from another post.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85376?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 08:09:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:077eb4c9-0667-40df-af52-bcebf0517715</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;Thank you sir, I am new to appian not go that far yet, are there other refer to document i can see such process or UI interface?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85375?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 07:58:13 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:2dd245a1-28ac-432e-b25b-8c04e8baa457</guid><dc:creator>Stefan Helzle</dc:creator><description>&lt;p&gt;OK. Then you might want to prevent the user from clicking twice. Not sure about the exact use case. When I do things like this, I modify the state of the UI in a way the user can not enter the same data multiple times.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: No values have been written. Details: could not insert: [USERROLEDT2804] (APNX-1-4208-004)</title><link>https://community.appian.com/thread/85374?ContentTypeID=1</link><pubDate>Thu, 02 Sep 2021 07:51:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:bbad5701-f670-46f8-9615-31f98537d3ce</guid><dc:creator>immortalvirgil</dc:creator><description>&lt;p&gt;I doubt it might be the name column is unique but that person click twice though auto increment a new userId as primary key but the name is replicated so which not allowed.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>