E512-65: the model cannot be opened or locked


Applies To
Product(s):AutoPIPE,
Version(s):ALL
Area: Import
Original Author:Bentley Technical Support Group

Problem

The following is displayed while importing a file or opening the program:

E512-65: the model cannot be opened as temporary directory cannot be set

or

E512-65: The model cannot be opened as cannot be copied to the temporary directory Possible reasons could be: Network connection failure No space in Temporary directory

or

E512-65: The model cannot be opened as it is temporarily locked for editing by:

or

E512-65 the model cannot be opened for editing:

Solution:

This error is typically caused by one the following reasons:

Reason #1:

The AutoPIPE program can only handle model path names with ASCII character set and does not support double byte unicode characters or Kanji characters in model path.

In some earlier versions of AutoPIPE the program allowed the model to be opened if the model path has some non ASCII character, but many people reported the program of being unstable. The application would crash on consistency check, analysis, or any report generation as soon as the commands were executed. 

Therefore, AutoPIPE V8i 09.02.xx.xx and higher now blocks opening such a model and display the error message shown above (i.e. E512-65...).

Avoidance:

only use ASCII characters in the file-path name.

Perform test here:

a. Copy AutoPIPE model DAT file to a new folder on the computer's desktop

b. Change model file name using MS Explorer to "ABC123.DAT"

c. Start AutoPIPE and try to open model "ABC123.DAT" from new folder on computer's desktop.

What happens?

 - If model opens, than problem was related to the filename

 - If model does not open, continue below. 

Reason #2:

An issue with permissions on a file server can also cause problems.

Avoidance:

Users should have admin / power user permission rights to their own computer.

a. Confirm that the AutoPIPE user has read / write privileges to folders as mention here by version

b. Give full access rights to ‘Everyone’ group for the following folders:

In addition, run the application as an administrator. To mark an application to always run as an administrator, do the following:

1. On the Start menu, locate the program that you want to always run as an administrator.
2. Right-click the application’s shortcut, and then click Properties.
3. In the Properties dialog box, click the Compatibility tab.
4. Do one of the following:
To apply the setting to the currently logged-on user, select the Run This Program As An Administrator check box, and then click OK.
To apply the setting to all users on the computer and regardless of which shortcut is used to start the application, click Change Setting For All Users to display the Properties dialog box for the application’s .exe file, select the Run This Program As An Administrator check box, and then click OK twice.

The application will now always run using an administrator access token. Keep in mind that if you are using a standard account and prompting is disabled, the application will fail to run. 

Confirm User's permission by performing this test:

Perform test in all of these folder locations:

1. %temp% folder (C:\Users\username\AppData\Local\Temp)

Locate and open folder: AP_???? (ex. AP_090602, AP_100000, etc..).

2. C:\ProgramData\Bentley\AutoPIPE CONNECT \Examples

3. Your Server folder location (ex. z:/...)

A. Open folder location mentioned above.

B. Create a new folder

C. Next Create a new TEXT document called "ABC123.DAT" in this folder.

Question:

Can user create a new folder and document in each of the 3 folders mentioned above?

Answer:

Yes - good, move on to next step

No - therefore user does not have the correct permissions, update user's permissions before proceeding. 

Reason #3:

The network server where the model is stored is operating a slow speed.

Symptoms: repeatedly opening the model the first 2x results in the error message but on the 3rd or more number of tries to open the model it opens without the error message.  

Avoidance:

Move the model from the server location to the local hard drive, work on the model and when finished move the final model back to the network server.

Also, ask your IT department to use network monitoring tools to better understand the problem and how best to fix it.

Reason #4:

This message may also appears when the path to model is too long.
 
Avoidance:
 
For AutoPIPE 9.4 and higher, make sure that the file path is shorter than 256 characters.
 

Reason #5:

Antivirus / Malware software is not correctly set up to exclude AutoPIPE file from being scanned.
 
Example: user with Anti-Virus software called "FireAMP" installed needed to request IT department to add AutoPIPE and ProjectWise to list of working directories that are to be excluded from this application's scan functions.
 

Reason #6:

The model is currently opened by user #1 and user #2 is trying to open the same model. Current limitation and intentional for Server based file architecture; only one user can access the model at a time. 
 
see Video here for workaround:

 

Reason #7:

The application was unconventionally closed but  the *.LCK file is still open for a specific model.

When a file (ex. WALKTHRU.DAT) is opened by user#1, a *.LCK file (ex. WALKTHRU.LCK) is saved to the same folder location as the model. When user #2 tries to open the same file as user #1, the program will see that a LCK is in position, preventing the model from being opened and display the Error message above for user #2.

However, if the model was not closed by using typical commands (i.e program crash, application freezes, computer power failure, etc) the *.LCK file may still be in place and will need to be manually deleted.

Avoidance:

  1. First close all AutoPIPE applications on that may be opened.

  2. manually search for and delete all *.LCK files in any AutoPIPE model folders.

  3. Search for the following folder,    

C:\ Users\ username\ AppData\ Local\ Temp\ AP_090***\

Delete these folders (ex. AP_090602, AP_100100, etc..) as they only contain Temp files used by AutoPIPE as a model is being accessed. After a model is closed using program commands (i.e Save), AutoPIPE will automatically delete the corresponding sub folders. Each time the model is not closed correctly the sub folder is NOT deleted as intended. 

Reason #8: 

If the application's splash screen never appears, see the following WIKI:

 a. AutoPIPE crashes, Faulting module name: ntdll.dll

Reason #9: 

The drawing file may not be in the APC file.

1. Save a copy of the APC file to a new folder on the desktop.

2. Open the new folder location

3. Rename the file from *.APC to *.ZIP

4. Open the Zip file in any archive application.

5. Search for a file name *.DAT

Does the *.DAT file exist in the folder?

If yes, look at one of the other reasons listed on this WIKI page

If no, this is the source of the problem. There must be a *.DAT file in the APC file. Otherwise, the model cannot be opened. Only suggestion, open the original model used to generate the *.APC file, and save again as an Archive file. Confirm filename meets the naming convention mentioned above (i.e. Only ASCII characters, file name length < 256, file name does not contain "." in the middle, last character in file name is not a space before " .DAT", etc...)

See Also

Error Messages

Bentley AutoPIPE