Hi @Almas Mahfooz ,
Thank you for posting in this community.
I'm glad to hear you solve the problem, by the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others." and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:
Current status:
The issue has been solved. The solution is: change 'current items' in Apply to each 2 action to "Lines" from Predict action step.
You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community member's to see the useful information when reading this thread. Thanks for your understanding!