ArcREST icon indicating copy to clipboard operation
ArcREST copied to clipboard

Unexpected keyword argument "multipart" when doing updateItem()

Open SergStol opened this issue 9 years ago • 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 avatar Aug 31 '16 09:08 SergStol

@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

achapkowski avatar Aug 31 '16 11:08 achapkowski

Only encountered with SD files. Have a working process which updates FGDB items where updateItem() works fine with multipart = True.

Using AGOL.

SergStol avatar Aug 31 '16 13:08 SergStol

@SergStol How big is your sd file? I am having trouble reproducing this one.

achapkowski avatar Sep 01 '16 10:09 achapkowski

The ones I have is 13mb and 2mb

SergStol avatar Sep 01 '16 13:09 SergStol