I am currently trying to migrate a list from one sharepoint to another. I did this a few months ago allready and there it worked not bad. But now I run into problems. The list is a discussion list. I was able to create the new items and update the following fields: 'Body', 'Title', 'Created'. So far this was the same as before. Then i wanted to also adjust the field 'Author' to the respective author of the posting. There i get a client request failed error with the following message:
"Es wurden ungültige Daten zur Aktualisierung des Listeneintrags verwendet. Das Feld, das Sie aktualisieren möchten, ist möglicherweise schreibgeschützt."
"Invalid data has been supplied to update the list item. The field you wish to update may be read only."
First I assumed the problem would be invalid data for the field, maybe getting it from the old sharepoint using getFieldValuesForEdit returned a different format than expected. So I used an author name I knew worked before (the last time i migrated a discussion list) but still the same error. So I think the Author field might actually be read only. Is this possible? If so, is there a way to change that? Or would I need to have server access (powershell, ...) in order to make this field editable?
Another issue arises when I try to add replies to postings into the list. These replies are also part of the main list (on the same level as the actual discussion entries) but have various fields set that identify their respective parents. I tried updating the list items with the appropriate id from the newly created items in the list but they keep showing up as top level and not as replies to the postings. Is there a way to create an item in a discussion list using JSOM that is a repsonse to an existing item?
If you need any code samples for what ive done please leave a comment, I'll post whatever is possible, right now I'd like to avoid to cram this posting full of code. Thank you in advance.