Counting Words After PDF to Text Conversion

Hi everyone,

I’m facing an issue with my scenario in Make.com where I’m trying to count the number of words in a text extracted from a PDF. Here’s what’s happening:

• I’m using the CloudConvert > Convert a File module to convert a PDF to text. The conversion works fine, and I can see the text output correctly.

• I then use a “Set Variable” module to count the number of words in this text. When I run this module individually (“Run only this module”), it correctly counts the words.

• However, when I run the entire scenario, the “Set Variable” module doesn’t receive the text and shows a count of zero.

It seems like the text isn’t being passed correctly from the conversion module to the “Set Variable” module during the full scenario execution, even though it works fine when I run the module on its own.

Question

What could be causing this issue, and how can I ensure that the text is correctly passed between modules during the full scenario run?


Capture d’écran 2024-09-03 à 16.03.37

Any help or insights would be greatly appreciated!

Thanks in advance!

Is textencide from a previous variable? How is that mapped?

Hi @Loic_AI
If you could share the output bundle of the module you’re using to map the text, we could assist you further.

How to Share Input/Output bundles

To obtain the input and output bundles for each module:

  1. Run the scenario or retrieve it from the History tab.
  2. For each module, click the white speech bubble located at the top-right corner.
  3. Select “Download input/output bundles” from the dropdown menu.

This will allow you to download the necessary data for further analysis and sharing.

Method 1: Attach a Text File

  1. Copy the output data.
  2. Paste the data into a text file.
  3. Attach the text file to your ticket.

Method 2: Direct Sharing

  1. Use the direct sharing option available in the reply section. Please refer to the image below for guidance.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation

Hi !
I found the solution! First, I go through a “set variable” module with tostring.

Then, I use another variable module: length(split(string; space)).

And that’s it!

Thank you for your responses!

2 Likes