The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi community, I developed a pipeline with simple estructure:
The notebook activy trigger the fail activity, but I run it, it always throw Failed Status :(, I think it should be succeeded if the Fail activity works fine.
Env. trial fabric.
In the normal way the @activity(notebbok).output throw ErrorCodeNotString
the message is:
So is normal status "Fail" to Fail activity? the trial fabric dont suppot failed?
Thanks in advance.
Solved! Go to Solution.
Hello @Peter_23,
Thank you for reaching out to the Microsoft Fabric Community Forum. I have reproduced your scenario in a Fabric trial workspace, and here’s what I found:
Example configuration I used:
Output when Notebook fails → Fail activity runs:
So yes, it is normal for the Fail activity to mark the pipeline as Failed. The trial Fabric environment supports it. the key is that the Fail activity requires both a Fail message (string) and an Error code.
If you instead want to capture the error without failing the pipeline, you can use alternatives like Set Variable or Append Variable activities instead of Fail.
Hope this clarifies.
Best Regards,
Ganesh singamshetty.
Hello @Peter_23,
Thank you for reaching out to the Microsoft Fabric Community Forum. I have reproduced your scenario in a Fabric trial workspace, and here’s what I found:
Example configuration I used:
Output when Notebook fails → Fail activity runs:
So yes, it is normal for the Fail activity to mark the pipeline as Failed. The trial Fabric environment supports it. the key is that the Fail activity requires both a Fail message (string) and an Error code.
If you instead want to capture the error without failing the pipeline, you can use alternatives like Set Variable or Append Variable activities instead of Fail.
Hope this clarifies.
Best Regards,
Ganesh singamshetty.
The fail activity is failing because it expects a string input. Both expressions you tested aren't strings so you would need to convert them to string to use them.