Skip to main content
Solved

Project Invoice Onhold - Can't delete

  • June 21, 2024
  • 7 replies
  • 194 views
  • Translate All

Forum|alt.badge.img

Good day,

The accountant add a second invoice on a project in error.  They realized the issue. Removed the line items and placed the invoice on hold.  Now it is stuck.  The trace shows that we are getting table errors on the database.  Any help would be appreciated.

Do I need Acumatica?

It is causing issue with management because it shows the Project 2x on dashboards and report.

Thank you

Evan

 

System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IEnumerable`1 mergingTypes, Func`2 getReferencesFor, Boolean childrenSubstitution)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IReadOnlyDictionary`2 collectedReferences)
   at PX.Data.ReferentialIntegrity.Merging.TableMergedReferencesInspector.<>c__DisplayClass3_0.<.ctor>b__0(Task _)
   at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
System.AggregateException: One or more errors occurred. ---> System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IEnumerable`1 mergingTypes, Func`2 getReferencesFor, Boolean childrenSubstitution)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IReadOnlyDictionary`2 collectedReferences)
   at PX.Data.ReferentialIntegrity.Merging.TableMergedReferencesInspector.<>c__DisplayClass3_0.<.ctor>b__0(Task _)
   at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
   --- End of inner exception stack trace ---
   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at PX.Data.ReferentialIntegrity.Merging.TableMergedReferencesInspector.<>c.<.ctor>b__3_1(Task`1 mergeTask)
   at System.Threading.Tasks.ContinuationResultTaskFromResultTask`2.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()
---> (Inner Exception #0) System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
   at System.ThrowHelper.ThrowKeyNotFoundException()
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IEnumerable`1 mergingTypes, Func`2 getReferencesFor, Boolean childrenSubstitution)
   at PX.Data.ReferentialIntegrity.Merging.ReferenceMerger.MergeReferences(IReadOnlyDictionary`2 collectedReferences)
   at PX.Data.ReferentialIntegrity.Merging.TableMergedReferencesInspector.<>c__DisplayClass3_0.<.ctor>b__0(Task _)
   at System.Threading.Tasks.ContinuationResultTaskFromTask`1.InnerInvoke()
   at System.Threading.Tasks.Task.Execute()<---

   at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
   at PX.Data.ReferentialIntegrity.Merging.TableMergedReferencesInspector.GetIncomingReferencesApplicableTo(Type bqlTable)
   at PX.Data.ReferentialIntegrity.Attributes.Handlers.ParentDeletingHandler.GetReferencesToHandle(Type tableToHandle, IEnumerable`1 alreadyHandledDescendants)
   at PX.Data.ReferentialIntegrity.Attributes.Handlers.ParentDeletingHandler.HandleImpl()
   at PX.Data.ReferentialIntegrity.Attributes.PXReferentialIntegrityCheckAttribute.HandleChildrenRows(PXCache cache, Object parentRow, Boolean persisting)
   at PX.Data.PXCache.AttributeHandlersSquasher`1.<>c__DisplayClass2_0`1.<To>b__0(PXCache cache, TArgs args)
   at PX.Data.PXCache.OnRowDeleting(Object item, Boolean externalCall)
   at PX.Data.PXCache`1.Delete(Object data, Boolean bypassinterceptor)
   at PX.Data.PXCache`1.Delete(Object data, Boolean bypassinterceptor)
   at PX.Data.PXDelete`1.<Handler>d__3.MoveNext()
   at PX.Data.PXAction`1.<Press>d__38.MoveNext()
   at PX.Data.PXAction`1.<Press>d__38.MoveNext()
   at PX.Web.UI.PXBaseDataSource.tryExecutePendingCommand(String viewName, String[] sortcolumns, Boolean[] descendings, Object[] searches, Object[] parameters, PXFilterRow[] filters, DataSourceSelectArguments arguments, Boolean& closeWindowRequired, Int32& adapterStartRow, Int32& adapterTotalRows)
   at PX.Web.UI.PXBaseDataSource.ExecuteSelect(String viewName, DataSourceSelectArguments arguments, PXDSSelectArguments pxarguments)

Best answer by iqraharrison

@awomack in my past experience, i’ve noticed that when changes are made in a status that the document is not “on hold” then system tends to get stuck. 

are you able to revert back to the original document?

View original

7 replies

Naveen Boga
Captain II
Forum|alt.badge.img+20

Hi Evan, Do you have any customizations on this screen?

Translate

Forum|alt.badge.img
  • Author
  • Jr Varsity III
  • June 24, 2024

@Naveen Boga 

Thank you for the follow up.  We don’t have any customizations on the screen. 

Evan

Translate

Chris Hackett
Community Manager
Forum|alt.badge.img
  • Acumatica Community Manager
  • July 30, 2024

Hi @grillevan were you able to find a solution? Thank you!

Translate

LeanneM
Semi-Pro III
Forum|alt.badge.img+4
  • Semi-Pro III
  • July 31, 2024

Maybe try add a line again, press save, and then delete, you never know it might work

Translate

iqraharrison
Captain II
Forum|alt.badge.img+9

@grillevan are you getting an errors when saving the invoice or only when trying to delete the invoice?

also, where the lines removed when the invoice was in a different status other than “on hold” 

Translate

  • Jr Varsity II
  • November 11, 2024

Was there any resolution for this? I am encountering the same issue.

Translate

iqraharrison
Captain II
Forum|alt.badge.img+9

@awomack in my past experience, i’ve noticed that when changes are made in a status that the document is not “on hold” then system tends to get stuck. 

are you able to revert back to the original document?

Translate