Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Arun 141 posts 394 karma points
    Nov 19, 2020 @ 06:58
    Arun
    0

    Error while calling TC.GetPrice(store_ID, product_Node_ID)

    I'm getting an error while calling
    TC.GetPrice(store_ID, product_Node_ID)
    Error i got is "Object reference not set to an instance of an object."
    What will be the reason for this error?
    The price fields have values.
    Tea commerce version i'm using is 3.4.0
    -Arun

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Nov 19, 2020 @ 08:49
    Matt Brailsford
    0

    Hi,

    Can you supply the complete stack trace please as it will give us a clue as to what it thinks I’d null.

    Many thanks

    Matt

  • Arun 141 posts 394 karma points
    Nov 19, 2020 @ 09:51
    Arun
    0

    Hi Matt,
    This is the detailed exception while calling TC.GetPrice(storeID, productNode_ID)
    Tea commerce version i'm using is 3.4.0
    enter image description here

    -Arun

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Nov 19, 2020 @ 10:59
    Matt Brailsford
    0

    Hmmm,

    I'm not actually sure what is null here, it could be you have a null country that has been returned for some reason but that shouldn't really be possible.

    The only thing I can suggest is to make sure you have the store picker setup correctly on the root node, with the alias "store" and then also make sure your order has a currencyId defined on it.

    Matt

  • Arun 141 posts 394 karma points
    Nov 19, 2020 @ 11:36
    Arun
    0

    Yes..
    I have selected Store and given Currency Id in Product node
    -Arun

  • Matt Brailsford 4125 posts 22222 karma points MVP 9x c-trib
    Nov 19, 2020 @ 11:47
    Matt Brailsford
    0

    Hmmm, have you tried recycling your app pool? If there is a corrupt, null, currency in the cache, this could be why.

    Matt

Please Sign in or register to post replies

Write your reply to:

Draft