In the future please include your flow in the thread. In order to make code more readable and importable it is important to surround your code with three backticks
`like this`
You can edit your post by clicking the pencil icon to see how I added your flow.
See this post for more details - How to share code or flow json
It is also helpful in getting help, it you provide the full name of any contrib nodes you are using.
what is the 'Memory' node used in the sub flow - full name please.