I am trying to create a new item in another list based on the values from my current item . There is a people picker field in my list which i am copying to the new list.
The return type i get are options for string, login name,user id and using any of them does not work properly . I get the below error "Failed to create item. Invalid data has been used to update the list item. The field you are trying to update may be read only".
Can anyone let me know which is the correct way of creating a people picker field item based on the values we have from current item ?
Solved! Go to Solution.
As a quick work around you can "Set a Variable" you can have a Variable txt_ContactOwner (as a single line of Text) and set it to the People Picker from your list Contact Owner.
I often Have to do it this way.
Hope this helps a bit.
Still I am facing the same error Melissa Castillo! I saved it to a variable and was able to print out (loginname,id etc) and it throws the same error when trying to save it to the People picker field.
Thanks Melissa! I tried your method but before that I guess I had some issues with the People Field Site Column. I republished my content type and it started working.
When you place the variable in a "log History" Action are you getting the correct result?
Have you tried adding a update item to update your Contact Owner with the Variable?
Hi aravind mp,
Glad you got it working. Be sure to mark Melissa's solution (or yours if you solved it yourself) as "Answered". It helps folks like me find your content in the future so we do not have to post the question again.
Did you manage to solve this? As I'm having the same problem. I have tried Melissa Castillo's solution above and am receiving the same error message.
When you set the variable to txt_Person, are you supposed to use a particular option (display name/email address/log in name)?
Hi Katherine Collins,
Try setting the txt_Person to Display Name and capture it in a history log and see that you get.
Hope that helps
Hi Melissa Castillo,
Thanks for the suggestion, I'm getting the user's name printed in the log history, but still receiving the error. Would it be better if I used an update action rather than a create action?
The two actions will yield very different results. Update should be used to update an existing item so you'll need to know the item you wish to target. Create will simply create a new item from scratch.