Consultor Eletrônico



Kbase P105640: Changing and saving a SmartDataObject gives an error:
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   16/10/2008
Status: Unverified

FACT(s) (Environment):

Dynamics
Windows

SYMPTOM(s):

Changing and saving a SmartDataObject gives an error:


Invalid Relative Directory <directory name>

The directory name is valid

Newly created dynamic SmartDataObjects saves fine first time.

Re-saving them get the error.

Other objects from the same directory can be saved without any problems.

Outside of Dynamics the user is able to manually create and modify files in that directory

The directory was copied from a read-only location

The following code shows directory as being only readable (FILE-INFO:FILE-TYPE = "DR"):
FILE-INFO:FILE-NAME = "C:\work\samples".
MESSAGE FILE-INFO:FILE-TYPE.


CAUSE:

Windows folder security issue:
When saving a dynamic SmartDataObject, Dynamics is checking if the product module relative path exists and is a writeable directory.
As the directory was copied from a read-only location, it was marked as read-only

FIX:

Review the folder user rights: the directory should be writeable for the current user.