admin管理员组文章数量:1296471
I have a script that reads an Excel document, and using the info from the excel document it adds a file to the sharepoint document library and fills the column information in the document library with the excel information in the row. Only problem is this script seems very fickle. it was working all morning but recently decided to randomly throw out "Error: The file XXXX has been modified by XXXXX on XXXXX." I initially use Get-PnPFile to check if the file already exists, and if it does I'' use Set-PnPListItem to update it. It seems fairly inconsistent as to when this error occurs. Can anyone help? thanks
I am running this script in a virtual machine btw
I have a script that reads an Excel document, and using the info from the excel document it adds a file to the sharepoint document library and fills the column information in the document library with the excel information in the row. Only problem is this script seems very fickle. it was working all morning but recently decided to randomly throw out "Error: The file XXXX has been modified by XXXXX on XXXXX." I initially use Get-PnPFile to check if the file already exists, and if it does I'' use Set-PnPListItem to update it. It seems fairly inconsistent as to when this error occurs. Can anyone help? thanks
I am running this script in a virtual machine btw
Share Improve this question edited Feb 14 at 20:47 Dharman♦ 33.4k27 gold badges101 silver badges147 bronze badges asked Feb 11 at 20:24 DanielJDanielJ 1091 gold badge4 silver badges14 bronze badges 2 |1 Answer
Reset to default 0- If you are using Microsoft OneDrive or Google Drive or some other tool for real-time synchronization of files, pause the synchronization while doing this work.
- If Microsoft Office updates are occurring while doing this work, wait for the updates to finish.
- If you have granted someone access to the files you are working on, remove the access while doing this work.
- (Optional) If you have shared the folders you are working on, remove the sharing while doing this work.
本文标签:
版权声明:本文标题:windows - Randomly getting a "Error: The file A has been modified by A on A." when running Set-PnPListItem - S 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741636897a2389689.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
Error: The file XXXX has been modified by XXXXX on XXXXX.
isn't afaik a PowerShell error. Where do the XXXX stand for? (sample file name, is this the account that the script runs under? is it modified during the scripts execution?) what line of code failed? Please read: how to ask. – iRon Commented Feb 12 at 8:16