The file associated with this view could not be located.

Reply
Contributor
Posts: 23

The file associated with this view could not be located.

[ Edited ]

I have a SAS EG project file (version 7.1) that  I created two months ago and never had issues with it. Anyway, I opened the project today to work off of and while the project opened just fine (and the import steps were working), if I click on the program portion, I had this error: "the file associated with this view could not be located." And the program does not open.

 

How can this be? How can my project exist but not the program and how do I retrieve the program? Thank you all in advance for your help.

 

 

Super User
Posts: 13,350

Re: The file associated with this view could not be located.

You may need to provide additional information. SAS will allow creating a view from an external file, such as a text file. If that external file was renamed, moved or deleted that could be a cause and would have nothing to do with EG project.

Can you export the code from the project? If so check to see if you have a reference to a view.

 

Another possibility, since you mention importing data, is that the import steps may not have actually completed and so you opening the code attempted to use something that was not quite available yet.

Contributor
Posts: 23

Re: The file associated with this view could not be located.

Thanks for your reply! So what kind of information would you need? I tried to export the code and all that exported was the code that SAS uses to export... Also, I can't even open the program without it erroring so I can't actually see its contents anymore. I can, however, verify that the import steps run in full.

Super User
Posts: 13,350

Re: The file associated with this view could not be located.

I was hoping you'd be able to export code from the existing project to verify that there weren't any syntax issues and them possibly import that back into a new project.

 

I don't use EG because it is often next to an impediment in the types of ad hoc queries most of my data gets. So recovery of the odd type file projects are stored in is out of my knowledge base.

 

Can you get a log for someone to look at? It may provide some information.

 

If your organization has backup software it may be worth asking if there is a version of this project in an archive.

Valued Guide
Posts: 525

Re: The file associated with this view could not be located.

EGPs are zipped folders. In case of an emergency unzipping it could be the only way to find out what went wrong. You will find the contents of your project in numerous xml-files, code is stored in normal sas-program-files.

 

On opening code, i have never seen such an error message.

Contributor
Posts: 43

Re: The file associated with this view could not be located.

Can you tell me if the program is embedded or not? To find out:
Right-click on the program
Left-click on Properties
Under the General tab, check the Embed button. If it's not greyed-out, then it's not embedded, and there is a physical file location in the File path text box. That means your program is stored separately from your EG project. If it was moved, renamed or deleted, your EG project won't have access to it anymore.
Contributor
Posts: 23

Re: The file associated with this view could not be located.

Posted in reply to JohnSAScom

Hi there, I checked to see if the file was embedded and it seems to be embedded. Does it make sense to receive this error given that the program is indeed embedded in the project file?

Contributor
Posts: 43

Re: The file associated with this view could not be located.

If it is embedded, then it's stored as part of your EG project file (*.EGP). If that's the case and your still getting that weird message, your best bet would be to access backup copies, if they were made. I would try the suggestion @Andreas_Ids made, but now it's getting complicated. I've never come across that error either. Sorry, probably not the news you were hoping for. 🙁
Ask a Question
Discussion stats
  • 7 replies
  • 593 views
  • 0 likes
  • 4 in conversation