Skip to content

Commit

Permalink
Conditional logic to drop dummy field
Browse files Browse the repository at this point in the history
In some cases, the _qvctemp.LineageInfo_qvd.DummyField is not present.
Added logic to make the drop of this field conditional to avoid script
error.
  • Loading branch information
RobWunderlich committed Nov 1, 2016
1 parent 6a354c5 commit b899572
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion QVC_Source/Qvc_DataLineage.qvs
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,9 @@ LET ErrorMode=$(_qvctemp.SaveErrorMode); // Restore the ErrorMode


// Clean up temp variables
DROP FIELD _qvctemp.LineageInfo_qvd.DummyField;
IF FieldValueCount('_qvctemp.LineageInfo_qvd.DummyField') > 0 THEN // If we have a dummy field,
DROP FIELD _qvctemp.LineageInfo_qvd.DummyField;
ENDIF
SET _qvwpath=;
SET _qvctemp.lineageRow=;
SET _qvctemp.vCreatorDoc=;
Expand Down

0 comments on commit b899572

Please sign in to comment.