Partner Zone

e-mail MAPI error when sending e-mails since update 2021.7

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.
Audible
Experienced User
31 Posts
Experienced User
Experienced User

31Posts

5Kudos

1Solutions

e-mail MAPI error when sending e-mails since update 2021.7

Since applying the latest update, one of our workstations will not send e-mails via outlook and generates the "something has gone wrong" error pop up. the work station has sent several of theses to MYOB after each change and test to fix the problem.

 

The generated e-mail error message to send to MYOB is; 

 

--------------------------------------------------------------------------------------------

AccountRight Application Error Report

=====================================

Application Version: 2021.7.24.5180

Application File Version: 2021.7.24.5184 Incident Id:

c19d521c-6e24-4612-9de3-66693b746d33

Time: Tuesday, 30 November 2021 9:37:03 AM

 

Code:

System.ArgumentException

 

 

Message:

Sorry, something went wrong. You may want to try again.

 

 

Stack Trace

----------------------------------------

1 : System.ArgumentException

----------------------------------------

System.ArgumentException: Sorry, something went wrong. You may want to try

again.

   at

Huxley.MsOffice.Integration!0x06000292!Microsoft.Office.Interop.Outlook._M

ailItem.Send()

   at

Huxley.MsOffice.Integration!0x06000078!MYOB.Huxley.MsOffice.Integration.Ou

tlookEmail.OutlookEmailProvider.SendMessage(String emailAddresses, String

subject, String body, EmailResourceType resourceType, String documentNumber,

IEnumerable`1 attachments) +0x1bf

   at

Huxley.UI.Controllers!0x06002555!MYOB.Huxley.UI.Controllers.Helpers.EmailH

elper.SendEmail(String to, String subject, String body, String pdfFileName,

EmailResourceType resourceType, FormTemplateDefinition

formTemplateDefinition, FormPrintingParams formPrintingParams,

IEnumerable`1 attachements, Nullable`1 entityUid, LayoutType layoutType,

String documentNumber) +0xd0

   at

Huxley.UI.Controllers!0x06001e53!MYOB.Huxley.UI.Controllers.SalesAndPurcha

ses.SendEmailController.SendEmail(String emailAddress, String subject,

String message, IEnumerable`1 attachments) +0x6c

   at

Huxley.UI.Controllers!0x06001e52!MYOB.Huxley.UI.Controllers.SalesAndPurcha

ses.SendEmailController.SendEmail(String emailAddresses, String subject,

String message) +0xb

   at

Huxley.UI.Forms!0x06001eb4!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmai

l.<OnOkClicked>b__22_0() +0x0

   at

Huxley.UI.Forms!0x06002711!MYOB.Huxley.UI.Forms.BaseForms.BaseViewContaine

r.PerformAction(Action methodToPerform) +0x16

   at

Huxley.UI.Forms!0x06001e94!MYOB.Huxley.UI.Forms.SalesAndPurchases.SendEmai

l.OnOkClicked(ButtonClickedArgs args) +0x48

   at

Huxley.UI.Forms!0x060023f6!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.Cal

