File tree 1 file changed +5
-1
lines changed
src/main/java/com/salesforce/dataloader/process
1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -346,7 +346,11 @@ private static void validateConfigProperties(Config config) throws ProcessInitia
346
346
347
347
for (String propName : PROP_NAME_ARRAY ) {
348
348
String propVal = config .getString (propName );
349
- if (propVal == null || propVal .isEmpty ()) {
349
+ if (propName .equals (Config .PASSWORD ) && (propVal == null || propVal .isBlank ())) {
350
+ // OAuth access token must be specified if password is not specified
351
+ propVal = config .getString (Config .OAUTH_ACCESSTOKEN );
352
+ }
353
+ if (propVal == null || propVal .isBlank ()) {
350
354
logger .fatal (Messages .getFormattedString ("Config.errorNoRequiredParameter" , propName ));
351
355
throw new ParameterLoadException (Messages .getFormattedString ("Config.errorNoRequiredParameter" , propName ));
352
356
}
You can’t perform that action at this time.
0 commit comments