Hey All,
I have a referenced feature layer and a hosted feature layer. I need to add or copy the features from the hosted feature layer to the referenced feature layer.
I currently have a script that copies features from one hosted feature layer to another hosted feature layer. If I now use a referenced feature layer I get the following error message: TypeError: unsupported operand type (s) for +: 'FeatureLayer' and 'str'
Is it not possible at the moment?
I use the edit_features function for this
Solved! Go to Solution.
Looking at the error, is FeatureLayer an object? They both need to be strings to be concatenated by the + so make sure both variables are strings.
Sharing your code would help others identify what the problem is. A TypeError may be a very simple fix.
Have you gotten this process to work in the past, or are you still developing it?
Looking at the error, is FeatureLayer an object? They both need to be strings to be concatenated by the + so make sure both variables are strings.
Yes thank you, this was my problem. The referenced feature layer variable was not a str