lButtonClicked(Action`1 execute, ButtonClickedArgs args, String

buttonText) +0x12

   at

Huxley.UI.Forms!0x06002370!MYOB.Huxley.UI.Forms.BaseForms.BaseViewForm.btn

Ok_Click(Object sender, EventArgs e) +0x30

   at

System.Windows.Forms!0x06000e18!System.Windows.Forms.Control.OnClick(Event

Args e) +0x19

   at

DevExpress.XtraEditors.v17.1!0x06000d4f!DevExpress.XtraEditors.BaseButton.

OnClick(EventArgs e) +0x2e

   at

DevExpress.XtraEditors.v17.1!0x06000d48!DevExpress.XtraEditors.BaseButton.

OnMouseUp(MouseEventArgs e) +0x1d

   at

System.Windows.Forms!0x06000eff!System.Windows.Forms.Control.WmMouseUp(Mes

sage& m, MouseButtons button, Int32 clicks) +0x184

   at

System.Windows.Forms!0x06000f0f!System.Windows.Forms.Control.WndProc(Messa

ge& m) +0x62c

   at

DevExpress.Utils.v17.1!0x06002708!DevExpress.Utils.Controls.ControlBase.Wn

dProc(Message& m) +0x2e

   at

DevExpress.XtraEditors.v17.1!0x06000256!DevExpress.XtraEditors.BaseControl

.WndProc(Message& msg) +0x0

   at

System.Windows.Forms!0x06005720!System.Windows.Forms.Control.ControlNative

Window.OnMessage(Message& m) +0x0

   at

System.Windows.Forms!0x06005723!System.Windows.Forms.Control.ControlNative

Window.WndProc(Message& m) +0x8e

   at

System.Windows.Forms!0x06002ded!System.Windows.Forms.NativeWindow.Callback

(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) +0x25 ==========

MODULE: DevExpress.Utils.v17.1 => DevExpress.Utils.v17.1, Version=17.1.7.0,

Culture=neutral, PublicKeyToken=b88d1754d700e49a;

G:b8c34c059b804930811d5f6d50999b6c; A:1

MODULE: DevExpress.XtraEditors.v17.1 => DevExpress.XtraEditors.v17.1,

Version=17.1.7.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a;

G:6df94e55f5bd4444b910d4b2a37076a4; A:1

MODULE: Huxley.MsOffice.Integration => Huxley.MsOffice.Integration,

Version=2021.7.24.5180, Culture=neutral, PublicKeyToken=947f70fecdd4159f;

G:3ab9d7956e534909bdde36ff985c5f03; A:1

MODULE: Huxley.UI.Controllers => Huxley.UI.Controllers,

Version=2021.7.24.5180, Culture=neutral, PublicKeyToken=947f70fecdd4159f;

G:23470bf464064a7a8fb00fa049b1bbf5; A:1

MODULE: Huxley.UI.Forms => Huxley.UI.Forms, Version=2021.7.24.5180,

Culture=neutral, PublicKeyToken=947f70fecdd4159f;

G:de1928e734314460a5ab7b2fe0b5d51e; A:1

MODULE: System.Windows.Forms => System.Windows.Forms, Version=4.0.0.0,

Culture=neutral, PublicKeyToken=b77a5c561934e089;

G:098daa586c564b1ab756109f800f14ff; A:1

 

----------------------------------------

I have done the following to try to fix the problem;

 

- Uninstall and re install Account right.

- Uninstall and re install Office 365.

- Change default e-mail address, Work station has three e-mails allocated in Outlook.

- Change default e-mail address from exchange to imap and POP

- Change outlook profile.

- Changed account right preferences/e-mail to send e-mails via account right, but it will be several hours/days to confirm if this has worked before MYOB's server actually send the e-mail/if at all. (sent test invoice to co workers e-mail). But this method did not generate the account right "something has gone wrong" error pop up. 

 

We obviously have to send e-mails from MYOB via outlook instead of using account right/MOYB servers as we have gone thru the account right servers not sending all e-mails problem already. 

 

We have several workstations that send e-mails from MYOB ok, all Win 10 Pro, Microsoft office 365, same version of account right but for some reason, one work station has the above problem. Three other work stations have multiple e-mail addresses in outlook. 

 

Anybody know how to fix this? I tried to contact MYOB support but 

 

2 REPLIES 2
Komal_S
MYOB Moderator
6,940 Posts
MYOB Moderator
MYOB Moderator

6,940Posts

627Kudos

991Solutions

Re: e-mail MAPI error when sending e-mails since update 2021.7

Hi @Audible 

 

The error log mentions "Microsoft.Office.Interop.Outlook" and this error is generally caused when a program such as AccountRight asks which version of Outlook is installed, the wrong version is being reported back, causing a communication problem and errors between the programs.

This can happen when different versions of Office/Outlook may have been previously installed on the computer, and components/values are left behind.  There are a range of interop errors, these most often are fixed by one of the following:

 
1. Quick Repair office. (any missing files should be added back), if this does not work, move to step 2
2. Re-Register Outlook DLL files and Check/Fix Registry Keys (there are 3 to complete)

Warning: Step 2 would require an IT Professional,  as this is an environmental issue, with windows having missing or incorrect information. This article has instructions on how to complete these steps: 

https://webmakers.co.nz/interface-not-registered-exception-from-hresult-0x80040155-microsoft-office-...

Kind regards,
Komal

MYOB Community Support

Online Help| Forum Search| my.MYOB| Download Page

Did my answer help?

Mark it as a SolutionHelpful? Leave a to tell others

Audible
Experienced User
31 Posts
Experienced User
Experienced User

31Posts

5Kudos

1Solutions

Re: e-mail MAPI error when sending e-mails since update 2021.7

I tried the repair MS office option, didn't fix the problem. The problem began immediately after the 2021.7 Account right update, the first e-mail we tried to send the same day without rebooting. 

For the time being, I am using Account right to send e-mails option in MYOB but the problem with that is that the option is system wide, I can't just set one work station to send e-mails via Account right and the rest via Outlook so we now have the problem of e-mail delays and not being received.

 

Messing around with regedit is possible, I've done it before a few times, but I think a better option is to format C: and reinstall Win 10 and apps clean. 

Odds are if there is a problem in Windows/Office/Account right, there could be other issues hiding within to throw a spanner in the works next time, so a fresh install can avoid future problems as well. 

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