# PDF Extract Text cannot continue on Failure

**URL:** <https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895>\
**Category:** Need help\
**Created:** [June 26, 2024, 11:34am UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895 "2024-06-26T11:34:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![lsc64](https://community.activepieces.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lsc64](https://community.activepieces.com/u/lsc64)\
**Post date:** [June 26, 2024, 11:34am UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/1 "2024-06-26T11:34:07Z")

</div>

I have a flow that starts by receiving an email and iterates in a loop over the attachments.

 ![image](https://community.activepieces.com/uploads/default/original/2X/0/0c87e20d7ba2b69d5fc0704d5d4697ac0f522c4b.png)  
For each attachment, I try to extract the text. Some attachments are not PDFs though, so I would like to check if the extraction was succesfull by checking if the extracted text exists  
 ![image](https://community.activepieces.com/uploads/default/original/2X/0/0a68547cf6a0f66cff0d0d9810f341f8a4f05f02.png)  
The issue is, I can’t toggle on _Continue on Failure_ for the “Extract Text” step. The button is clickable and it changes to flow to draft state, but nothing changes. It wont get activated. I can activate it for all other blocks just fine, but not for this one where I actually need it.  
 ![image](https://community.activepieces.com/uploads/default/original/2X/5/5ae4ba3eb2c5669dcd855234c7bcb45dead84d6a.png)  
Is this a known issue? How do I activate _Continue on Failure_ for PDF _Extract Text_? Or how can I check if it has sucessfully extracted text?

---

<div class="post-metadata">

**Author:** ![Bram](https://community.activepieces.com/user_avatar/community.activepieces.com/bram/32/2705_2.png) [@Bram](https://community.activepieces.com/u/Bram)\
**Post date:** [June 26, 2024, 2:53pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/2 "2024-06-26T14:53:55Z")

</div>

Hi @lsc64,

I think your solution lays on step deeper in the loop item, there you can find your details/PDF

 ![image](https://community.activepieces.com/uploads/default/original/2X/b/b929bf89a011041805156221da51110ab26979bf.png)

Let me know if this worked for you.

KR Bram

---

<div class="post-metadata">

**Author:** ![lsc64](https://community.activepieces.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lsc64](https://community.activepieces.com/u/lsc64)\
**Post date:** [June 26, 2024, 5:13pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/3 "2024-06-26T17:13:32Z")

</div>

thanks, I have that setup correctly, I think. If all attachments are PDFs it works fine, but sometimes an item is not a PDF. This is okay and expected, I just want to skip that iteration then. But for that to happen, the whole run must not fail when extract text fails, which is why I need to toggle on “Continue on Failure”. But the button doesn’t work.

---

<div class="post-metadata">

**Author:** ![Bram](https://community.activepieces.com/user_avatar/community.activepieces.com/bram/32/2705_2.png) [@Bram](https://community.activepieces.com/u/Bram)\
**Post date:** [June 26, 2024, 5:31pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/4 "2024-06-26T17:31:18Z")

</div>

Could you make a screenshot of what you actually are selecting from the loop item?

Also if not all items are .pdf try usi nog the Branch piece to filter out the non PDFs from the actual PDFs.

Kr Bram

---

<div class="post-metadata">

**Author:** ![lsc64](https://community.activepieces.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lsc64](https://community.activepieces.com/u/lsc64)\
**Post date:** [June 26, 2024, 5:46pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/5 "2024-06-26T17:46:41Z")

</div>

The problem is that the items are all URLs, like {  
“item”: “[https://cloud.activepieces.com/api/v1/step-files/signed?token=xyz](https://cloud.activepieces.com/api/v1/step-files/signed?token=xyz)”,  
“index”: 1  
}  
there is no way to tell the file type without loading the URL

 ![image](https://community.activepieces.com/uploads/default/original/2X/4/4fc74c2da73432d51f12fb5f8865ba89d7cd4f7d.png)

---

<div class="post-metadata">

**Author:** ![Bram](https://community.activepieces.com/user_avatar/community.activepieces.com/bram/32/2705_2.png) [@Bram](https://community.activepieces.com/u/Bram)\
**Post date:** [June 26, 2024, 6:09pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/6 "2024-06-26T18:09:22Z")

</div>

Mmm, not sure what then solution will be then. What if you store those documents in a Google Drive and Run them from there? You must have some sort of File type you then could use for making the distincion between files.

---

<div class="post-metadata">

**Author:** ![lsc64](https://community.activepieces.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lsc64](https://community.activepieces.com/u/lsc64)\
**Post date:** [June 26, 2024, 6:23pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/7 "2024-06-26T18:23:42Z")

</div>

Well, this problem would be solved if the button “Continue on Failure” would just work 😄

 ![](https://community.activepieces.com/uploads/default/original/2X/6/6804bdc4ed8eb326cf13a5c12c23a16b8ac08ee8.png)  
So I hope someone from activepieces can fix this functionality, because it seems it should work.

---

<div class="post-metadata">

**Author:** ![lsc64](https://community.activepieces.com/letter_avatar_proxy/v4/letter/l/977dab/32.png) [@lsc64](https://community.activepieces.com/u/lsc64)\
**Post date:** [June 26, 2024, 6:26pm UTC](https://community.activepieces.com/t/pdf-extract-text-cannot-continue-on-failure/4895/8 "2024-06-26T18:26:05Z")

</div>

Opened an issue on gh

> <https://github.com/activepieces/activepieces/issues/4994>
>
> \*\*Describe the bug\*\*
> I cannot click the button for \_Continue on Failure\_ for th…e \_Extract Text\_ action from PDF.
> 
> \*\*To Reproduce\*\*
> 1. Click the button \_Continue on Failure\_
> !\[image\](https://github.com/activepieces/activepieces/assets/86673488/57ed8450-5f5e-4062-9da4-1a5b125fc16e)
> 2. It reverts itself
> 
> 
> \*\*Expected behavior\*\*
> It should enable the option and continue on failure
