Error Moving a Folder Using Automation

Doc
Member Posts: 8
The following code produces an apparent client-computer specific error:
CREATE('Microsoft Scripting Runtime'.FileSystemObject);
IF 'Microsoft Scripting Runtime'.FileSystemObject.FolderExists(<A Valid Original Path>) THEN
'Microsoft Scripting Runtime'.FileSystemObject.MoveFolder(<A Valid Original Path>,<A Valid New Path>);
CLEAR('Microsoft Scripting Runtime'.FileSystemObject);
When a specific user is logged onto the network with their client computer A and running Navision (SQL), executing the above code on record #1 results in the following error:
This message is for C/AL programmers: An exception was raised in method MoveFolder. The OLE control or Automation server has returned error (HRESULT) -214735267. The component did not provide the exception description.
When that specific user is logged onto Navision using a different user’s client computer B and executes the above code on the same record #1, no error is generated and the folder move is completed successfully.
Network personnel have verified that the all users have complete rights to <A Valid Original Path> and <A Valid New Path>. They have also verified that all users (including those who do not encoutner the error) network security is identical.
Any suggestions as to what assignable causes could be investigated?
CREATE('Microsoft Scripting Runtime'.FileSystemObject);
IF 'Microsoft Scripting Runtime'.FileSystemObject.FolderExists(<A Valid Original Path>) THEN
'Microsoft Scripting Runtime'.FileSystemObject.MoveFolder(<A Valid Original Path>,<A Valid New Path>);
CLEAR('Microsoft Scripting Runtime'.FileSystemObject);
When a specific user is logged onto the network with their client computer A and running Navision (SQL), executing the above code on record #1 results in the following error:
This message is for C/AL programmers: An exception was raised in method MoveFolder. The OLE control or Automation server has returned error (HRESULT) -214735267. The component did not provide the exception description.
When that specific user is logged onto Navision using a different user’s client computer B and executes the above code on the same record #1, no error is generated and the folder move is completed successfully.
Network personnel have verified that the all users have complete rights to <A Valid Original Path> and <A Valid New Path>. They have also verified that all users (including those who do not encoutner the error) network security is identical.
Any suggestions as to what assignable causes could be investigated?
"For he wins who fires first and can deliver the heaviest fire."
0
Comments
-
If one user can do it and another user cannot. I will say that it's definitely a security issue.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 321 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions