Hi Farah Diana Masri,
Thanks for reaching out to Microsoft Q&A.
This error usually comes from issues in Azure PromptFlow’s tracing module, where None
values in token usage data cause the TypeError
. A quick workaround is to disable tracing by adding this environment variable to your flow.dag.yaml
file:
YAMLCopy
environment_variables:
PF_DISABLE_TRACING: true
Save and redeploy your service. Disabling tracing will bypass the error, allowing a smooth deployment if tracing data isn’t essential. Troubleshooting steps can be found here- Deploying workflows in Azure PromptFlow can run into unexpected issues for a deeper dive into resolving this error in Azure PromptFlow.
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.