Skip to main content

On 2023.1.0.0 i’m getting the following python error when uploading a local folder of dwg’s to projectwise. The files are uploaded, but i’d be keen to understand why this error is happening - i thought maybe it was a python version but based on this discussion, it might not be? Projectwise transformers gets 'NoneType' object has no attribute 'encode' error on upload | Community (safe.com)

 

2024-07-24 14:10:57|   5.9|  0.1|ERROR |Python Exception <TypeError>: WebserviceConnectorFactory.set_feature_attributes() missing 1 required positional argument: 'attr_dict'
2024-07-24 14:10:57|   5.9|  0.0|ERROR |Traceback (most recent call last):
2024-07-24 14:10:57|      |     |ERROR |  File "fme-webfs/src/webserviceconnectorfactory\webserviceconnectorfactory.py", line 253, in input
2024-07-24 14:10:57|      |     |ERROR |  File "fme-webfs/src/webserviceconnectorfactory\webserviceconnectorfactory.py", line 1249, in _handleException
2024-07-24 14:10:57|      |     |ERROR |  File "fme-webfs/src/webserviceconnectorfactory\webserviceconnectorfactory.py", line 227, in input
2024-07-24 14:10:57|      |     |ERROR |  File "fme-webfs/src/webserviceconnectorfactory\webserviceconnectorfactory.py", line 578, in _doUpload
2024-07-24 14:10:57|      |     |ERROR |  File "fme-projectwise/src/bentleyprojectwiseconnector\bentleyProjectWiseConnector.py", line 445, in _uploadFolder
2024-07-24 14:10:57|      |     |ERROR |TypeError: WebserviceConnectorFactory.set_feature_attributes() missing 1 required positional argument: 'attr_dict'
2024-07-24 14:10:57|   5.9|  0.0|ERROR |Error encountered while calling method `input'
2024-07-24 14:10:57|   5.9|  0.0|FATAL |ProjectWiseWSGConnector_CALLER (PythonFactory): PythonFactory failed to process feature
2024-07-24 14:10:57|   5.9|  0.0|ERROR |An error has occurred. Check the logfile above for details
2024-07-24 14:10:57|   5.9|  0.0|FATAL |PythonFactory output feature was rejected downstream. Check the logfile above for details
2024-07-24 14:10:57|   5.9|  0.0|ERROR |An error has occurred. Check the logfile above for details
2024-07-24 14:10:57|   5.9|  0.0|ERROR |Error encountered while calling method `input'
2024-07-24 14:10:57|   5.9|  0.0|FATAL |AutodeskDocsConnector_CALLER (PythonFactory): PythonFactory failed to process feature
 

 

 

I am getting some similar python errors when uploading shapefiles to Projectwise.  The files usually upload except when overwriting files of the same name.  Files upload but the python error happens and labels it a failure. Somewhere it’s expecting a string value.

I’m using ArcGIS Pro 2.9.5 and FME Workbench 2023.2 in case that matters

Python Exception <TypeError>: must be str, failed to get string value.
Traceback (most recent call last):
  File "D:\code\fme\foundation\python\fme-webfs\src\webserviceconnectorfactory\webserviceconnectorfactory.py", line 253, in input
  File "D:\code\fme\foundation\python\fme-webfs\src\webserviceconnectorfactory\webserviceconnectorfactory.py", line 1249, in _handleException
  File "D:\code\fme\foundation\python\fme-webfs\src\webserviceconnectorfactory\webserviceconnectorfactory.py", line 227, in input
  File "D:\code\fme\foundation\python\fme-webfs\src\webserviceconnectorfactory\webserviceconnectorfactory.py", line 578, in _doUpload
  File "D:\code\fme\foundation\python\fme-projectwise\src\bentleyprojectwiseconnector\bentleyProjectWiseConnector.py", line 443, in _uploadFolder
TypeError: must be str, failed to get string value.
Error encountered while calling method `input'
ProjectWiseWSGConnector_2_CALLER (PythonFactory): PythonFactory failed to process feature


Reply