File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/modules/models/job_models Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 191191 "writingToFile" : " {%s} Creating the file %s ..." ,
192192 "nothingUpdated" : " Nothing was updated." ,
193193 "skippedUpdatesWarning" : " {%s} %s target records remained untouched, since they do not differ from the corresponding source records." ,
194- "skippedsSourceRecordsFilterWarning " : " One 'sourceRecordsFilter' could not be applied: %s." ,
194+ "skippedSourceRecordsFilterWarning " : " One 'sourceRecordsFilter' could not be applied: %s." ,
195195 "skippedTargetRecordsFilterWarning" : " One 'targetRecordsFilter' could not be applied: %s." ,
196196 "missingParentLookupsPrompt" : " {%s} %s missing parent lookup records were found. See %s file for the details." ,
197197 "updatingSummary" : " Data processing summary." ,
Original file line number Diff line number Diff line change @@ -639,8 +639,12 @@ export default class MigrationJobTask {
639639 ___filterTargetQuery ( tempQuery ) ;
640640 } else if ( this . scriptObject . sourceRecordsFilter ) {
641641 // Add any extra filter conditions to the source query
642- const additionalWhereClause = parseQuery ( `SELECT Id FROM ${ this . sObjectName } WHERE ${ this . scriptObject . sourceRecordsFilter } ` ) . where ;
643- tempQuery . where = Common . mergeWhereClauses ( tempQuery . where , additionalWhereClause ) ;
642+ try {
643+ const additionalWhereClause = parseQuery ( `SELECT Id FROM ${ this . sObjectName } WHERE ${ this . scriptObject . sourceRecordsFilter } ` ) . where ;
644+ tempQuery . where = Common . mergeWhereClauses ( tempQuery . where , additionalWhereClause ) ;
645+ } catch ( ex ) {
646+ self . logger . warn ( RESOURCES . skippedSourceRecordsFilterWarning , ex . message ) ;
647+ }
644648 }
645649
646650 let query = composeQuery ( tempQuery ) ;
You can’t perform that action at this time.
0 commit comments