web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting error in Customer Account deposit while collecting money through card

(0) ShareShare
ReportReport
Posted on by

Hi all,

I am getting  unidentified  error while doing customer account deposit on clicking card in Ax 2012 R3.

am i missing some setup for card in retail.

please help me to rectify this problem.if it is a bug please let me know hotfix available?

Thanks

*This post is locked for comments

I have the same question (0)
  • Community Member Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hello Oksana,

    I have already developed the solution. Thanks alot.

    Best regards,

    Ahmed

  • Oksana Kovaliova Profile Picture
    3,597 on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hi Ahmed,

    You need to ask your developer to debug code in Infocode project (shown in comment above), understand what is wrong there and fix the issue.

    Regards,

    Oksana

  • Community Member Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hello Oksana and Nitish

    Would you please explain how can we customize this to avoid this error.

    Thank you very much

  • Suggested answer
    nitish.dikshit Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Thanks oksana for your reply.

    . I will do customization in info code project  . i think , it will solve my problem.

  • Verified answer
    Oksana Kovaliova Profile Picture
    3,597 on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hi Nitish,

    Sure, the best way is to ask Microsoft for hotfix.
    If this is not possible, you can customize Infocode project from Retail SDK to consider transactions of type CustomerPaymentTransaction (this is transaction type for 'Customer account deposit' operation).

    2016_2D00_06_2D00_06_5F00_23_2D00_37_2D00_26.png

    Regards,
    Oksana

  • nitish.dikshit Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    hi oksana,

    thanks for  your reply. you are right,i tested with removing info code from card, it is not giving

    null reference error of retail transaction.

    but problem is we want to capture some info while collecting through card like debit or credit card

    etc..

    I don't know how to meet this requirement..

    please suggest  something

  • Verified answer
    Oksana Kovaliova Profile Picture
    3,597 on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hi Nitish,

    I met your issue before in R2 version and was able to reproduce it in R3 CU10.

    The reason is: ‘Customer deposit’ transaction is considered as ‘Customer payment’ transaction BUT it is not ‘Retail Transaction’. When info code processing is running, it uses ‘Retail Transaction’ object that doesn’t exist (null) in our case => you receive null reference exception.

    Do you have any infocodes configured for card payment? (on Store > Payment methods > Infocode)
    If yes, try to remove them and test again - the issue should disappear.

    2016_2D00_05_2D00_31_5F00_23_2D00_36_2D00_07.png

    Regards,
    Oksana

  • Martin Dráb Profile Picture
    236,258 Most Valuable Professional on at
    RE: Getting error in Customer Account deposit while collecting money through card

    In general, users shouldn't ever see null reference exceptions. It's always a case that developers forgot to handle. From this perspective, it's a bug.

    Nevertheless it doesn't tell much about the root cause. Unfortunately I can't say why retail transaction is null; I would have to debug the code.

    You can use LCS Issue Search to look for existing hotfixes. Also consider upgrading to the latest cumulative update; R3 was released two years ago and many things have been updated since then.

  • nitish.dikshit Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hi oksana,

    This is a error from event viewer:

    LSRetailPosis.POSProcesses.PayCard: System.NullReferenceException: Object reference not set to an instance of an object.

     at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, ISaleLineItem saleLineItem, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, InfoCodeType infoCodeType, IInfoCodeSystem infoCodeSystem, IInfoCodeLineItem[] infoCodes)

     at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, ISaleLineItem saleLineItem, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, IInfoCodeLineItem orgInfoCode, InfoCodeType infoCodeType)

     at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, IInfoCodeLineItem orgInfoCode, InfoCodeType infoCodeType)

     at LSRetailPosis.POSProcesses.TenderOperation.ProcessInfoCode(String storeId, TenderLineItem tenderLineItem)

     at LSRetailPosis.POSProcesses.PayCard.ProcessEFTRequest()

     at LSRetailPosis.POSProcesses.PayCard.PayCardOperation(ICardInfo card)

     at LSRetailPosis.POSProcesses.PayCard.ExecutePayCard(Decimal amountToPay)

     at LSRetailPosis.POSProcesses.PayCard.Execute().

     

     

  • nitish.dikshit Profile Picture
    on at
    RE: Getting error in Customer Account deposit while collecting money through card

    Hi martin,

    I have added customer in transaction and then clicking on customer account deposit

    button and collected amount, lets say 2000.I am collecting  this amount from credit card.

    In our case,  card is set up as manual and we have defined multiple card in card setup  for  card payment method  in store and also attached some info code to cards.

    After click card tender ,system is asking for card number and card name  but after clicking info code which is coming right after selecting card name. it is giving unidentified  error, i checked in event viewer and log is as follows:

    LSRetailPosis.POSProcesses.PayCard: System.NullReferenceException: Object reference not set to an instance of an object.

      at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, ISaleLineItem saleLineItem, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, InfoCodeType infoCodeType, IInfoCodeSystem infoCodeSystem, IInfoCodeLineItem[] infoCodes)

      at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, ISaleLineItem saleLineItem, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, IInfoCodeLineItem orgInfoCode, InfoCodeType infoCodeType)

      at Microsoft.Dynamics.Retail.Pos.Services.InfoCodes.InfoCodes.ProcessInfoCode(IPosTransaction posTransaction, Decimal quantity, Decimal amount, String refRelation, String refRelation2, String refRelation3, InfoCodeTableRefType tableRefId, String linkedInfoCodeId, IInfoCodeLineItem orgInfoCode, InfoCodeType infoCodeType)

      at LSRetailPosis.POSProcesses.TenderOperation.ProcessInfoCode(String storeId, TenderLineItem tenderLineItem)

      at LSRetailPosis.POSProcesses.PayCard.ProcessEFTRequest()

      at LSRetailPosis.POSProcesses.PayCard.PayCardOperation(ICardInfo card)

      at LSRetailPosis.POSProcesses.PayCard.ExecutePayCard(Decimal amountToPay)

      at LSRetailPosis.POSProcesses.PayCard.Execute().

    I have debugged a code in info code project in retail SDK and found out that retail transaction is coming null.

    I am wondering how retail transaction is coming null. am i missing setup in AX 2012 R3 for card  or it is a bug?

    In case of cash tender type every thing is woking fine in case of customer account deposit.

    please  help!!!

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Community Member Profile Picture

Community Member 2

#1
Guy Terry Profile Picture

Guy Terry 2 Moderator

#1
Martin Dráb Profile Picture

Martin Dráb 2 Most Valuable Professional

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans