Community Tip - If community subscription notifications are filling up your inbox you can set up a daily digest and get all your notifications in a single email. X

Translate the entire conversation x

Change Request and Problem Report missing from Actions dropdown

avillanueva
22-Sapphire III

Change Request and Problem Report missing from Actions dropdown

I have a brand new install of PDMLink 13 and noticed in my testing that both Change Request and Problem Report are missing from actions. I am still in the middle of configuring things so I have applied my customizations from 12 and brought in my lifecycles, workflows and OIRs. I do see Change Notice and Promotion Request. Scratching head here but I am sure its something simple. 

avillanueva_0-1742330340945.png

I do have some additional actions like Delete Representations that I added in. I checked the licenses and the user I am testing does have Windchill Advanced license among others. What's weird is that if I look at jcaDebug, its not even greyed out.

avillanueva_1-1742330507823.png

 

 

ACCEPTED SOLUTION

Accepted Solutions
avillanueva
22-Sapphire III
(To:avillanueva)

Why is it with out fail, 5 mins after I post something, the solution appears before me? I used to work in a college bookstore and as soon as I told a student I could not find a book, I would find it while helping the next student. Ok, time for some appropriate memes:

johnny.jpgeggface.jpg

So I was double checking my snapshots and noticed this around one of the core files I was restoring...

avillanueva_0-1742409465280.png

Yeah, fat fingered the copy and the actionModel and actions file were identical. Lesson for all as soon as you complete install, take a backup or have snapshots running. File restore, all is well. Good thing I like eggs.

avillanueva_1-1742409555643.gif

 

 

View solution in original post

4 REPLIES 4
Maggie_Ma
14-Alexandrite
(To:avillanueva)

Could you please verify if the actionmodel namded folderbrowser_toolbar_new_submenu is in Windchill/codebase/config/actions/custom-actionModels.xml? 

If there is, please compare the actionModel definition with OOTB one which is defined in Windchill/codebase/config/actions/FolderManagement-actionModels.xml.

The following two actions should be in the model with name folderbrowser_toolbar_new_submenu, like below:

-------------------------------

<model name="folderbrowser_toolbar_new_submenu" resourceBundle="com.ptc.windchill.enterprise.folder.FolderActionResource">

...

<action name="create" type="changeRequest" shortcut="true"/>
<!-- New Change Request -->
<action name="create" type="problemReport"/>
<!-- New Problem Report -->

...

</model>

-------------------------------

Maggie _Ma
avillanueva
22-Sapphire III
(To:avillanueva)

"It's me, hi, I'm the problem, it's me". Yep, I sure its something I did. I am checking my custom action model files which I tried cleaning up but may have introduced a bug. 

actionmodels.xml file is missing an entry called action search table toolbar. Please add the model and restart the server.

I saw this message on screen when digging into jcaDebug so yep, @Maggie_Ma , you are on the right track.

avillanueva
22-Sapphire III
(To:avillanueva)

Perhaps I spoke too soon. There seems to be a more fundamental issue. I have reset custom-actions.xml and custom-actionModels.xml back to original (empty) and verified that all the OOTB actions and actionModels in the config/actions folder is OOTB (dated 6/25/2024) to 13.0.2 CPS 4. I cleared tomcat cache, cleared compiledTasks and ran MakeJar. I hope that is all I need to do to clear things. Upon restart, things look ok but UI quickly starts throwing weird messages like below that I do not understand. So my initial title of post might be off. Here is what I am seeing in logs:

(com.ptc.netmarkets.util.misc.miscResource/400) com.ptc.netmarkets.model.NmException: actionmodels.xml file is missing an entry called product navigation.  Please add the model and restart the server.

com.ptc.netmarkets.model.NmException: a
ctionmodels.xml file is missing an entry called clfAdmin navigation.  Please add the model and restart the server.

com.ptc.netmarkets.model.NmException: actionmodels.xml file is missing an entry called action search table toolbar.  Please add
 the model and restart the server.

java.lang.NoSuchMethodException: Unkno
wn property 'class' on class 'class com.ptc.core.components.factory.DefaultComponentDescriptor'

2025-03-19 13:24:20,763 ERROR [ajp-nio-127.0.0.1-8010-exec-4] com.ptc.carambola.CustomizationPage <user> - Did not find any instance of wt.change2.WTChangeIssue object. Some example
s will not work unless at least one wt.change2.WTChangeIssue object has been created.
2025-03-19 13:24:20,765 ERROR [ajp-nio-127.0.0.1-8010-exec-4] com.ptc.jca.error <user>- ---------- JCA Exception ---------- jakarta.servlet.jsp.JspException: wt.util.WTException: j
ava.lang.NullPointerException: Cannot invoke "com.ptc.netmarkets.util.misc.NmAction.isHidden()" because "this.action" is null

2025-03-19 13:24:09,739 ERROR [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.netmarkets.util.misc.StandardNmActionService.general <user>- Action Name prevButton defined in config/actions/
ChangeManagement-actions.xml don't have expected parent element [objecttype]
2025-03-19 13:24:09,739 ERROR [ajp-nio-127.0.0.1-8010-exec-8] com.ptc.netmarkets.util.misc.StandardNmActionService.general <user> - wt.util.WTException: Action Name prevButton defin
ed in config/actions/ChangeManagement-actions.xml don't have expected parent element [objecttype] wt.util.WTException: Action Name prevButton defined in config/actions/ChangeManagement-a
ctions.xml don't have expected parent element [objecttype]

Nested exception is: java.lang.NullPointerException: Cannot invoke "com.ptc.netmarkets.util.misc.NmAction.isHidden()" because "this.action" is null

The errors above are in no particular order, just snippet from Methodserver logs to jog any of you out there. When I started this, things seems ok for a new install. I started my configuration creating soft-types, creating attributes and applying customizations. Things were ok when imported workflows, lifecycles, OIRs, creating groups and contexts. As I mentioned, I saw some of my custom actions but then I noticed some OOTB things missing. As far as I know, what I seeing is not database related it is? when changes are made to actions and action models, do I have the proper steps to clear and rebuild setup?  My next steps would be to try and unwind some of the customizations I've added. I can't imagine much dependencies on custom classes or other additions. 

avillanueva
22-Sapphire III
(To:avillanueva)

Why is it with out fail, 5 mins after I post something, the solution appears before me? I used to work in a college bookstore and as soon as I told a student I could not find a book, I would find it while helping the next student. Ok, time for some appropriate memes:

johnny.jpgeggface.jpg

So I was double checking my snapshots and noticed this around one of the core files I was restoring...

avillanueva_0-1742409465280.png

Yeah, fat fingered the copy and the actionModel and actions file were identical. Lesson for all as soon as you complete install, take a backup or have snapshots running. File restore, all is well. Good thing I like eggs.

avillanueva_1-1742409555643.gif

 

 

Announcements

Top Tags