# Module not recognizing array

**URL:** <https://community.make.com/t/module-not-recognizing-array/68929>\
**Category:** Questions\
**Tags:** pdf, error, arrays\
**Created:** [February 9, 2025, 10:19pm UTC](https://community.make.com/t/module-not-recognizing-array/68929 "2025-02-09T22:19:11Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 9, 2025, 10:19pm UTC](https://community.make.com/t/module-not-recognizing-array/68929/1 "2025-02-09T22:19:11Z")

</div>

So I have a set variable module, going into a pdfco API call. There is clearly an array, however upon running, I’m getting this error: “The operation failed with an error. [400] Invalid parameter ‘searchStrings’ value “the, !, \_, -, $, then”: Must be an array of any type.”

 ![Screenshot 2025-02-09 141524](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/4/0427400ff4692ff11aca8ff7d4cb8479f26d5300.png)  
 ![Screenshot 2025-02-09 141642](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/2/3277422555ff2a3ff61a013bb5d75f46bd6197d8.png)

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 10, 2025, 2:40am UTC](https://community.make.com/t/module-not-recognizing-array/68929/2 "2025-02-10T02:40:22Z")

</div>

@jff  
Hi, I have a few questions.

1. What API endpoints are you calling in the [PDF.com](http://PDF.com) module?
2. Please paste the contents of `23. emailBody[]` from your execution history.

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 10, 2025, 4:37am UTC](https://community.make.com/t/module-not-recognizing-array/68929/3 "2025-02-10T04:37:55Z")

</div>

Hey,

1. API endpoint: /v1/pdf/edit/delete-text
2. From output bundle: “emailBody”: [“the”, “!”, “\_”, “-”, “$”, “then”]

Thank you.

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 10, 2025, 6:05am UTC](https://community.make.com/t/module-not-recognizing-array/68929/4 "2025-02-10T06:05:45Z")

</div>

@jff  
I found the following page in the help section of [PDF.co](http://PDF.co), but the name of the Parameter may be `searchString` (not `searchStrings`).

> **[How to Search and Delete Text in PDF using PDF.co and Make | PDF.co](https://pdf.co/tutorials/search-and-delete-text-in-pdf-using-pdfco-and-integromat?utm_referer=https%3A%2F%2Fpdf.co%2Fblog%2F%3Fpaged%3D11)**
>
> Learn to search and delete text from a PDF using PDF.co and Make by setting up the PDF.co Make an API Call module.

The sample in the API Reference is also “searchString”.

> **[PDF Search and Delete Text — pdf.co documentation](https://developer.pdf.co/api/pdf-search-and-delete-text/#example-tag-payload)**
>
> PDF.co Developer documentation.

I doubt that you can specify an array as a parameter, so I suggest you contact [PDF.co](http://PDF.co) support.

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 10, 2025, 7:19am UTC](https://community.make.com/t/module-not-recognizing-array/68929/5 "2025-02-10T07:19:09Z")

</div>

So on the API page for Search and Delete Text it does list searchStrings as an option, with the description given as “The array of strings to search.”

> **[PDF Search and Delete Text — pdf.co documentation](https://developer.pdf.co/api/pdf-search-and-delete-text/index.html)**
>
> PDF.co Developer documentation.

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 10, 2025, 7:28am UTC](https://community.make.com/t/module-not-recognizing-array/68929/6 "2025-02-10T07:28:13Z")

</div>

Is it possible that there is an error in the documentation?

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 18, 2025, 1:02am UTC](https://community.make.com/t/module-not-recognizing-array/68929/7 "2025-02-18T01:02:04Z")

</div>

So I went to [PDF.co](http://PDF.co)’s support, and apparently this should work but it’s a known issue that it doesn’t for some reason in Make.

I was told I should try to use a Create JSON Module then the Parse JSON Module, however I can’t figure out how to do this when the number of items going into the array is unknown.

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 18, 2025, 1:45am UTC](https://community.make.com/t/module-not-recognizing-array/68929/8 "2025-02-18T01:45:02Z")

</div>

> [@jff](#):
>
> So I went to [PDF.co](http://PDF.co)’s support, and apparently this should work but it’s a known issue that it doesn’t for some reason in Make.

I see, so it’s a known bug, and it might be a good idea to report it as a bug to [make.com](http://make.com) as well.

> [@jff](#):
>
> I was told I should try to use a Create JSON Module then the Parse JSON Module, however I can’t figure out how to do this when the number of items going into the array is unknown.

Do you mean using the Create JSON and Parse JSON modules for the values to be entered into `serachStrings`?

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 18, 2025, 3:41am UTC](https://community.make.com/t/module-not-recognizing-array/68929/9 "2025-02-18T03:41:48Z")

</div>

So this is exactly what they said regarding the JSON Modules:

1. **Create JSON Structure:** Use the “Create JSON” module to ensure the **list of text to delete** is formatted as an array of strings (`["string1", "string2", "string3"]`).

2. **Parse JSON:** Use the “Parse JSON” module to convert the JSON string into an array before passing it to the API.

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 18, 2025, 5:53pm UTC](https://community.make.com/t/module-not-recognizing-array/68929/10 "2025-02-18T17:53:32Z")

</div>

@jff  
Thank you very much.  
From your reply, I think you mean to use the Parse a JSON module after entering the Create a JSON module as attached.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/2/c/2c9b74977397332c2d193f9355c5ba457a331c68.png)

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 18, 2025, 11:34pm UTC](https://community.make.com/t/module-not-recognizing-array/68929/11 "2025-02-18T23:34:10Z")

</div>

Yes, except the text there are just for example. In practice it would be an array of strings, the number and contents of which would not be known in advance.

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 19, 2025, 3:45pm UTC](https://community.make.com/t/module-not-recognizing-array/68929/12 "2025-02-19T15:45:42Z")

</div>

How is the string to be deleted retrieved?

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 20, 2025, 8:49pm UTC](https://community.make.com/t/module-not-recognizing-array/68929/13 "2025-02-20T20:49:15Z")

</div>

The text is retrieved from the body of a received email and then parsed to separate the text into words, numbers, and special characters, which are then put into an array.

 ![ss1](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/d/1d2b0fbe654a788fb156e694dc3fa53066690953.jpeg)  
 ![ss2](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/0/1/018aebd8f460e22bb1996a128ac94c1e60a52491.jpeg)

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 22, 2025, 4:59am UTC](https://community.make.com/t/module-not-recognizing-array/68929/14 "2025-02-22T04:59:35Z")

</div>

Since the Split function returns an array, wouldn’t it work if we pass the output from the Set Variable module to the Create JSON module?

---

<div class="post-metadata">

**Author:** ![jff](https://avatars.discourse-cdn.com/v4/letter/j/e8c25b/32.png) [@jff](https://community.make.com/u/jff)\
**Post date:** [February 24, 2025, 12:13am UTC](https://community.make.com/t/module-not-recognizing-array/68929/15 "2025-02-24T00:13:59Z")

</div>

I’m not really sure. I’m not as familiar with JSON and had originally been trying to avoid it. This is what I get passing the output from the Set Variable to the Create JSON module:

[  
{  
“json”: “{"emailBodyArray":["the, !, \_, -, $, then"]}”  
}  
]

---

<div class="post-metadata">

**Author:** ![momomomonmon](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/momomomonmon/32/59454_2.png) [@momomomonmon](https://community.make.com/u/momomomonmon)\
**Post date:** [February 27, 2025, 4:25am UTC](https://community.make.com/t/module-not-recognizing-array/68929/16 "2025-02-27T04:25:43Z")

</div>

> [@jff](#):
>
> - **Create JSON Structure:** Use the “Create JSON” module to ensure the **list of text to delete** is formatted as an array of strings (`["string1", "string2", "string3"]`).
> - **Parse JSON:** Use the “Parse JSON” module to convert the JSON string into an array before passing it to the API.

I feel that we should implement the above you wrote previously and pass the Output of the Parse JSON Module to [PDF.co](http://PDF.co).

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [May 28, 2025, 3:27am UTC](https://community.make.com/t/module-not-recognizing-array/68929/17 "2025-05-28T03:27:38Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


