Data Record Not Found – User has record in “work items assigned to me” list that has been deleted

  • Data Record Not Found – User has record in “work items assigned to me” list that has been deleted

    Posted by Sami Mattson on April 13, 2020 at 2:42 pm
    • Samantha Mattson

      Member

      April 13, 2020 at 2:42 PM

      I have a user who has a record showing in their list of “work items assigned to me” that has been deleted.Ā 

      when the user clicks on it the below error comes up.

      Any recommendations on how I might be able to get rid of that out of the users list would be great.

      ——————————
      Samantha Mattson
      Business Analyst, Industrial Technology Group, formerly Pettibone LLC
      The Heico Companies
      Warrenville IL
      smattson@pettibone.com
      ——————————

    • Ben Morgan

      Member

      April 13, 2020 at 6:04 PM

      We had a similar issue as a result of an MS bug some time ago, and the solution was to write a script to remove the problem records and submit a ticket to Microsoft to have them run the script in our production environment (if you have an on prem installation, then you could just do the work directly).Ā  Here is the script that worked for us, which was related to expense reports:Ā 

      update dbo.WORKFLOWWORKITEMTABLE set STATUS = 2
      where REFRECID in
      (select REFRECID from dbo.WORKFLOWWORKITEMTABLE t1
      join dbo.WORKFLOWTRACKINGSTATUSTABLE t2 on t2.CONTEXTRECID = t1.REFRECID
      where t2.DOCUMENTTYPE = ‘Expense reports’
      and (t1.REFRECID not in (select RECID from TRVEXPTABLE)
      and t1.REFRECID not in (select RECID from TRVEXPTRANS)))

      Since yours is a slightly different issue, you would need to change the criteria in the subquery, but this should give you an idea of the tables, values, and joins involved.Ā  From there, you can find the problem records in a test environment and fine-tune your script to get rid of them.

      ——————————
      Ben Morgan
      M3 Engineering & Technology Corp
      ——————————
      ——————————————-

    • Rahul Mohta

      Member

      April 14, 2020 at 2:51 AM

      Suggest if problem can be recreated at will in sandbox?
      if not then should contact MS support

      ——————————
      Regards
      Rahul Mohta
      Partner – D365FO
      Real Dynamics
      ——————————
      ——————————————-

    • Samantha Mattson

      Member

      April 14, 2020 at 9:10 AM

      Ben,
      thank you for the response. I will submit an incident to MS to fix this issue.

      ——————————
      Samantha Mattson
      Business Analyst, Industrial Technology Group, formerly Pettibone LLC
      The Heico Companies
      Warrenville IL
      smattson@pettibone.com
      ——————————
      ——————————————-

    Sami Mattson replied 6 years, 3 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘Data Record Not Found – User has record in “work items assigned to me” list that has been deleted’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

Welcome to our new site!

Here you will find a wealth of information created for peopleĀ  that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!