Critical error when opening "Reports"



  • Hi everyone,

    I've just updated H2N version 3.2.0.19. I don't know if it's related to this but now when I go on Reports H2N stop and show this pop up saying "critical error" 0_1494614834496_upload-30bfa08a-54bf-4ad0-bc7b-8f7b91f6fdd3

    saying : "System.InvalidOperationException: Can't convert currency Undefined to amount units. Probably rebuild stats required.
    in Hand2NoteCore.Common.CurrencyExtensions.ToAmountUnits(Currencies currency)
    in Hand2NoteCore.DataView.WinningsData..ctor(ReportHandData data)
    in Hand2NoteCore.DataView.WinningsReportViewModel.GetRows(PlayerReportData playerReportData, CancellationToken cancellationToken, ReportDateRange dateRange, IReportGroupPolicy reportGroupPolicy, WinningsData& summary)
    in Hand2NoteCore.DataView.WinningsReportViewModel.<>c__DisplayClass48_0.<Update>b__0()
    in System.Threading.Tasks.Task`1.InnerInvoke()
    in System.Threading.Tasks.Task.Execute()
    --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
    in System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    in System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    in Hand2NoteCore.DataView.WinningsReportViewModel.<Update>d__48.MoveNext()
    --- Fine traccia dello stack da posizione precedente dove è stata generata l'eccezione ---
    in System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.<ThrowAsync>b__6_0(Object state)
    in System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
    in System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)".

    How can I solve this problem? "Session" works good but when I go on Reports H2N shut down


  • Global Moderator

    Please, try to rebuild your stats:

    alt text



  • Solved! Thanks



  • just last thing... now I have Play money's stats and I don't want them... Do u know how I can delete all play money stats? and just keeping only real money stats?


  • Global Moderator

    You can't remove hands from your database. Violation of data integrity greatly reduces database performance. Perhaps, we will be able to realize such opportunities in the future. But you can easily create a new database with only the necessary hands:
    image:
    alt text



  • It would be great because I played "play money" to set Stars Helper and testing other stuff but now I have stats of that and it'll be great if we could click right botton and delete from the menu or just having a menu where to choose levels showed like this: (just a tip)(screenshot from FPDB... it's an open source maybe you can take advantages from this free software... btw it's already a very good work and every update it's fantastic.. well done) 0_1494883529301_upload-e9f41057-a240-4c24-b72a-4ce9d9d10c5a


Log in to reply
 

Looks like your connection to Hand2Note was lost, please wait while we try to reconnect.