Person or Group field not storing data that is entered.

Hi guys,
I'm having a bit of a frustrating time trying to import the records of 900+ staff members into a list and then create a view that shows only the currently signed in user.
Now I've got my list all sorted out lovely and the way we have it set up is that the users payroll ID is their unique ID for everything, their log in for AD and SharePoint. This gives us a nice advantage and I'd hoped that with a column in our list with
the users Payroll ID we could use that to match the username of the currently logged in user, I was wrong as it will only allow me to use a person or group column.
MY ISSUE is that when trying to copy the column containing the Payroll ID, which is also the users username in SharePoint, in Datasheet view into the person/group column I get the following error for most of records (some of them do work and contain the
information correctly).
"The text entered for Username isn't an item from the list. Select an item from the list, or enter text that matches one of the listed items."
After getting frustrated at that I then edited our Info Path form for users to modify their details with and added a field that linked to the column. When in the form this field accepts the payroll ID and outputs the users SharePoint name (not username)
as expected but when saving the form it doesn't update the column.
Any suggestions?

I suspect the reason you can't insert the users automatically is that the users haven't visited or been mentioned on that site previously. SharePoint caches user data (in the hidden user information list) on each site collection which means that if you were
to copy and paste a user who hasn't been on the site before it'll fail to find them in the cache. In normal circumstances using the people picker it'd identify the cache is empty and check for the user in AD but it may be failing for you in datasheet view.
To confirm find one of the users that failed as part of the C&P, add an entry for them manually, delete it and then re-try the copy and paste.

