I have a scenario where there are a few data connections hooked up to a primary form. One of those data connections is connected to an assignment list. It consists of 3 columns (Warehouse(Text), Primary User(People/Group), Secondary User(People/Group). This list is meant to be a dynamic source that my main form uses to determine assignments. I have a button that pulls in the data from that list onto my form. I am assigning the DisplayName to my DisplayName, the Account ID to my AccountID and the AccountType to My AccountType. This works just fine when I go to create an item--> all values populate correctly, I can save my form with all of the newly brought in values.
For some reason, every time I open the form after create and try to use the same button, the query runs as normal, but my people/group fields do not populate - assuming they are not already populated. I have validated that the rules are running and they are running with the values I want (I have written the values from the people/group fields to text fields and they appear to be correct).
I did look at the SP logs and it gave me this: Failed to get SPGroupName from GroupID. Error Message: Group cannot be found. Callstack: at Microsoft.SharePoint.SPGroupCollection.GetByID(Int32 id) at Microsoft.SharePoint.WebControls.PeopleEditor.set_SharePointGroupID(Int32 value).The StateManager is disposing and calling ReleaseLockedStates() (Count=0).
Any thoughts? I have not gotten any errors when interacting with the form. I had to pull this from the ULS logs.
I found a 'workaround' of doing the following- (keep in mind this is not a solution, more of a way to narrow down the potential cause):
-Open the form to edit -Change to a different view -Change back to the original view -Press the button and now it populates the values correctly
Any variance of that causes the button not to work, if you press the button first and then navigate away and back, it doesn't work. This is the only way I have found to make this work. What could be causing this behavior??
Thanks, Jesse

0 commentaires:
Enregistrer un commentaire