• Instructions to Ask a Question

    For any assistance, please click the "Ask a Question" button and select the Pabbly product for which you require support.

    We offer seven comprehensive applications designed to help you efficiently manage and grow your business:

    Our support team endeavors to respond within 24 business hours (Monday to Friday, 10:00 AM to 6:00 PM IST). We appreciate your understanding and patience.

    ๐Ÿš€ Exclusive Lifetime Offers ๐Ÿš€

    We invite you to take advantage of our special one-time payment plans, providing lifetime access to select applications:

    • ๐Ÿ”ฅ Pabbly Connect โ€” Lifetime Access for $249 โ€” View Offer
    • ๐Ÿ”ฅ Pabbly Subscription Billing โ€” Lifetime Access for $249 โ€” View Offer
    • ๐Ÿ”ฅ Pabbly Chatflow โ€” Lifetime Access for $249 โ€” View Offer

    Make a one-time investment and enjoy the advantages of robust business management tools for years to come.

Find stuff in large XML

Pabblynaut

Member
Using API by Pabbly, I've gotten a XML file with 5000 lines of data into Pabbly.
Each line has a date, YYYY-MM-DD.

I want to extract only the rows where YYYY-MM-DD is today, and add only these to a google sheet.

How would I go about this?
 

Preeti Paryani

Well-known member
Staff member
Hello @Pabblynaut,

Upon checking, we noticed a few issues in your workflow. To resolve them, we cloned your workflow and made the necessary changes:
  1. Added a "Date/Time Formatter" step โ€“ This retrieves the current date.
  2. Used "API by Pabbly" to Reverse the Array โ€“ The date was not appearing in the earlier objects, so reversing the array ensures proper processing.
  3. Added an "Iterator" to Process Each Object โ€“ This allows handling each item individually.
  4. Applied a "Filter" to Match the Current Date โ€“ This ensures only objects with the current date are processed.
  5. Mapped the Correct Date Key from the Iterator โ€“ Since the keys differ between objects with and without a date, Facebook was throwing an error due to missing keys. Mapping the correct date key should resolve this issue.
Please try running a few test cases and let us know if everything works as expected!
 

Pabblynaut

Member
Hello @Pabblynaut,

Upon checking, we noticed a few issues in your workflow. To resolve them, we cloned your workflow and made the necessary changes:
  1. Added a "Date/Time Formatter" step โ€“ This retrieves the current date.
  2. Used "API by Pabbly" to Reverse the Array โ€“ The date was not appearing in the earlier objects, so reversing the array ensures proper processing.
  3. Added an "Iterator" to Process Each Object โ€“ This allows handling each item individually.
  4. Applied a "Filter" to Match the Current Date โ€“ This ensures only objects with the current date are processed.
  5. Mapped the Correct Date Key from the Iterator โ€“ Since the keys differ between objects with and without a date, Facebook was throwing an error due to missing keys. Mapping the correct date key should resolve this issue.
Please try running a few test cases and let us know if everything works as expected!
This worked until step 2:
1742891906469.png

Could the reason be that the XML file is 504.000 characters?
 

Pabblynaut

Member
EDIT: I tried to run the flow 3 times. It failed each time on the first try on step 2. But on the auto-retry, it worked each time. So great that it works, but what could be the reason it only worked on the retry?
 

ArshilAhmad

Moderator
Staff member
It looks like 'Auto Re-Execution' is enabled. Since the error resolves when the task is executed, we are unable to pinpoint the exact cause of the issue. Please disable 'Auto Re-Execution', execute the workflow, and if the issue persists, let us know so we can investigate further.
 
Top