You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by "Adam Fisher (JIRA)" <ji...@apache.org> on 2019/03/31 23:14:00 UTC

[jira] [Created] (NIFI-6167) PutSlack Processor Attachments Expression Language Error

Adam Fisher created NIFI-6167:
---------------------------------

             Summary: PutSlack Processor Attachments Expression Language Error
                 Key: NIFI-6167
                 URL: https://issues.apache.org/jira/browse/NIFI-6167
             Project: Apache NiFi
          Issue Type: Bug
          Components: Core Framework
    Affects Versions: 1.9.0
            Reporter: Adam Fisher
         Attachments: PutSlackError.jpg

While using *PutSlack* processor, add the following JSON payload as the dynamic property value for an attachment:

{code:java}
{
"fallback": "A flow in Apache NiFi has failed or experienced an error. ${now:format('h:mm a')}",
}
{code}

This produces a validation error that the JSON can not be parsed. It doesn't matter where the EL is placed (e.g. different JSON fields) it always complains about EL even though the documentation supports EL. 

 !PutSlackError.jpg! 

Perhaps there a trick to embedding EL inside JSON quotes I am missing?



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)