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
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.
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
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
Hi Matt,
This is the detailed exception while calling TC.GetPrice(storeID, productNode_ID)
Tea commerce version i'm using is 3.4.0
-Arun
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
Yes..
I have selected Store and given Currency Id in Product node
-Arun
Hmmm, have you tried recycling your app pool? If there is a corrupt, null, currency in the cache, this could be why.
Matt
is working on a reply...