General pattern to handle it defensive:
[FirstAid] Handling of The source contains no DataRows exception - News / Tutorials - UiPath Community Forum