Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • STATA 17: Problem in importing dataset

    Stata 17
    Problem importing dataset with do file syntax (noticed after installing the recent update of 05 Oct 2021)

    Returing with errors like, "file not found", "file could not be opened" etc.

    Example 1:

    . do "C:\Users\Lenovo\AppData\Local\Temp\STD16cc_00 0000 .tmp"

    . insheet using "C:\Users\Lenovo\Box\Short Study\Women's Empowerment\data-WE-cleaned_zscore.csv"
    file C:\Users\Lenovo\Box\Short Study\Women's Empowerment\data-WE-cleaned_zscore.csv not found
    r(601);




    Example 2:

    . do "C:\Users\Lenovo\AppData\Local\Temp\STD16cc_00 0000 .tmp"

    . import delimited "C:\Users\Lenovo\Box\Short Study\Women’s Empowerment\data-WE-cleaned_zscore.csv"
    (encoding automatically selected: ISO-8859-1)
    (148 vars, 268 obs)

    . save "C:\Users\Lenovo\Box\Short Study\Women's Empowerment\data-CN-1.dta"

    . use "C:\Users\Lenovo\Box\Short Study\Women's Empowerment\data-CN-1.dta", clear
    file C:\Users\Lenovo\Box\Short Study\Women's Empowerment\data-CN-1.dta not found
    r(603);
    Last edited by Sandipta Chakraborty; 07 Oct 2021, 13:15.

  • #2
    I note that your file path doesn't look like I would expect. Is it a directory used for filesharing with Box?

    Comment


    • #3
      Yes, the datafile is kept in a folder within Box drive of my PC. But previously I never faced such such issue with earlier version of Stata.

      Comment


      • #4
        Network drives and cloud services are a frequent source of problem reports on Statalist. Note that the import that failed in Example 1 was successful in Example 2, but the subsequent save did not give the expected confirmation message.

        You may find this linked post helpful.

        Comment


        • #5
          Thank you for the guidance

          Comment

          Working...
          X