Skip to content
This repository has been archived by the owner on Mar 31, 2020. It is now read-only.

Unexpected keyword argument "multipart" when doing updateItem() #291

Open
SergStol opened this issue Aug 31, 2016 · 4 comments
Open

Unexpected keyword argument "multipart" when doing updateItem() #291

SergStol opened this issue Aug 31, 2016 · 4 comments

Comments

@SergStol
Copy link

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.

@achapkowski
Copy link
Collaborator

@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

@SergStol
Copy link
Author

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

Using AGOL.

@achapkowski
Copy link
Collaborator

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

@SergStol
Copy link
Author

SergStol commented Sep 1, 2016

The ones I have is 13mb and 2mb

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants