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

Default null input parameter not working in CallActivity #2703

Closed
nhuurnink opened this issue Dec 23, 2023 · 4 comments
Closed

Default null input parameter not working in CallActivity #2703

nhuurnink opened this issue Dec 23, 2023 · 4 comments
Labels
bug P2 Priority 2

Comments

@nhuurnink
Copy link

nhuurnink commented Dec 23, 2023

When running:
await context.CallActivityAsync<string>(nameof(MyActivity));

[Function(nameof(MyActivity))]
public Task<string[]> MyActivity([ActivityTrigger] string trigger, FunctionContext functionContext)

results in:
Could not populate the value for 'trigger' parameter. Consider updating the parameter with a default value.

Which is weird, since CallActivityAsync is supposed to have a default value for object? input = null.

@jviau
Copy link
Contributor

jviau commented Jan 4, 2024

Most likely related to #2674

@MatLeger
Copy link

MatLeger commented Jan 5, 2024

I have the same problem with default null input parameters. I also have the same problem described in #2674.

@nhuurnink
Copy link
Author

It might be related, but I only have the quotes problem when using DurableTask 1.1.0.

@jviau
Copy link
Contributor

jviau commented Jan 8, 2024

Fixed by #2708

@jviau jviau closed this as completed Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug P2 Priority 2
Projects
None yet
Development

No branches or pull requests

4 participants