Skip to main content
Microsoft Dynamics GP forum
Suggested answer

Getting an error when opening Dexterity

editSubscribe (0) ShareShare
ReportReport
Posted on by

I have a custom application written in Dex 14,  I am in the process of upgrading this to Dex 18.

However, with the new install of Dex 18 I have put on an RDS server, I am getting the following error when Dex starts up:

An open operation on table "WatchExpressions" failed because the path does not exist.

Now, I understand that this is a c-tree table from Dexterity that should be in the %TEMP% folder.  I have checked the permissions on the %TEMP% folder and also have plenty of disk space free.

The odd part is I have an old folder with Dex18 installed on the same server and this does not give the same error.  

So, I copied the files from the working folder into the new folder, assuming that this would fix the error but it hasn't.  I am still getting the same error.

Because I don't know what this table is or contains, I don't know if it will be an issue or not.

Can anyone shed some light on this please?

  • mavrick5au Profile Picture
    mavrick5au on at
    RE: Getting an error when opening Dexterity

    That part I can't explain.

    It is an RDS so maybe there is some sort of group policy that sets the permissions.  No idea, but it is all working now.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,781 Super User on at
    RE: Getting an error when opening Dexterity

    You would need write permissions to be able to make any changes to the development dictionary.

    Why would the write permissions be missing in the first place?  someone would have had to remove them.

    Regards

    David

  • mavrick5au Profile Picture
    mavrick5au on at
    RE: Getting an error when opening Dexterity

    All good now.  I assume one or more of these files needs to be opened in modify mode.  Even though I had full permissions on the folder, the "users" user only had read permissions.  It was preventing me from doing anything unless I ran it as "Run As Administrator".

    Our network admin altered the permissions on the folder and it is all working now.

    Thanks for your help David.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,781 Super User on at
    RE: Getting an error when opening Dexterity

    Hi Mark

    I really don't know what is happening.

    Do you have all the dat and idx files alongside your dictioanry?

    Dictionary:
    Dynamics.dic

    Watch Points:
    DynamicsDbgWchEx.dat
    DynamicsDbgWchEx.idx

    Worksets:
    DynamicsResExWsH.dat
    DynamicsResExWsH.idx
    DynamicsResExWsM.dat
    DynamicsResExWsM.idx

    References:
    Dynamics_ref.dat
    Dynamics_ref.idx

    You could try deleting the watch point files if they exist so they can be recreated. Maybe they are there but are corrupted.

    Regards

    David

  • mavrick5au Profile Picture
    mavrick5au on at
    RE: Getting an error when opening Dexterity

    Hi David,

    No luck with that either.  We temporarily turned off the AV, I did the test again but it didn't work then we turned it back on again.

    I don't understand why the other folders are working an only the new folder I set up is failing.

    The folders are on the same server set up the same way.

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,781 Super User on at
    RE: Getting an error when opening Dexterity

    Hi Mark

    Is your antivirus getting in the way?

    exclude the extensions .dat, .idx, .tmp & .ini

    Regards

    David

  • mavrick5au Profile Picture
    mavrick5au on at
    RE: Getting an error when opening Dexterity

    Hi David, no my development folder is it's own folder on c:\

  • David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,781 Super User on at
    RE: Getting an error when opening Dexterity

    PS: I am running Dexterity Training next week 3-7th Oct in Orlando and GP Power Tools training on the 10th Oct

    winthropdc.wordpress.com/.../

  • Suggested answer
    David Musgrave MVP GPUG All Star Legend Moderator Profile Picture
    David Musgrave MVP ... 13,781 Super User on at
    RE: Getting an error when opening Dexterity

    Hi Mark

    Is your Dexterity Development folder under C:\Program Files (x86)\?

    That is the problem. UAC is blocking access being able to write in that folder.

    Please follow the Article below to set up your development environment, or at least move the development folder out of program files.

    https://winthropdc.wordpress.com/2017/07/12/dexterity-development-environments-series/

    Regards

    David

  • mavrick5au Profile Picture
    mavrick5au on at
    RE: Getting an error when opening Dexterity

    Thanks David.  However, that hasn't fixed my issue.  I never open the dictionary from the Program Files folder.  I have a separate development/test folder that contains the dexterity environment plus all of my custom files.  The issue is when I open dex.exe without "Run As Administrator", I get the Watch Expressions error.  When I run it with the Run As Administrator, it works fine.  The other issue is that this is a new installation folder I am testing.  The old folders all work correctly without Run As Administrator.  

    Should I delete the DbgWchEx.dat and idx files so Dex can recreate them?

Helpful resources

Quick Links

What Motivates a Super User?

We know many of you visit the Dynamics 365 Community and Power Platform…

Demystifying Copilot with Georg Glantschnig…

Industry experts answer burning questions directly from our amazing Community…

Setting Up Knowledge Sources for Copilot…

Look at how configuring a comprehensive knowledge base is crucial…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,068 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,591 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,138

Product updates

Dynamics 365 release plans