[ 
https://issues.apache.org/jira/browse/NIFI-13118?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Joe Gresock resolved NIFI-13118.
--------------------------------
    Fix Version/s: 2.0.0-M3
       Resolution: Fixed

> ChunkDocument python processor not works with Split code - 'NoneType' object 
> has no attribute 'getValue'
> --------------------------------------------------------------------------------------------------------
>
>                 Key: NIFI-13118
>                 URL: https://issues.apache.org/jira/browse/NIFI-13118
>             Project: Apache NiFi
>          Issue Type: Bug
>    Affects Versions: 2.0.0-M1, 2.0.0-M2, 2.0.0-M3
>            Reporter: Zoltán Kornél Török
>            Assignee: Zoltán Kornél Török
>            Priority: Major
>              Labels: python
>             Fix For: 2.0.0-M3
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> When you want to use ChunkDocument with split code settings we got :
> {code:java}
> PythonProcessor[type=ChunkDocument, id=e1f5691a-4845-3529-9b8b-052300f15375] 
> Failed to transform FlowFile[filename=1ad079db-cb83-49bc-8208-c1e35c5d8c52]: 
> py4j.Py4JException: An exception was raised by the Python Proxy. Return 
> Message: Traceback (most recent call last):
>   File "/opt/nifi/nifi-current/python/framework/py4j/java_gateway.py", line 
> 2466, in _call_proxy
>     return_value = getattr(self.pool[obj_id], method)(*params)
>   File "/opt/nifi/nifi-current/python/api/nifiapi/flowfiletransform.py", line 
> 33, in transformFlowFile
>     return self.transform(self.process_context, flowfile)
>   File "/opt/nifi/nifi-current/./python/extensions/ChunkDocument.py", line 
> 281, in transform
>     split_docs = self.split_docs(context, flowfile, documents)
>   File "/opt/nifi/nifi-current/./python/extensions/ChunkDocument.py", line 
> 212, in split_docs
>     language=context.getProperty(self.LANGUAGE).getValue(),
> AttributeError: 'NoneType' object has no attribute 'getValue' {code}
> It seems the LANGUAGE property is missing from the property_descriptors list, 
> and because of that it is not appear on the ui and the default value also not 
> initialize properly.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to