We are using a self hosted instance of AccountRight SE.
Since upgrading to version 2025.7 from 2025.6 the API interface is throwing a 500 Internal Server Error on invoice creation, which sounds like the same issue Martic has reported.
End point: POST /AccountRight/[retracted]/Sale/Invoice/Service/
API Error Log:
C:\Program Files (x86)\MYOB\AccountRightServerEdition\app-2025.700.10005\API\logs\logfile.txt
Unexpected Exception of type 'System.ArgumentNullException' was thrown with the following details:
Details : System.ArgumentNullException: Value cannot be null.
Parameter name: authority
at Myob.IdentityModel.Clients.LiveDirectory.AuthorizationServer..ctor(String authority)
at Myob.IdentityModel.Clients.LiveDirectory.AuthenticationContext..ctor(String authority)
at MYOB.ARLive.BusinessLayer.Implementation.Services.OnlinePayments.MerchantConfigService..ctor(IExecutionContext executionContext)
at MYOB.ARLive.Services.MerchantConfigContainerService.InitializeNewBusinessOperationTree(IExecutionContext executionContext, IMerchantConfigContainer container)
at MYOB.ARLive.Services.ContainerService`2.ProcessContainer(TContainer container, IExecutionContext executionContext, Boolean ignoreWarnings)
at MYOB.ARLive.ServiceBridge.ServiceBridge.InvokeGetOnlinePaymentSettings(ICompanyFile companyFile)
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at MYOB.Huxley.Services.ARLiveBridge.RunNewStack.Execute[T](String methodName, Object[] parameters)
at MYOB.Huxley.ApplicationServices.Container.OnlinePaymentSettingsContainerService.GetOnlinePaymentSettingsContainer()
at MYOB.AccountRight.API.Adapter.Version2.InvoiceRepositoryCommandHelperBase`2.GetOnlinePaymentSettings(ApiCompanyFile apiCompanyFile, TInvoice apiEntity, ISaleEvent huxleyAggregate)
at MYOB.AccountRight.API.Adapter.Version2.InvoiceRepositoryCommandHelperBase`2.MapApiEntityToHuxleyAggregate(ApiCompanyFile apiCompanyFile, TInvoice apiEntity, ISaleEvent saleEvent, Object[] args)
at MYOB.AccountRight.API.Adapter.Version2.InvoiceServiceRepositoryCommandHelper.MapApiEntityToHuxleyAggregate(ApiCompanyFile apiCompanyFile, InvoiceService apiEntity, ISaleEvent huxleyAggregate, Object[] args)
at MYOB.AccountRight.API.Adapter.Version2.InvoiceRepositoryCommandHelperBase`2.<>c__DisplayClass15_0.<ProcessContainer>b__1()
at MYOB.AccountRight.API.Adapter.Common.CommandHelperBase4`4.ProfileOperation[TX](Func`1 profile, String message)
at MYOB.AccountRight.API.Adapter.Version2.InvoiceRepositoryCommandHelperBase`2.ProcessContainer(ApiCompanyFile apiCompanyFile, TInvoice apiEntity, OperationContext context, ISaleEvent existingAggregate)
at MYOB.AccountRight.API.Adapter.Version2.InvoiceRepositoryCommandHelperBase`2.InsertInternal(ApiCompanyFile apiCompanyFile, TInvoice apiEntity, OperationContext context, Func`2 newItemFactory, Object[] args)
at MYOB.AccountRight.API.Adapter.Common.CommandHelperBase4`4.<>c__DisplayClass17_1.<Insert>b__1()
at MYOB.AccountRight.API.Adapter.Common.HuxleyCallHelper.Call[TApiEntity,T](Func`1 func, Func`3 validationResultTranslator, TApiEntity passedObject, IApiRequestLogWriter requestLogWriter)
at MYOB.AccountRight.API.Adapter.Common.CommandHelperBase4`4.DoHuxleyCall(Func`1 func, TApiEntity apiEntity)
at MYOB.AccountRight.API.Adapter.Common.CommandHelperBase4`4.<>c__DisplayClass17_0.<Insert>b__0(ApiCompanyFile accountRightCompanyFile)
at MYOB.AccountRight.API.Adapter.Common.ApiCompanyFileExtensions.ExecuteOperation[TResult](IApiCompanyFile companyFile, Func`2 operation)
at MYOB.AccountRight.API.Adapter.Common.CommandHelperBase4`4.Insert(IApiCompanyFile companyFile, TApiEntity apiEntity, OperationContext context, Func`2 newItemFactory, Object[] args)
at MYOB.AccountRight.API.Adapter.Common.RepositoryEx4`3.Insert(IApiCompanyFile companyFile, TApiEntity apiEntity, Boolean returnEntity)
at MYOB.AccountRight.API.Adapter.Common.RepositoryEx4`3.SaveByUid(IApiCompanyFile context, TApiEntity instance, Boolean returnEntity)
at MYOB.AccountRight.API.Core.Controllers.Version2.MutableControllerProxy`1.<>c__DisplayClass12_0.<SaveOrUpdate>b__0()
at MYOB.AccountRight.API.Core.Extensions.ProxyExtensions.HandleUnexpectedException[T](Func`1 makeCall)
Base Details : MYOB.AccountRight.API.Core.Base.AccountRightApiUnexpectedExceptionException: An exception was thrown that was not handled correctly. If this situation persists please contact developers@myob.com for further assistance.