web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Answered

Problem with join pdf

(0) ShareShare
ReportReport
Posted on by 20

Hi all, i've an issue with join pdf in power automate desktop.

 

I've build a flow that give from a bill of materials in excel all the values (code) of articles, put it in a list, copy the corrispective files from a net folder to a temporary folder in my local pc (C:\temp) and join all in a unique pdf.

 

Example:

 

A excel sheet contain in B column all the articles to produce a machinery.

example: 000.000.0001 in b1

000.000.0002 in b2

000.000.0003 in b3 etc etc

 

The files called 000.000.0001.pdf, 000.000.0002.pdf, 000.000.0003.pdf is stored in \\server\pdf\publishedpdf\

 

My flow collect all articles in B column of the spreedsheet, create a list with path of all, and join all.

 

But if my list is "short" (around 20-30 pdfs) it work correctly. Otherwise if the list is long (around 150-200 pdfs) it stop and get me the error "System.NullReferenceException"

 

Someone know why? Thank you

I have the same question (0)
  • miketran13 Profile Picture
    720 on at

    Hello,

     

    I think this is an unknown error from PAD. I have tried more than 10 times with different numbers of pdf files. And I got a same error with you when trying to merge pdfs. The thing I found that, the error is more likely to happen when you have more than 50 files and I always got error when I have more than 120 files. 

    I have no ideas why it happened. I hope we can get answer from MS for this issue.

     

    mergedfiles.png

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

     

  • dannygi1982 Profile Picture
    20 on at

    There is a workaround to do the job in a different way?

    thank you for your time

  • miketran13 Profile Picture
    720 on at

    Hi, 

     

    I think you should try to minimize the number of pdf files by just combining your texts. 

    Or you can call the Action Merge Pdf multiple times inside a loop. 

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • dannygi1982 Profile Picture
    20 on at

    What do you mean for combining texts?

     

    is possible to do this example?

     

    Example

     

    If list > 20

       split list every 20 elements and create nel lists

     

    Thank you very much

  • miketran13 Profile Picture
    720 on at

    Hi Danny,

     

    I think you can do something like this:

     

    pdffiles.png

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • dannygi1982 Profile Picture
    20 on at

    @miketran13 how can i add .Count to "If batchcombinedlist" function?

     

    dannygi1982_0-1615539346788.png

     

    Thank you

     

  • Verified answer
    miketran13 Profile Picture
    720 on at

    Hi,

     

    You can select it from here.

     

    selectcount.png

     

    Thanks and hope it can help you. 

    Mike

    ---------------------------------

    Did I answer your question? Please consider to Mark my post as a solution! to guide others

  • dannygi1982 Profile Picture
    20 on at

    @miketran13 yes! It works perfectly!

     

    Just to finish my flow: how i can truncate text to get only the first characters before space?

    example: i've a filename called ASM30070059.1 Structure vertical mill.xml

    and i want to get only the first characters before space. In this case ASM30070059.1.

    How i can do it? Thank you, you've save me!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 274 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 175

#3
Haque Profile Picture

Haque 166

Last 30 days Overall leaderboard