web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

(0) ShareShare
ReportReport
Posted on by 95

Hi ,

Am facing an issue in Project Management - WBS. Scenario listed below - 

  1. Created a Project with WBS and Published.
  2. Transferred to Forecast and Budget and Approved.
  3. Actuals recorded.
  4. Wanted to add few changes of additional activities with cost estimates. Here is the issue - 
    1. When i edit WBS and Make changes and then publish - am facing the error "Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected..
    2. Even when i change the published WBS to edit and when i tried republishing without any change, am facing the same issue.

When we checked the table, the line available in projplanversion doesn't have the hierarchytreetablerefrecid for 2 lines. How can this be sorted. I even tried to delete and recreate the line, but system is not allowing the publish as i have actuals recorded against the activity.

Can i get a solution on this? The technical team is not able to fix this. 

THanks

Deepa

I have the same question (0)
  • Arunraj Rajasekar Profile Picture
    1,743 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Hi Deepa,

    This error occurs when an update or delete on a table is performed without first selecting the record. Is there any custom code in the work breakdown structure?

  • Deepa Paranthaman Profile Picture
    95 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Hi Arunraj,

    There is no custom code in WBS.

    As i understand from the client, they have done some changes and published the wbs previously. And now to reupdate with required changes, system is not allowing.

    How can this be sorted?

    Thanks

    Deepa

  • Suggested answer
    Arunraj Rajasekar Profile Picture
    1,743 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Which version do you have? Can you create new wbs and publish them without any problems? If the problem only occurs on previously created wbs, an x++ script to update the missing reference recid can be written.

  • Deepa Paranthaman Profile Picture
    95 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Version 42.

    I tried with new project and WBS. It worked fine as well.

    How can this be fixed with x++script?

  • Suggested answer
    Arunraj Rajasekar Profile Picture
    1,743 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Sorry, without knowing the data in the database, I am unable to assist you with the script. By using debugger, the developer could locate the missing recid reference and update them

  • Deepa Paranthaman Profile Picture
    95 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Ok Thanks.

    Will check with the developer on the same. Hope it helps

    Thanks Arun :)

  • Gopinath selvaraj Profile Picture
    5 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Hi Arun,

    I am unable to fetch the reference as the line is missing in the Hierarchy table but the same is available in the projplanversion table. How can i bring the line in the hierarchy table which acts as the source for projplanversion?

    Thanks

    Gopinath

  • Arunraj Rajasekar Profile Picture
    1,743 on at
    RE: Cannot edit a record in Hierarchy tree (HierarchyTreeTable). The record has never been selected.. ISSUE in Project WBS

    Hi Gopinath,

    Does the table smmactivites contain any records? How many records in the heirarchy table are missing the reference records?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
CA Neeraj Kumar Profile Picture

CA Neeraj Kumar 753

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 752 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 534 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans