Why "Use File" Container activity is not visible in uipath studio version 2026.0.182STS?

I have tried to search the Use File activity for using the Get PDF count activity, but this activity is not displaying in UiPath 2026 version. I have unchecked the preview activity as well. why?

Please find the SS below:

@vignesh_S.M

There is no use file activity at all

can you please tell what you need. We can help you with activity name

do you need number of pdfs in a folder if yes you can use directory.GetFiles("Folderpath","*.pdf").Count in assign activity it would give the count

cheers

@vignesh_S.M

Could you please elaborate the requirements ??

Thanks

Actually I’m using Get PDF page count activity but it should be used within a Use File container in modern UiPath exp.

Actually, it was giving an error as below:
Argument ā€˜PdfFile’: BC30512: Option Strict On disallows implicit conversions from ā€˜String’ to ā€˜IResource’. The selected value is incompatible with the property type.

@vignesh_S.M

In Modern UiPath (including 2026), Get PDF Page Count does not accept a file path (String).It requires an IResource, which is created
You can alternate use Invoke code activity

Hope it helps

Thanks

The problem here is the Use file activity is not displaying in the activities panel.. Why?

Please confirm is PDF has selector text if yes then please Read PDf Text activity

pageCount = pdfText.Split(ChrW(12)).Length

Cheers

Which pdf package are you using ?

I’m using this package and is working fine.

I believe he is using document understanding package activity . @vignesh_S.M can you check ?

I’m using document understanding activity only..

@vignesh_S.M

Try this
Imports iText.Kernel.Pdf

Using reader As New PdfReader(pdfPath)
Using pdfDoc As New PdfDocument(reader)
pageCount = pdfDoc.GetNumberOfPages()
End Using
End Using

Make sure to make argument as In for Pdfpath and out direction for page count

Hope it work now

It worked for me.. when I use the Get PDF page count activity from PDF activities this issue got fixed. The problem here is I have used the Get PDF Count activity from DU..

Hi @vignesh_S.M ,

You are using DU activities, that’s why it is throwing error. Use UiPath.Pdf.Activities package and then use the ā€œGet PDF Page Countā€ and save the result in the a variable and use it wherever you want.

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.