From c96ca3f6dddb99b46af4a5a832204012fe165037 Mon Sep 17 00:00:00 2001 From: Tim Bezold Date: Wed, 14 Feb 2018 11:02:51 -0800 Subject: [PATCH] Updated XMD endpoints --- .../dataset/loader/file/schema/ext/ExternalFileSchema.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/sforce/dataset/loader/file/schema/ext/ExternalFileSchema.java b/src/main/java/com/sforce/dataset/loader/file/schema/ext/ExternalFileSchema.java index 3f1d95d..700fe25 100644 --- a/src/main/java/com/sforce/dataset/loader/file/schema/ext/ExternalFileSchema.java +++ b/src/main/java/com/sforce/dataset/loader/file/schema/ext/ExternalFileSchema.java @@ -520,9 +520,9 @@ private static void validateSchema(ExternalFileSchema schema, PrintStream logger if(user_field.getfType()==FieldType.MEASURE) { - if(user_field.getDefaultValue()==null || !isLatinNumber(user_field.getDefaultValue())) + if(user_field.getDefaultValue()!=null && !isLatinNumber(user_field.getDefaultValue())) { - message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must have default numeric value\n"); + message.append("field {"+user_field.getFullyQualifiedName()+"} in schema must be either null or have a default numeric value\n"); } if(!(user_field.getPrecision()>0 && user_field.getPrecision()<19))