Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Single node test runs with nested dict parent node inputs InvalidReferenceProperty error. #3882

Open
pjanowski opened this issue Dec 8, 2024 · 0 comments · May be fixed by #3881
Open
Labels
bug Something isn't working

Comments

@pjanowski
Copy link

Describe the bug
When running a single node (not entire flow) with inputs that include sub dictionary from parent node output, there is a bug in how the inputs are parsed that causes the run to fail.

How To Reproduce the bug
Steps to reproduce the behavior, how frequent can you experience the bug:

  1. Run entire flow. Create a parent node that has an output like {"result": {"key1":"foo", "key2":"bar"}}.
  2. Create child node. Input should be something like ${parent_node.output.result.key1}
  3. Run entire flow. Flow will succeed.
  4. Now run just the child node. It will fail with error like

pf.flow.node_test failed with InvalidReferenceProperty: Flow execution failed. Invalid property 'result.key1' when accessing the node 'parent_node'. Please check the property and try again.

Expected behavior
The run of the node should pass when running single node if it also passed when running entire flow.

Screenshots
If applicable, add screenshots to help explain your problem.

Running Information(please complete the following information):

  • Promptflow Package Version using pf -v: [1.16.1]
  • Operating System: [Ubuntu 20.04.5 LTS on WSL]
  • Python Version using python --version: [3.11.10
@pjanowski pjanowski added the bug Something isn't working label Dec 8, 2024
@pjanowski pjanowski linked a pull request Dec 8, 2024 that will close this issue
6 tasks
@pjanowski pjanowski changed the title [BUG] [BUG] Single node test runs with nested dict parent node inputs InvalidReferenceProperty error. Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant