Unexpected error has occurred during the library compilation process: The given key '[filename]' was not present in the dictionary

I have a workflow that invokes another workflow to “Save As”

When trying to run, I get the following error:

Unexpected error has occurred during the library compilation process:
The given ‘C:\Users\Riley\Documents\UiPath\Functions_Windows\SavePrint_Edge.xaml’ was not present in the dictionary.

The path above is to the invoked workflow function.

After reading other posts I checked:

  • that the path to the invoked workflow file is correct by selecting it via the file browser button
  • that the arguments are correct by adding a step prior to this action that logs the value, to ensure it isn’t null

I have also tried reopening UiPath, and restarting my computer, and still get the same response. I’m not particularly technical so not sure where to even begin looking. Any tips?

1 Like

hi @riley ,

Welcome to the Community !

Try the Following

  1. Drag and Drop the Invoke WorkFlow activity and the use the below Highlighted button to browse the workflow
    image

  2. You can Simply Drag the SavePrint_Edge.xaml from the Project and Drop it to specified Location - UiPath would automatically take the path for you.


Mukesh

1 Like

@riley

Basically after the latest upgrade we cannot pass variable or arguments to invoke workflow file path…

We have to select the workflow using the file option provided on the invoke workflow activity… and by default it takes the relative path and that is what works now

Hope this helps

Cheers

Hi @riley,

There is a simple way to fix this issue.

Just remove the old invoke workflow file activity inside the workflow and use a new one to call the workflow,

Regards,
Karthickkumaran.

Hi everyone. I am facing the same situation. Has anyone found a solution?

Was a strange issue.

I opened the XAML in question in a notepad to verify the structure - didn’t change or even save but once I closed the file again and retried the error disappeared.

Hello Mukesh…
Im facing the same issue. But here in my code im trying to invoke windows framework process 1 main xaml into windows framework process 2 and getting the same compilation error. Could you provide me the resolution.

Thank you in advance.