Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

InvokeAWSGatewayApi - can't use flow file attributes in Query Parameters

InvokeAWSGatewayApi - can't use flow file attributes in Query Parameters

New Contributor

We are using the InvokeAWSGatewayApi processor, but we want to use flow file attributes in the Query Parameters, but we can not.

The documentation specifically says we can do this:

Query Parameters

The query parameters for this request in the form of Name=Value separated by &
Supports Expression Language: true (will be evaluated using flow file attributes and variable registry)


but when we put the following in for the query parameters:

contextId=ae&parentId=${parentId}&customerId=${customerId}


we are supposed to get back a customerKey and emailAddress, but instead we get:

{"payload":{"contextId":"ae","ae":{"parentId":"","customerId":""}}}


I made sure the values were set correctly (printed parentId and customerId to the log). We can hardcode the values and get a valid response back. If I put in 5 and 5 it returns:

{"payload":{"contextId":"ae","ae":{"parentId":"5","customerId":"5","customerKey":"xldoe123","emailAddress":"5qvy01"}}}


That is how things are supposed to looks. In all cases the processor returns 200. Which tells us nothing.


How many of you have used this processor? Can anyone tell me why this won't take attributes?

Oh, we have tried this with versions 1.7.1 and 1.8.0.


Thanks

Don't have an account?
Coming from Hortonworks? Activate your account here