I have a dataflow pipeline which reads messages from a subscription. It is working fine when messages are coming in correct format. But when messages are not in proper format ,it's throwing error. I decided to use the dead letter topic when there is some bad message it will be pushed to the topic as I can't change the code immediately. I updated the subscription with a dead letter topic and provided necessary permissions. I can see the unack message count increasing in subscription but it's never reaching to dead letter queue.
Questions:
> Why the dead letter functionality is not working,Am I missing anything.
>I can see unack message count in subscription but why I can't see them when I use gcloud pull message.