diff --git a/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go b/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go index 45efbc6ff643..fa934ffe0a7f 100644 --- a/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go +++ b/internal/services/datafactory/data_factory_dataset_delimited_text_resource.go @@ -164,6 +164,7 @@ func resourceDataFactoryDatasetDelimitedText() *pluginsdk.Resource { "column_delimiter": { Type: pluginsdk.TypeString, Optional: true, + Default: ",", }, // Delimited Text Specific Field @@ -176,12 +177,14 @@ func resourceDataFactoryDatasetDelimitedText() *pluginsdk.Resource { "quote_character": { Type: pluginsdk.TypeString, Optional: true, + Default: `"`, }, // Delimited Text Specific Field "escape_character": { Type: pluginsdk.TypeString, Optional: true, + Default: `\`, }, // Delimited Text Specific Field @@ -195,12 +198,14 @@ func resourceDataFactoryDatasetDelimitedText() *pluginsdk.Resource { "first_row_as_header": { Type: pluginsdk.TypeBool, Optional: true, + Default: false, }, // Delimited Text Specific Field "null_value": { Type: pluginsdk.TypeString, Optional: true, + Default: "", }, "parameters": { @@ -362,12 +367,12 @@ func resourceDataFactoryDatasetDelimitedTextCreateUpdate(d *pluginsdk.ResourceDa delimited_textDatasetProperties.EncodingName = v.(string) } - if v, ok := d.GetOk("first_row_as_header"); ok { - delimited_textDatasetProperties.FirstRowAsHeader = v.(bool) + if v, ok := d.Get("first_row_as_header").(bool); ok { + delimited_textDatasetProperties.FirstRowAsHeader = v } - if v, ok := d.GetOk("null_value"); ok { - delimited_textDatasetProperties.NullValue = v.(string) + if v, ok := d.Get("null_value").(string); ok { + delimited_textDatasetProperties.NullValue = v } if v, ok := d.GetOk("compression_level"); ok {