Any data limit that Text Parser - Replace can output?

What are you trying to achieve?

Text Parser - Replace 's goal is to replace the original xml section with the modified fed by a Make.com agent in the same workflow.

My workflow work great when I upload the xml payload up to 1 MB, but when I upload an xml payload beyond 1 MB (long string), Text Parser - Replace truncates my output.

I receive this message at the end of my output: End of data sample, string was originally 1796719 characters long.

Why doesn’t Text Parser - Replace node output the full string instead of truncated one?

Steps taken so far

I don’t know what to do to. It must be some limitation from Make that I don’t know of. Anyone have any solutions or insights why Text Parser - Replace truncates my xml string for no reason?

Screenshots: scenario setup, module configuration, errors


Hey Damir,

what are you trying to replace exactly? If you are trying to parse an XML file, maybe you can try with the built in XML module instead?

Also, Make wont show large files and will always cut them, it doesn’t necessarily mean it didn’t process them. What are you getting as a result when you map this in the next module?

Welcome to the Make community!

This is likely because the pattern in your Replace module did not match the content correctly. Even if it did, there is a user interface character display limit, otherwise your browser window might hang.

If you need assistance to see if the Replace module is working correctly, could you provide a sample of your file and pattern?

When reaching out for assistance with extracting text, it would be super helpful if you could share the actual text you’re trying to match. Screenshots of text can be a bit tricky, so if you could copy and paste the text directly here, that would be awesome! It ensures we can run it against test patterns effectively. If there’s any sensitive info, feel free to change it to something fictional yet still valid by keeping the format intact.

Providing clear text examples saves time on both ends and helps us give you the best possible solution. Without proper examples, we might end up playing a guessing game, and nobody wants that as it is a waste of time! You are more likely to get a correct answer faster. So, help us help you by sharing those text snippets.

Please format the example text this way to preserve line breaks and special characters:

These are the two ways to format text so that it won’t be modified by the forum.

  • Method 1: Type code block manually
    Add three backticks ``` before and after the content/bundle, like this,

    ```
    content goes here
    ```

  • Method 2: Highlight and click the format button in the editor

  • Method 3: Upload your file and share the public link
    (this method is only recommended for large files exceeding the forum upload limit)

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew

Hi Stoyan, thank you for your response and trying to help. Here is the process in a nutshell. My app sends the xml payload and the user prompt to the webhook. My agent processes the xml payload, extracts the xml string needed to be changed based on the user prompt, changes the xml string and sends it back downstream to: Text Parser - Match Pattern, Tools - Aggregator, Text Parser - Replace, Dropbox - Upload a file, Dropbox - Create a share link and lastly to the webhook - response node.

I can accept that Text Parser - Replace module might output the full string and it truncates because of the UI display, but why then Text Parser - Replace module outputs different amount of characters than the original payload (less). The user prompt is simply to change the xml particular values, not to add or remove anything.

Maybe the problem is in the Text Parser - Match module and my pattern. Please see below the pattern I am using in my Text Parser - Match module (after my agent module):

<([A-Za-z0-9_]+)\s+([A-Za-z0-9_-]+=“[^”]+")

Hi Samliew, thank you for trying to help. Unfortunately, I cannot paste the exact text because it’s very confidential. Basically, it’s an xml string:

<
Content

The agent produces it, then it passes it downstream to the other nodes, please see attached

Unfortunately, without sample text, it is not possible to assist with a text parser pattern.

You can also use the Hire a Pro category to request for private 1-to-1 assistance via video call/screenshare/private messaging/etc. This may help you get your issue resolved faster especially if it is urgent or contain sensitive information. It is important to post your request in the Hire a Pro category, as forum members are not allowed to advertise their services in other categories like here (even if it’s free/unpaid). Posting in the Hire a Pro category will allow other members to assist you over other forms of communication.

Alternatively, you can use the private messaging feature to directly reach out to other forum members. To do this, go to your profile, and click on the “New Message” button:

Hope this helps! Let me know if there are any further questions or issues. P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!

@samliew