Unable to delete employee pay run

This thread is now closed to new comments.
Some of the links and information provided in this thread may no longer be available or relevant.
If you have a question please start a new post.
Astags
Experienced Cover User
12 Posts
Experienced Cover User
Australia
Experienced Cover User

12Posts

1Kudos

0Solutions

Solved: Go to Solution

Unable to delete employee pay run

Hi all,

 

I am trying to delete a pay for an employee.  The errors are below.  I have since paid the employee however this old transaction needs to go.  I am on version 2020.3 and have cleared the cache.

 

Error 1:

Message:
Value cannot be null.
Parameter name: format


Stack Trace
----------------------------------------
1 : System.ArgumentNullException
----------------------------------------
System.ArgumentNullException: Value cannot be null.
Parameter name: format
at mscorlib!0x0600570f!System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg) +0x27
at mscorlib!0x0600571a!System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type) +0x1b3
at Huxley.Service.Gateway!0x06001880!MYOB.Huxley.Service.Gateway.API.IGatewayService.Dispatch(String name, Object[] arguments)
at Huxley.Service.Proxy!0x06000dc4!MYOB.Huxley.Service.Proxy.Services.ProxyPayEmployeeContainerService.GetStpPayRunStatus(Int32 employeePaymentEventId, String authToken) +0x0
at Huxley.UI.Decorators!0x06002b9b!MYOB.Huxley.UI.Decorators.Services.DecoratorServiceMYOBHuxleyApplicationServicesContainerAPIIPayEmployeeContainerService.MYOB.Huxley.ApplicationServices.Container.API.IPayEmployeeContainerService.GetStpPayRunStatus(Int32 employeePaymentEventId, String authToken) +0x52
at Huxley.UI.Model!0x06003743!MYOB.Huxley.UI.Model.Context.PayEmployeeContext.GetStpPayRunStatus(Int32 id, String authToken) +0x0
at Huxley.UI.Controllers!0x0600206f!MYOB.Huxley.UI.Controllers.Payroll.ProcessPayroll.PayEmployeeController.GetStpPayRunStatus(String authToken, Boolean checkExisting) +0x42
at Huxley.UI.Forms!0x060026cf!MYOB.Huxley.UI.Forms.Payroll.ProcessPayroll.PayEmployeeHelper.ValidateStpStatusForDelete() +0x4e
at Huxley.UI.Forms!0x06002712!MYOB.Huxley.UI.Forms.Payroll.ProcessPayroll.PayEmployee.DeleteOrReverseTransaction() +0xcb
at Huxley.UI.Forms!0x0600270e!MYOB.Huxley.UI.Forms.Payroll.ProcessPayroll.PayEmployee.mnuReverseTransaction_Click(Object sender, EventArgs e) +0x0
at System.Windows.Forms!0x06003e87!System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e) +0x0
at System.Windows.Forms!0x06003fc6!System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e) +0x17
at Huxley.UI.Controls!0x06000194!MYOB.Huxley.UI.Controls.Standard.StaToolStripItem.OnClick(EventArgs e) +0x128
at System.Windows.Forms!0x06003e46!System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e) +0x3b
at System.Windows.Forms!0x06003e4f!System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e) +0xc6
at System.Windows.Forms!0x06003e38!System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met) +0x46
at System.Windows.Forms!0x06003e37!System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met) +0xc9
at System.Windows.Forms!0x06003a6f!System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea) +0x6f
at System.Windows.Forms!0x06003c76!System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea) +0x0
at System.Windows.Forms!0x06000e58!System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks) +0x184
at System.Windows.Forms!0x06000e68!System.Windows.Forms.Control.WndProc(Message& m) +0x66f
at System.Windows.Forms!0x0600334e!System.Windows.Forms.ScrollableControl.WndProc(Message& m) +0x34
at System.Windows.Forms!0x06003aa2!System.Windows.Forms.ToolStrip.WndProc(Message& m) +0xe7
at System.Windows.Forms!0x06003c95!System.Windows.Forms.ToolStripDropDown.WndProc(Message& m) +0x71
at System.Windows.Forms!0x06005505!System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m) +0x0
at System.Windows.Forms!0x06005508!System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m) +0x8e
at System.Windows.Forms!0x06002cda!System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25
==========
MODULE: Huxley.Service.Gateway => Huxley.Service.Gateway, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:631f545a5f9342f0be5b90010c83e66c; A:1
MODULE: Huxley.Service.Proxy => Huxley.Service.Proxy, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:a56616cc9ed9417b89a3e394e7288ea1; A:1
MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:a12bb4d0c12749d4a196b35fe381c60e; A:1
MODULE: Huxley.UI.Controls => Huxley.UI.Controls, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:1e19c8270db04353a781cca2151752a4; A:1
MODULE: Huxley.UI.Decorators => Huxley.UI.Decorators, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:6d4cb3c0f0e04c2484ecdb5349ab87c3; A:1
MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:34d9283e052b4a10b733cdb7e1e2198e; A:1
MODULE: Huxley.UI.Model => Huxley.UI.Model, Version=2020.3.24.318, Culture=neutral, PublicKeyToken=947f70fecdd4159f; G:7f8e9bdf0aff4b4b833943760cd39ebc; A:1
MODULE: mscorlib => mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:4d345ddba4bf47c1a35326da49e8267a; A:2
MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089; G:866ba383e67541c196d4b7dac5266de9; A:1

 

Error 2: 

 

MAPISendMail failed! General MAPI failure [2]

 

Please advise.


Regards
Allison

 

 

 

2 REPLIES 2
Emily_B
1,327 Posts
Former Staff
Former Staff

1,327Posts

0Kudos

170Solutions

Accepted Solution Solved

Re: Unable to delete employee pay run

Hello @Astags 

 

Thank you for including the error log. Seeing the "Value cannot be null..." message when attempting to delete/reverse a pay in 2020.3 is something we are currently looking into. In some cases, the deletion cannot occur because the pay in question has been reported to the ATO, and so it needs to be reversed instead. Please refer to this support note to check whether the pay in question needs to be reversed instead. If that is the case, please see if you are able to follow the instructions outlined here.

 

If however you still receive that error, please let me know if you are using the server edition and if the file you are working on is online or offline, as there is a specific workaround for that situation. 

Kind regards,
Emily

MYOB Community Support

Astags
Experienced Cover User
12 Posts
Experienced Cover User
Australia
Experienced Cover User

12Posts

1Kudos

0Solutions

Re: Unable to delete employee pay run

Hi @Emily_B 

 

Thank you for the link to the article.  That is exactly why it couldn't be deleted.  I have done a reversal pay and this has been accepted in the reporting.

 

Thanks again for your help with this,


RegardS
Allison

Didn't find your answer here?

Try using advanced search to find a post more easily Advanced Search
or
Get the conversation started and make a new post Start a Post