Load document activity not showing

Hi,

load document activity not showing to me. i am doing Extract Document data and write in to excel but i need load data not available in activity panel.

pls solve this situation Thank you

1 Like

Hi @MD_Farhan1

Pls update the package - UiPath.IntelligentOCR.Activities

For more:

1 Like

@MD_Farhan1,

You can get the Extract Document Data result as Data table using code like this.

ExtractDocumentDataResultVariable.ResultsAsDatatable

Use Write range activity to write this data to an excel file.

1 Like

i already updated. this package show only load taxonomy. not load document

1 Like

Hi,

but extract document data need input . pls give me a workflow screenshot better for me.

Thank you

1 Like

Might be i’ll wrong but i think no aany activity name is load document in modern.

1 Like

i want to use document extract data not ml. you doing anything in document extract data?

1 Like

What do you want the ‘Load Document’ activity to do?

The only thing missing in your screenshot is the iResource to your file?

You seem to be getting an array of files just above, do you want to loop over them? You can use LocalResource.FromPath (I think) to make a LocalResource variable which you can pass as the input.

1 Like

Hi @Jon_Smith,

absolutely correct i want to feed iResource but above using loop. i don’t know how to do this pls make workflow and past screenshot for me to get better understanding.

Thank you

1 Like

You don’t pass the text from the PDF.

You pass a reference to the file, in your situation it seems like its a localfile reference, so you want to use

LocalResource.FromPath(“pathtofile”)

Where you change the part in quotes to the path to your file.

1 Like

@Jon_Smith

1 Like

A local resource represents a single file, so it cannot be used for a for each as there is nothing to iterate over.

Why dont you try getting this to work with a single file, then I think you will understand how to do it for your loop.

Do the LocalResource.FromPath in the ‘Input’ argument for Extract document data referencing a single file, remove the loop.

Get that to work and then build up.

1 Like

Hi @MD_Farhan1

→ Keep the Assign activity as same like below,

  • Assign → pdfFiles = Directory.GetFiles(“Folder path here”)
    → Use for each activity to loop each file in pdfFiles variable.
    → Inside of for each activity insert the Extract Document data activity and give as below in Input field.
  • Input Field → Local.IResource(CurrentText.toString)

It will work.

Hope it helps!!

1 Like

@MD_Farhan1

Whatever you gave in assign give it directly in your input field of extract document data activity

That should suffice the error

I hope the path given inside frompath in assign is a file path

If its a folder oath then use for each file in folder and then inside that use extractdocument data and input field would be currentfile or LocalResource.FromPath(currentfile.fullname)

Cheers

1 Like

If i use single file that time is working fine but i need number of files from the folder so only i face this issue.

1 Like

Hi,

i got another error share shreenshot below.

1 Like