Unexpected keyword argument "multipart" when doing updateItem()
SergStol opened this issue · 4 comments
ArcRest or ArcRestHelper
ArcRest
Version or date of download
3.5.3
Bug or Enhancement
Bug
Repo Steps or Enhancement details
Started getting this error when updating existing Service Definition item in AGO. Does not work with multipart set to True:
ip = arcrest.manageorg.ItemParameter()
ip.type = "Service Definition"
ip.description = "Description"
ip.tags = "Tags"
ip.overwrite =True
newItem = item.updateItem(itemParameters=ip, data=path_to_SD_file, clearEmptyFields = True, multipart = True)
I get:
Error processing main updateItem() got an unexpected keyword argument 'multipart'
Works fine with no multipart argument set.
@SergStol Does it just occur with sd files or every file?
The updateItem() has multipart as a value.
What version of portal are you using or is this AGOL?
https://github.com/Esri/ArcREST/blob/master/src/arcrest/manageorg/_content.py#L1646
Only encountered with SD files. Have a working process which updates FGDB items where updateItem() works fine with multipart = True.
Using AGOL.
@SergStol How big is your sd file? I am having trouble reproducing this one.
The ones I have is 13mb and 2mb