Invoke Workflow file. The given key ... was not present in the dictionary

Hi, I have a problem with the “invoke Workflow File”-activity since upgrading from Windows-legacy to Windows. It keeps saying that the given Key is not available. Although I have not changed the file or the path and it is NOT a dynamic path.
image

Gives me the error:
image

Hi @titatarik

The error ‘Invoke Workflow: The given key was not present in the dictionary’ typically occurs when trying to access a dictionary key that doesn’t exist. Let’s troubleshoot this together:

  1. Check the activity or sequence where the error is occurring. Verify that the dictionary you’re working with contains the key you’re trying to access.
  2. Review the values of your variables and arguments to ensure they are being initialized correctly before reaching the problematic activity.
  3. If possible, share the relevant portion of your workflow or code so that the we can take a closer look and provide more targeted assistance.

Feel free to update us on your progress or provide additional details. We’re here to assist you in resolving this issue.

Hope it helps!!

Hi,

It’s limitation of Windows project. Can you try to review your logic?

Regards,

Thanks ! But isn’t that the goal of the “invoke Workflow File” activity?
Would you say that creating a library would be the best work-around?

Hi,

It depends your requirement and/or situation. Simply copying files into under the project folder (like snippet) will solve this matter. However it may increase maintenance cost and difficulty of source management in case of version up etc. if number of shared project is large. So, it may be good that you can allow to adapt using library if you emphasis maintenance cost and quality etc., I think.

Regards,