[ 
https://issues.apache.org/jira/browse/NIFI-13118?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17842515#comment-17842515
 ] 

ASF subversion and git services commented on NIFI-13118:
--------------------------------------------------------

Commit 99d8433b7dae1e51f2f829b6bc138aa491ab02b1 in nifi's branch 
refs/heads/main from Zoltan Kornel Torok
[ https://gitbox.apache.org/repos/asf?p=nifi.git;h=99d8433b7d ]

NIFI-13118: Add LANGUAGE to property_descriptor list

Signed-off-by: Joe Gresock <jgres...@gmail.com>
This closes #8720.


> 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
>          Time Spent: 10m
>  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