Similar Messages

  • Save history values of person or group field in another person or group field

    Hi
    I have a person or group field in sharepoint list that users can assign task to colleagues by this column. Every time value of this field changed and I want to save
    these values in another person or group field (for history and 
    filter view base on it).
    How I can do this?
    Thanks.

    I create workflow variable and give it these values:
    First Person/Group value,(Display Names, Semicolon Delimited),
    Second Person/Group value,(Display Names, Semicolon Delimited)
    Then I set this variable to Second Person/Group but it's give me error and does not work.

  • Start Routine to Populate Account Group Field from Master data of 0Customer

    Hello Friends. Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer. I do not want to use read from master data functionality since that field 0customer is not there in dso but similar field 0debitor is there. so i want to put this code
    during the load from source DSO to Target DSO.
    Error Explicit length specifications are necessary with types C, P, X, N und
    DATA: L_S_DP_LINE TYPE DATA_PACKAGE_sTRUCTURE.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
        DATA: l_S_comp type comp.
        DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer INITIAL SIZE 0.
    IF  L_th_COMP[] IS INITIAL.
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING FIELDS OF TABLE L_th_COMP.
    ENDIF.
    LOOP AT SOURCE_PACKAGE INTO L_S_DP_LINE.
    READ TABLE L_TH_COMP INTO L_S_COMP WITH TABLE KEY CUSTOMER = L_s_DP_LINE-CUSTOMER
    IF SY-SUBRC = 0.
    L_S_DP_LINE-/BIC/ACCNT_GRP = L_S_COMP-/BIC/ACCNT_GRP.
    MODIFY SOURCE_PACKAGE FROM L_S_DP_LINE.
    ENDIF.
    ENDLOOP.
    soniya kapoor
    Message was edited by:
            soniya kapoor

    Hello Wond Thanks for Good Answer and good option, But Client does not like this option and does not like Nav Attribute so he does not want to turn on any Nav Attribute, In general also We hav requirement to read a third table while uploading 1 dso table to 2 dso table,
    so  Please help me edit this ABAP code to make it work. I am putting this code in start routine in between two DSO. where I am using the
    Start Routine to Populate Account Group Field from Master data of 0Customer.
    No syntax Error But during the load it is updating the source table and not the target table. how to define now target table.
    ***SOURCE DSO Table
    types: begin of typ_tgl1.
        include type /BIC/AZDAFIAR000.
        types: end of typ_tgl1.
        types: begin of comp,
         CUSTOMER       type  /BI0/OICUSTOMER,
         ACCNT_GRP          type /BI0/OIACCNT_GRP,
       end of comp.
    DATA: L_th_COMP TYPE HASHED TABLE OF COMP WITH UNIQUE KEY customer
    INITIAL SIZE 0.
      data: wa_itab type COMP.
        data: wa_zdtg type typ_tgl1.
    IF  L_th_COMP[] IS INITIAL.
    ***Master Data Table
    SELECT CUSTOMER ACCNT_GRP FROM /BI0/PCUSTOMER APPENDING CORRESPONDING
    FIELDS OF TABLE L_th_COMP.
    sort L_th_COMP by CUSTOMER.
    ENDIF.
    LOOP AT L_th_COMP into wa_itab.
    select * from /BIC/AZDAFIAR000 into wa_zdtg
                        where DEBITOR  eq wa_itab-CUSTOMER.  *** SOURCE DSO Table
    IF SY-SUBRC = 0.
    wa_zdtg-ACCNT_GRP = wa_itab-ACCNT_GRP.
    MODIFY /BIC/AZDAFIAR000 from wa_zdtg. *** modify SOURCE DSO Table
    ENDIF.
      endselect.
        endloop.
    soniya kapoor

  • How to modify person or group field value with new value

    Hi
    I have person or group field having property Person Only.
    Thsi firls already have one value. Now I want to update it but this code to update value is not working.
    string myName = @"ABC\myname";
    web.EnsureUser(myName);
    SPUser myUser = web.SiteUsers[myName];
    SPFieldUserValue myNamevlaue = new SPFieldUserValue(web, myUser.ID, myUser.LoginName);
    oSplistItem["My_x0020_User"] = myNamevalue;
    oSplistItem.Update();
    I am getting myNamevalue correct in the veriable. But why its not updating in the list?
    is there any issue in the above code?
    Do I need to delete previous value and then update new value in this field? How?

    Hi,
    The format of the user value in people/Group field must be
    ID;#Name, you can use the following code snippets to update the people/group field.
    string loginName = "ABC\\myname";
    SPUser user = web.SiteUsers[loginName];
    SPList list = web.Lists.TryGetList("ListName");
    if (list == null)
    Console.WriteLine("list is not exist!");
    return;
    SPListItem item = list.GetItemById(3);
    item["My_x0020_User"] = user.ID.ToString() + ";#" + user.Name;
    item.Update();
    Thanks,
    Jason
    Please remember to mark the reply as answer if it help, and unmark the answer if it provide no help.

  • How to add users from person or group field in a sharepoint list to sharepoint group

    Hi,
    How to add users(single or multiple) from person or group field in a sharepoint list to sharepoint group programmatically?
    Any suggestions would be appreciated.
    Thank you,
    AA.

    Hello,
    Use SPGroup.AddUser() method to add user in group. I have just written sample code in notepad so it is not tested:
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
    Using(SPWeb Web = Site.OpenWeb())
    SPList list = web.Lists["ListName"];
    SPQuery query=new SPQuery ();
    query.Query = "<Where><Eq><FieldRef Name='Title' /><Value Type='Text'>Test</Value></Eq></Where>";
    SPListItemCollection items = list.GetItems(query);
    if(items.Count > 0)
    foreach(SPListItem item in items)
    //Get USers from person or group column
    SPFieldUser userField = (SPFieldUser)item.Fields.GetField("Users");
    SPFieldUserValueCollection userFieldValueCollection = (SPFieldUserValueCollection)userField.GetFieldValue(item["Users"].ToString());
    SPGroup spGroup = spSite.RootWeb.Groups[groupName];//group name
    if (users.Count != 0)
    bool isUserInGroup = false;
    foreach (SPFieldUserValue user in users)
    foreach (SPUser item in spGroup.Users)
    string itemUserName = item.LoginName;
    string UserName = user.User.LoginName;
    if (itemUserName == UserName)
    isUserInGroup = true;
    break;
    if (!isUserInGroup)
    spGroup.AddUser(user.User);
    The above code will query list item and then get users from "Users" column. Now it will check whetehr user is already in group not, if not then add user in group.
    http://rajanijilla.blogspot.sg/2012/09/add-users-to-group-programmatically.html
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How to Insert Sharepoint 2013 Person or Group Field using VBA

    Hello,
    How to Insert Sharepoint 2013 Person or Group Field using VBA , I tried set the field with ID / ID;Name / Name
    but all failed, Please advice 
    Function SetSP_Field(F_Yer As Single, F_WekNo As Single, F_ProjectNum As String, strField As Variant, strFieldValue As Variant) As String
    ' test code
        Dim rst         As Recordset
        Dim strSQL      As String
        Dim SP_RecSet   As ADODB.Recordset
        Set SP_RecSet = New ADODB.Recordset
        SetSP_Field = False
        strSQL = "Status Report"
        On Error Resume Next
        Call SP_Connect(2)
        strSQL = "select " & SP_List & ".* From  " & SP_List _
               & " Where [Year] = " & CInt(F_Yer) _
               & "   and [WeekNo] = " & CInt(F_WekNo) _
               & "   and [Compass_Code] = '" & F_ProjectNum & "' ; " _
    '           & " Set " & strField & " = " & strFieldValue
        'Debug.Print strSQL
        'Debug.Print SP_CN
        SP_RecSet.Open strSQL, SP_CN, adOpenStatic, adLockOptimistic
        If SP_RecSet.RecordCount = 0 Then
            Debug.Print "Record for project: " & F_ProjectNum & " not found"
            LogFile.WriteLine ("Record " & strID & " not found")
        End If
        If Not SP_RecSet.EOF Then
            'SP_RecSet.Edit
            SP_RecSet.Fields(strField) = strFieldValue
            SP_RecSet.Update
            If Err.Number <> 0 Then
                MsgBox ("SP Update Error: " & Err.Description)
                GoTo Exit_Fun
            End If
            SetSP_Field = True
        End If
    Exit_Fun:
        SP_RecSet.Close
        Set SP_RecSet = Nothing
    End Function

    Hi Tim,
    Let’s verify the followings:
    Whether this issue occurred for other lists in the same site.
    Whether this issue occurred for all users who don’t have full control.
    Whether this issue occurred on other sites.
    When you created the people & group column, which show field did you used? Please try to use a different show field for the people & group column, compare the result.
    In addition, please check if the link is useful:
    http://www.learningsharepoint.com/2013/08/21/empty-value-in-people-picker-after-saving-the-list-form-in-sharepoint/
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Sorting and filtering by select-multi person or group field in the list in SharePoint 2013

    Hi everybody,
    In SharePoint 2013, I have defined a column as "Person or Group" field, which you allow for multiple selections. when I try to sort/filter it by this field in the list. The field doesn't show up in the dropdown. If I changed "Allow multiple
    selections" option to "No" by clicking the column name to edit it in "List Settings", the field can show up sort in the dropdown.
    How about support sorting and filter by select-multiple "Person or Group" field in sharepoint 2013?
    BTW, in SharePoint 2010, it can support this issue no matter what the "Allow multiple selections" option the request is.
    Any help would be great!
    Thanks,
    Jodie

    Hi Jodie,
    Can you please give this as a try.
    To fix the Filter Issue on Assigned To Column. We need to run the following scripts.
    The field which allows more than one values or which allows multiple selections. The multi-valued fileds are non-sortable,
    non-filterable. Multi-valued fields cannot be indexed
    $web=Get-SPWeb
    $list=$web.Lists[] $field=$list.Fields[ColumnName] $strSchema=$field.SchemaXml $str=Schema$strSchema.Replace("Sortable=`"FALSE`"","Sortable=`"true`"")
    $field.SchemaXml = $strSchema
    Krishana Kumar http://www.mosstechnet-kk.com
    Thanks for your reply, I have tried to run the scripts, but it still cannot work. The following is my scripts:
    $web=Get-SPWeb 'http://cst-server-01'
    $list=$.web.Lists["Product Request"]
    $field=$list.Fields["Applicant"]
    $strSchema=$field.SchemaXml
    $str=Schema$strSchema.Replace("Sortable='"FALSE'"", "Sortable='"True'"")
    $field.SchemaXml = $strSchema

  • Copy person & group field value to another person or group field programmatically

    Hi 
    I have one user list in SharePoint sitecollection1 having User in Title(having simple user name) and UserName in Person or Group type field.
    I want to copy this list into my site list with same column names programatically using timer job.
    How I can copy the person or Group field from siteColletion1 to person or group field of sitecollection2(my site),
    as both column types are same.
    Pleas suggest any solution.

    I am getting user name and user id using following code,
    foreach (Microsoft.SharePoint.Client.FieldUserValue userValue in oclistItem["UserName"] as Microsoft.SharePoint.Client.FieldUserValue[])
    string username =    userValue.lookupValue.tostring();                               
    But how to get the login name ? or how can I get the User Object from this field?
    Anybody got this type of issue before.
    Please suggest any solution

  • Custom list 2013 user have access to only data that they entered

    I am using a custom list 2013 that is updated by InfoPath 2013 and I am using Workflow 2013. I have set the following options in the advance settings for the custom list to be the following:
    1. Read access-Read items that were created by the user,
    2. create and Edit access: create items and edit items that were created by the user.
    I basically want the users to only have access to the entries they made to the custom list.
    This seemed to work ok at first. Now some of the users can see files created by the other person.
    This is may first sharepoint 2013 project and I have been changing permissions on various groups due to what I am testing at the time with my user test accounts. Could this be the reason why my test accounts can see the data entered by each other?
    For the users to be able to enter data into a test custom list 2013 and only see the data they entered, should the users only have 'edit' permission access? Does the permission levels make a difference?
    Basically can you tell me what I can do so that the users can only see the data that they entered?

    Hi wendy,
    In SharePoint permissions, "Override List Behaviors" permission can  discard or check in a document which is checked out to another user, and change or override settings which allow users to read/edit only their own items.
    By Default, the Edit permission level doesnot contain "Override List Behaviors" permission, the Design permission level and the Full control permission level contains "Override List Behaviors" permission. So if your user account has Design
    permission or Full control permission, the user can see files created by the other person.
    Thanks,
    Eric
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Eric Tao
    TechNet Community Support

  • Workaround to using "Person or Group" field in a "Calculated" column formula?

    Apparently, SharePoint does not allow you to insert a "Person or Group" column into a "Calculated" field's formula.
    Is there a workaround to adding a "Person or Group" column into a "Calculated" field's formula?
    -Maybe a way of coverting the data from the Person or Group column into a text field, and referencing that text field in the formula?
    Microsoft mentions only Columns of the following data types can be referenced in a formula: single line of text, number, currency, date and time, choice, yes/no, and calculated.

    Hi AskMicrosoft,
    Have you tried to use a workflow?
    1 Create a new text column in the list.
    2 Create a workflow and use
    Update item in this list Action > Add the new text column to the value in people and group column.
    Then you can add the text column in calculate formula.
    Hope it helps.
    Best regards. Emir

  • Some SQL fields not showing data in Crystal XI R2

    I have a report that is using a stored procedure.  In this stored procedure we have many fields that are being passed over to Crystal.  A small portion of these fields do not show any data when you browse them in Crystal.  But when you check on the SQL Server 2005 side, they contain data.  So we know that the issue is probably on the Crystal side because there is data on the SQL side.
    I originally thought that the problem may be caused by Null values in the database, but I used Crystal to convert the Null's to numeric zero if it was a number, and still there was no data showing up.
    Also in the stored procedure, we are passing 2 parameters a start and end date.   But that seems irrelevent to why some of the fields are not containing data like they should.
    Why would some fields show no values at all, and some fields shows values? 
    Any ideas on how to correct this situation so data will show up for all the fields like they are suppose too?
    Thanks everyone for their help!

    Hi Levi,
    Pleaase check the following :
    1. Other than storedprocedure are you adding any tables to your report ? If so, check the links between your stored procedure.(Through Database Expert)
    2.Write the following formula to find out whether the database fields contains values or not.
    if isnull() or = " " Then
    "This Field is Empty"
    Else
    Drag and dwop this formula in your report to get the field values.
    Thanks,
    Sastry

  • Ledger Group field NOT showing in FB03 after activating Non- Leading ledger

    Dear All Experts,
    I have activated non leading ledger for my company code and posted the document successfully from FB60. Now coming to FB03 I can see the document in Local Currency and Group Currency - USD but the Ledger Group field still shows complete blank. As I guess it MUST show 1F ( Non Leadig Ledger ) which is my non leading ledger.
    Where I missed the configurtation step ? If anybody has gone through the same issue please guide or provide some inputs.
    Regards,
    Revati Joshi.

    Non-leading ledger use t codes FB01L and FB50L
    The reason that the Ledger Group 0L is being used it´s because the Accouting Principle of your Valuation Area.
    What you have to do is you need to create a new Ledger Group and assgn it to your valutaion area.
    Then you assign this accounting principle to the valution area.
    Then assign the accounting principle to no Ledger Group.
    Please see the customizing path:
    Define new Ledger Group:
    Financial Accounting (New)>Financial Accounting Global Settings (New)>Ledgers>Ledger>Define Ledgers for General Ledger Accounting (dont active your new ledger as leading ledger. leave the standard as the leading )
    Assign Accounting Principle to none New Gl Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Check Assignment of Accounting Principle to Ledger Group
    Assign your Valuation Area to the accounting principel just assigned to none NewGL Group:
    Financial Accounting (New)>General Ledger Accounting (New)>Periodic Processing>Valuate>Assign Valuation Areas and Accounting Principles
    Now you have more then one Ledger Group in you client (which is not being used for nothing) and you have a valuation area that is linked to a Accounting Principle that is linked to no Ledger Group.
    Go ahead now and execute the FAGLF101. You will see that the standard will not try to inform leading ledger in the Group of Ledger.
    I found this solutiong debbuging the standard. Took me quite a bit to discover.
    The problem was in SPRO->Financial Accounting(New)->General Ledger Accounting(New)->Periodic Processing->Valuate->Check Assignment of Accounting Principle to Ledger Group. In "Target Ledger Group" field, the ledger "0L" were configured in BRAP and GAAP. So, the system automatically assigned the ledger "0L" when performing FAGLF101.

  • What is reason  for authrorization group field not showing in FD01 tocde

    Hi,
      The authrization group is showing  under Control data  when i am creating the customer manually by using the tcode FD01.but when i am creating the customer through BDC program  by using same tcode its giving the error message
    error message is aurization group( Field KNA1-BEGRU. does not exist in the screen SAPMF02D 0120  ).
    can any body  help on the above issue if knows.

    perhaps check field-sttuas of your account group
    tcodes: ob23 and obd3
    Message was edited by:
            Andreas Mann

  • How do I populate a "Person or group" field via Elements.xml?

    So I have created a field titled "EmployeeName" and it's a "Person and Group" type. (View the Schema.xml below)
    <Field Name="EmployeeName" ID="{8579a35a-71a8-4070-b907-b6ede0daa352}" DisplayName="Employee Name" Type="User" />
    Now, I'm trying to populate the column via the Elements.xml file. As you can see by the commented out code below, I've tried every combination and I'm still unable to populate this column:
    <ListInstance Title="Employee_Rec_list" OnQuickLaunch="TRUE" TemplateType="10000" Url="Lists/Employee_Rec_list" Description="My List Instance">
    <Data>
    <Rows>
    <Row>
    <!-- <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">i:0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">0#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">#.f|membership|[email protected]</Field>
    <Field Name="EmployeeName">[email protected]</Field> -->
    <Field Name="EmployeeName">[email protected]</Field>
    <Field Name="Achievements">Rock Star</Field>
    <Field Name="Achieve_x005f_Des">Cras congue varius metus, in tincidunt metus Vestibulum vel turpis nec leo porttitor pulvinar fringilla ut lacus. a dictum aliquam. Pellentesque non felis cursus, lobortis, mattis arcu. Duis molestie nisi quis lectus tincidunt, a porttitor turpis iaculis. Donec condimentum, tellus sit amet hendrerit aliquet, est eros faucibus nulla, eu ultricies ligula ante id quam. Suspendisse suscipit orci sit amet vestibulum ultrices. Nunc dictum tortor non magna volutpat</Field>
    </Row>
    </Rows>
    </Data>
    </ListInstance>

    Ok I figured it out. You need to you use the users ID.
    <Field Name="EmployeeName">15</Field>

  • Oracle apps R12.1.3 Key Flex fields not retrieving Data Automatically

    Dear All,
    I have developed a custom form with 10G forms in R12.1.3 version,
    i have attached the Stock Locator Flex field to one of the column i am able to attach the KFF but no values are returning in that ,
    it always says no exsisting combination
    Pls find below how i am calling the Flex field
    FND_KEY_FLEX.DEFINE(
    block => 'TNV_DEMO_SO_SERIAL_INFO_V',
    Field => 'LOCATOR_KFF_ID',
    Description => 'LOCATOR_KFF_DESC',
    ID => 'LOCATOR_ID',
    autopick => 'Y',
    Appl_short_name => 'INV',
    Code => 'MTLL',
    Num => '101',DISPLAYABLE => 'ALL',
    VRULE => '\\nSUMMARY_FLAG\\nI\\nAPPL=INV;NAME =INV_VRULE_POSTING\\nN',
    VALIDATE=>'FULL',
    QBE_IN=>'Y',
    DERIVE_ALWAYS=>'Y',
    updateable => '');
    Pls suggest.

    yes i have used template.fmb only , and am using FND_KEY_FLEX.DEFINE as i mentioned earlier ,
    i have not given any where clause -- should we give any where clause to retrieve the data into the combinations(LOV)?It depends on what values you want to retrieve.
    i mean my requirement is if i give % and press tab all the valid combinations should be displayed.
    its showing no entries found.Did you review 420787.1 referenced above?
    Thanks,
    Hussein

Maybe you are looking for

  • External hard drive and SD card won't auto mount

    I am using MBP with retina on Yosemite. MacBook Pro (Retina, 15-inch, Late 2013). On Maverick, all my external drives used to auto mount. The same was true just after Yosemite was installed. Lately, only my Time Machine hard drive auto mounts and oth

  • Adobe Flash Player 11.4 quits working, won't show videos even after reinstalling.

    Had Adobe Flash Player 11.3 r300 and it stopped showing videos, etc. in Firefox a few days ago. Now I've installed v 11.4 r402 and it still gives error message "Adobe Flash Player ... has stopped working." I uninstalled, downloaded again and reinstal

  • Deleting items from download queue

    How do I delete items from my download queue permanently? I know you can just delete them... but they always come back! I had bought season 3 of supernatural a while back, and I know they messed up some stuff and just fixed it, which is nice, but I d

  • Only one person can't receive messages I send with my Macbook Pro

    For a while, I've been able to send messages to a friend of mine (who is using an iPhone) with the Messages app on my Macbook Pro, but all of a sudden she couldn't receive any messages I sent her, although I could receive messages she sent to me. We

  • Safari prefs show zsh in default web browser

    I have uninstalled firefox and trashed all preferences and the application support folder. Now for some reason, in Safari preferences in the default web browser drop-down there is an item labeled with a folder named 'zsh'. This shows up along with Sa