function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sitansu Pradhan 3Sitansu Pradhan 3 

wav

Hi Guys,
    This question is related to Wave Analytics. My source is a CSV file and in the file there is a number field which may have null value also.
      is there any way I can insert null value to a number field in a dataset ?  I am trying the below format in the metadata json but getting "Numeric field [Value] in object [File_Testing_csv] must have a default value.: Metadata JSON " error.
   
{
                    "fullyQualifiedName": "Value",
                    "name": "Value",
                    "type": "Numeric",
                    "label": "Value",
                    "precision": 18,
                    "scale": 5
                }


Thanks
Sitansu Pradhan
SaahilLakhaniSaahilLakhani
try adding "DefaultValue": "null"
Sitansu Pradhan 3Sitansu Pradhan 3
I tried the below, but still getting  the same error "Numeric field [Value] in object 'File_Testing_csv' has an invalid default value: Metadata JSON" 
 {
                    "fullyQualifiedName": "Value",
                    "name": "Value",
                    "type": "Numeric",
                    "label": "Value",
                    "precision": 18,
                    "defaultValue": "null",
                    "scale": 5
                }
Also I tried below format.
{
                    "fullyQualifiedName": "Value",
                    "name": "Value",
                    "type": "Numeric",
                    "label": "Value",
                    "precision": 18,
                    "defaultValue": "",
                    "scale": 5
                }
 
SaahilLakhaniSaahilLakhani
Ah okay - you may need to enable null measure handling in your org for "null" to be supported in a measure field