Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / Facing an issue with C...
Finance forum
Unanswered

Facing an issue with CallCenterSalesOrderCustomerPayments

Posted on by 5
HI,
 
While trying to use Data entity MCRSalesOrderCustomerPaymentEntity which uses Odata named /CallCenterSalesOrderCustomerPayments/ but I am getting error as below:
 
{
    /error/: {
        /code///,
        /message//An error has occurred./,
        /innererror/: {
            /message//Function MCRCustPaymTable::getMCRTypeFromTender has been incorrectly called./,
            /type//Microsoft.Dynamics.Ax.Xpp.ErrorException/,
            /stacktrace//   at Dynamics.AX.Application.MCRCustPaymTable.`getMCRTypeFromTender(String _tenderTypeId, Int64 _channel, String _cardType, Boolean @_cardType_IsDefaultSet)//r/   at Dynamics.AX.Application.MCRCustPaymTable.getMCRTypeFromTender(String _tenderTypeId, Int64 _channel, String _cardType, Boolean @_cardType_IsDefaultSet)//r/   at Dynamics.AX.Application.MCRCustPaymTable.getMCRTypeFromTender(String _tenderTypeId, Int64 _channel, String _cardType)//r/   at Dynamics.AX.Application.MCRSalesOrderCustPaymentEntityAX_Extension.`MCRSalesOrderCustomerPaymentEntity_onDefaultingRow(Common _sender, DataEventArgs _eventArgs) in xppSource://Source/AX////AxClass_MCRSalesOrderCustPaymentEntityAX_Extension.xpp:line 14//r/   at Dynamics.AX.Application.MCRSalesOrderCustPaymentEntityAX_Extension.MCRSalesOrderCustomerPaymentEntity_onDefaultingRow(Common _sender, DataEventArgs _eventArgs)//r/   at Microsoft.Dynamics.Ax.Xpp.Common.InvokeEventType(Byte eventId, Common sender, DataEventArgs eventArgs) in D:////dbs////sh////l23t////0330_211406////cmd////a////Source////Kernel////xppil////XppSupport////Common.cs:line 1272//r/   at Microsoft.Dynamics.Ax.Xpp.Common.__Defaultrow_IntImpl__() in D:////dbs////sh////l23t////0330_211406////cmd////a////Source////Kernel////xppil////XppSupport////XppCommon.cs:line 325//r/   at Microsoft.Dynamics.Ax.Xpp.Common.Defaultrow() in D:////dbs////sh////l23t////0330_211406////cmd////a////Source////Kernel////xppil////XppSupport////XppCommon.cs:line 319//r/   at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateProcessor.CreateEntity_Save(ChangeOperationContext context, ChangeInfo changeInfo)//r/   at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.ExecuteActionsInCompanyContext(IEnumerable`1 actionList, ChangeOperationContext operationContext)//r/   at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.ChangeInfo.TrySave(ChangeOperationContext operationContext)//r/   at Microsoft.Dynamics.Platform.Integration.Services.OData.Update.UpdateManager.SaveChanges()//r/   at Microsoft.Dynamics.Platform.Integration.Services.OData.AxODataDelegatingHandler.<SaveChangesAsync>d__2.MoveNext()/
        }
    }
}

Please let me know if anyone has any idea or any suggestions to resolve this error
  • S Gopi Krishna Profile Picture
    S Gopi Krishna 253 on at
    Facing an issue with CallCenterSalesOrderCustomerPayments
    Looks like the payment method is not associated with the channel you are using in your request. Try checking the payment methods for the specific channels in F&O.
  • PB-22051256-0 Profile Picture
    PB-22051256-0 5 on at
    Facing an issue with CallCenterSalesOrderCustomerPayments
    Currently, I am sending the RetailStoreTenderTypeID(_tenderTypeId) and RetailChannelID (_channel) which are mandatory fields, the corresponding values which I am sending through postman are present in the table RetailChannelTable and RetailtenderTypeTable respectively. Then it takes the value from both the above tables are try to find in the next table which is retailStoreTenderTypeTable, I can see the column for Tender Type in that retailStoreTenderTypeTable but cannot see the Channel column while browsing through d365fo table browser extension from chrome but it is visible in AXdb in Dev machine, Can you please suggest further if you have any further knowledge on the same, if any limitations you are aware of or any suggestions .
  • Martin Dráb Profile Picture
    Martin Dráb 224,750 Super User on at
    Facing an issue with CallCenterSalesOrderCustomerPayments
    MCRCustPaymTable.getMCRTypeFromTender() throws this error if it's called without tender type ID or channel. It seems that  MCRSalesOrderCustPaymentEntityAX_Extension class doesn't call it with the right data; I assume it's a customization. Debugging the code will tell you more.
     
    (Moved from Dynamics AX forum.)

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,750 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans