Forum Discussion
DiKi-I
1 year agoPost Partisan
user data function in fabric
Hi I'm trying to run UDF funtion and integarting it with azure open ai. I'm getting the below error during invocation can someone please help? { "functionName": "AISuggestion", "invocation...
- 1 year ago
Hi DiKi-I ,
If you still face the issue then please consider raising a support ticket for further assistance.
To raise a support ticket for Fabric and Power BI, kindly follow the steps outlined in the following guide: How to create a Fabric and Power BI Support ticket - Power BI | Microsoft Learn
Thank You.
DiKi-I
1 year agoPost Partisan
I'm able to run udf its just that when I'm testing it with openai its not working.
burakkaragoz
1 year agoSuper User
Good to hear that the UDF itself is running. Regarding the issue with OpenAI, here are a few things to check:
1. Network Access
- Make sure your UDF environment has outbound internet access. Some Fabric environments (especially in secured or restricted tenants) might block external HTTP calls.
2. Authentication
- If you're calling OpenAI’s API, ensure you're passing the correct API key in the header:
Authorization: Bearer YOUR_API_KEY
- Also double-check the endpoint URL (e.g., https://api.openai.com/v1/completions or chat/completions depending on the model).
3. Timeouts and Payload
- Keep the payload small for testing. Some environments have strict timeout limits for external calls.
- Try a simple prompt first to validate the connection.
4. Error Details
- If you’re getting a specific error message or status code, feel free to share it here. That’ll help narrow it down quickly.