shareplum icon indicating copy to clipboard operation
shareplum copied to clipboard

UpdateListItems - IndexError

Open platocha opened this issue 5 years ago • 3 comments

First of all - thank you for the magnificent module. I have one recurring error while I try to add new items to the list. I have sharepoint on-premise and I try to upload around 6000 items. The error appears after random number of items already uploaded.

File "C:\Python\lib\site-packages\shareplum\list.py", line 476, in update_list_items results = envelope[0][0][0][0] File "src\lxml\etree.pyx", line 1162, in lxml.etree._Element.__getitem__ IndexError: list index out of range

Could you please check what could be the issue? If I need to upload less items at once, I can split the dictionary.

platocha avatar Apr 06 '20 06:04 platocha

One comment - I have no issues while I upload 100 items at once.

platocha avatar Apr 06 '20 18:04 platocha

Do it actually upload the data? It looks like parsing the result is the failure.

On Mon, Apr 6, 2020 at 1:30 PM platocha [email protected] wrote:

One comment - I have no issues while I upload 100 items at once.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jasonrollins/shareplum/issues/75#issuecomment-609963080, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOVTVRB2QGJXQQSQ2HTJVLRLINTZANCNFSM4MB75AJA .

jasonrollins avatar Apr 06 '20 22:04 jasonrollins

Hi, sorry for the long response. It works when I load 100 items at once. It fails when I try to load all of them at once and it stops at some point e.g. after 1590 lines. I have changed the code, I have changed the data and still see this error. I have the controls to be sure that there are no errors like entering Null where only number is possible.

platocha avatar Jun 01 '20 13:06 platocha