Forum Discussion

moboyal1's avatar
moboyal1
Icon for Microsoft Employee rankMicrosoft Employee
5 months ago
Solved

Fabric Eventstream: TypeConversionError when writing nested JSON to Lakehouse Delta table

Eventstream fails to write nested JSON events from Azure Event Hub to a Lakehouse Delta table, throwing `OutputDataConversionError.TypeConversionError` on the destination. This occurs even with `sche...
  • Anonymous's avatar
    Anonymous
    5 months ago

    Hi moboyal1,

    Thanks for the clarification.

    From the current behavior, Eventstream Lakehouse destinations expect a relatively consistent schema while writing to Delta tables. Because of that, fully dynamic nested JSON payloads (especially where fields can change between null, objects, or arrays) may result in TypeConversionError.

     

    If the requirement is to preserve the payload exactly as received from Event Hubs, one possible approach would be to first store the raw JSON as-is and then handle parsing/schema evolution downstream using Spark notebooks or other processing options where schema handling is more flexible.

    At this time, there does not seem to be an option to completely disable schema enforcement for Lakehouse destinations in Eventstream.

     

    Sharing a few related documents which may help clarify the current behavior and supported patterns:

    Lakehouse and Delta Tables - Microsoft Fabric | Microsoft Learn
    Microsoft Fabric Eventstreams Overview - Microsoft Fabric | Microsoft Learn
    Add a lakehouse destination to an eventstream - Microsoft Fabric | Microsoft Learn

    Hope this helps if you have any queries we are  happy to assist you further.
    Regards,
    Community Support Team.