Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Facing an issue with CallCenterSalesOrderCustomerPayments

(1) ShareShare
ReportReport
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
    468 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
    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
    233,724 Most Valuable Professional 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.)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 501 Most Valuable Professional

#2
Saalim Ansari Profile Picture

Saalim Ansari 313

#3
Abhilash Warrier Profile Picture

Abhilash Warrier 310

Overall leaderboard

Product updates

Dynamics 365 release plans