I am following the same method installing the Excel Package
pip install -U robotframework-datadriver[XLS]
then adding the robotframework-datadriver in the settings of Pycharm
PATH: D:\AUTO from where i am running the script.
below is my code
*** settings ***
Library SeleniumLibrary
Test Template GeneralInformationPage
Library XML
Library Screenshot
Library DataDriver ../AUTO/wsrfr/Testscripts/Data/Data1.xlsx
Resource ../../../newproduct/TestScripts/Pages/Common.robot
Resource ../../../newproduct/TestScripts/Pages/LoginPage.robot
Resource ../../Testscripts/Pages/GendralInfo.robot
*** Variables ***
${data_file} Data1.xlsx
*** test cases ***
LoginPage
LoginPage.LogintoWoodruffPage
Navigate_to_ProductConfigure
Common.NavigatetoRFR
GeneralInformationPage
[Teardown] Close Browser
*** Keywords ***
GeneralInformationPage
[Arguments] ${NamedInsured} # NameInsured is declared in Excel
Wait For Condition return document.readyState == "complete"
Click Element ${RenewalBtn}
Wait For Condition return document.readyState == "complete"
log to console General Information Started
Input Text ${NamedInsuredinp} ${NamedInsured}
ERROR
PS D:\AUTO> python -m robot .\wsrfr\Testscripts\specs\wsrfr.robot
==============================================================================
Wsrfr
==============================================================================
[ ERROR ] [ DataDriver ] Error in robot file:
File "D:\AUTO\wsrfr\Testscripts\specs\wsrfr.robot", line 0
[ ERROR ] Calling method '_start_suite' of listener 'DataDriver' failed: FileNotFoundError: File attribute was empty. Tried to find D:\AUTO\wsrfr\Testscripts\specs\wsrfr.csv but file does not exist. If no file validation is required, set file_search_strategy=None.