A call to the RemoveAndAddFeaturesMethod of an instance of the featureservicetools class in the featureservicetools.py module with and id_field name of an int datatype resulted in the following error,
error in function:
error on line: 127
error in file name: C:\Python27\ArcGISx6410.4\lib\site-packages\arcresthelper\featureservicetools.py
with error message: TypeError: sequence item 0: expected string, int found
I was able to get past the issue by replacing the line 127 of the code that reads
idstring = ' in (' + ','.join(idlist) + ')'
with
idstring = ' in (' str(idList).replace('[','(').replace(']',')')
I think it has something to do with the fact that the id_field I supplied to the method call has a data type of int. But just consider me a newb with all this. Nevertheless I hope it helps.
ArcRestHelper
8/23/16
Bug
Repo Steps
A call to the RemoveAndAddFeaturesMethod of an instance of the featureservicetools class in the featureservicetools.py module with and id_field name of an int datatype resulted in the following error, error in function: error on line: 127 error in file name: C:\Python27\ArcGISx6410.4\lib\site-packages\arcresthelper\featureservicetools.py with error message: TypeError: sequence item 0: expected string, int found
I was able to get past the issue by replacing the line 127 of the code that reads idstring = ' in (' + ','.join(idlist) + ')' with idstring = ' in (' str(idList).replace('[','(').replace(']',')')
I think it has something to do with the fact that the id_field I supplied to the method call has a data type of int. But just consider me a newb with all this. Nevertheless I hope it helps.