Forum Discussion

jochenj's avatar
jochenj
Icon for Advocate III rankAdvocate III
2 years ago
Solved

Data Pipeline Error (Parquet File > FabricDWH) TypeConversion is not supported by the external cmd

Situation:

i struggle to load a parquet file to DWH.

The Parquet File has a column "Info" which is nvarchar(max)

FabricDWH does only support a max of varchar(8000)

I would be fine if the column-data gets truncated on import to DWH so that only first 8000 characters are stored in DWH

Problem:

If i create a Fabric Pipeline with Copy Activity with/without Column Mapping i get:

ErrorCode=UserErrorSqlDWCopyCommandError,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=SQL DW Copy Command operation failed with error 'String or binary data would be truncated while reading column of type 'VARCHAR(8000)

 

There are no options in PipelineUI Sink or Mapping Tab to define a convert or "allow truncate" o explicit type casts

 

so i tried to define "dynamic content" with a TabularTanslator in Mapping Tab of Copy Activity:

  {"type": "TabularTranslator"
  ,"typeConversion": true
  ,"typeConversionSettings": {"allowDataTruncation": true
  ,"treatBooleanAsNumber": false}
  }

This worked in AzureADF  without issues, but when using in Fabric Pipeline i get error:

ErrorCode=UnsupportCopyFeatureInExternalCommand,The copy feature: TypeConversion is not supported by the external command SynapseImportCommand

 

Now the questions:

  • Does anyone know if defining a custom tabular translator is even supported in current Fabric Pipeline vesion?
  • Does anyone have a workaround how to do BASIC type conversion as needed in my scenario? Yes i think i could do the same with a Dataflow Gen2 instead but Dataflows then would have other issues like the lack of parametrization of dataflow...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi  jochenj,
    Thanks for using the Fabric community,

     

    Data truncate is not a supported feature in DWH. Thus Data pipeline cannot support truncate for Parquet -> DWH. However Data pipeline can support skip incompatibly rows and output incompatibly rows by 'Settings'->'Fault Tolerance'.

     

    Hope this is helpful. Incase of any further queries do let us know.

5 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  jochenj,
    Thanks for using the Fabric community,

     

    Data truncate is not a supported feature in DWH. Thus Data pipeline cannot support truncate for Parquet -> DWH. However Data pipeline can support skip incompatibly rows and output incompatibly rows by 'Settings'->'Fault Tolerance'.

     

    Hope this is helpful. Incase of any further queries do let us know.

    • jochenj's avatar
      jochenj
      Icon for Advocate III rankAdvocate III

      thanks for the insights. Can you confirm that even "renaming" of columns with a dynamic TabularTranslator expression should work? Or is this also not implemented yet?

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi jochenj ,

        Dynamic TabularTranslator should be supported.