Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Cannot delete a class in USR layer

699 views
Skip to first unread message

mcruz

unread,
Jul 5, 2010, 6:29:02 AM7/5/10
to
Hi all,

I don't know exactly why, a class in the SYS layer shows in the AOT it has
been modified in the USR layer. When I compare SYS and USR layers, the
comparison tool says there are no differences. So, I try to delete the USR
layer.

I've tried the deletion from the comparison tool and directly from the node
in the AOT, but the USR layer is still there.

I've tried to delete the USR layer by running a job which deletes from the
UtilElements table, but the class is still there.

I've delete the axapd.aoi file and restarted the AOS, and the class has not
been deleted.

So, the question is how can I delete this modification I have not made?

I'm working in AX2009 SP1 and got the X++ license.

Thanks in advance for your help.

Best regards,
Cruz

Michal

unread,
Jul 5, 2010, 7:55:15 AM7/5/10
to
"mcruz"

MCruz,
I affraid you've tried all gentelman's ways and what's left is brute force:
Backup your database first, export (with ID's) entire layer USR except the
offending class, rename axusr.aod, delete axapd.aoi, re-import USR layer
with ID's, restore the Database.

Regards
--
Michal
www.AXImprove.co.uk | Solutions for AX performance and storage
management.

Michal

unread,
Jul 5, 2010, 10:10:11 AM7/5/10
to
"Michal"

Two more things you could check:
1) Rightclick / Layers, (this will show one node per layer of same class),
try to delete it from there.
2) In Ax2009 major objects have to have unique names across AOT subtrees
(Tables, Classes, Types, etc) Check if by any chance you have a table or
extended data type of same name (in USR).

mcruz

unread,
Jul 6, 2010, 4:17:53 AM7/6/10
to
Hi Michal,

Thank you for your reply.

I've tried to delete the object from 'Layers' view, but it didn't work.

I'll try to find out if there is another object with the same name in USR
layer. If this doesn't work, I'll use the brute force ;-)

Best regards,
Cruz


Joris de Gruyter

unread,
Jul 7, 2010, 10:50:44 PM7/7/10
to
Have you tried actually adding a customization (like a comment in code or
something), saving the customization, then deleting it?

--------
Streamline Systems, LLC http://www.streamlinesys.com
My blog @ http://daxmusings.blogspot.com

mcruz

unread,
Jul 13, 2010, 6:10:29 AM7/13/10
to
Yes, I've tried, but it didn't work either.

Celeste

unread,
Jul 16, 2010, 9:22:47 AM7/16/10
to
Did you make sure that you where in the USR layer when you deleted the object?
Did you try restarting the AOS?

If there are no other changes you want to keep in the usr layer, you could
build the usr layer again by doing the following:
Stop AOS
Rename the axusr.aod file to something like axusr_OLD.aod (in the Appl folder)
Start AOS

Hope this solves it!
--
//https://www.xing.com/profile/Celeste_Lategan

0 new messages