Developer forum

Forum » CMS - Standard features » API GetProductByID throw NullReferenceException

API GetProductByID throw NullReferenceException

António Ramos
António Ramos
Reply

Hi guys,

We had a strange situation where it happens in some products throwing a NullReferenceException.

After debugging we found that method GetProductByID with ProductID containing hifen (i.e. 1C-US) throw that NullReferenceException. 

There is any limitation (convention) for productID?

DW Version: 8.9.1.13

BR,

António Ramos

 


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

It should not - it removes these characters:

;|--|xp_|3%0|<|>|\n|\r

So if you have double hifens - that is a SQL command not allowed.

Votes for this answer: 1

 

You must be logged in to post in the forum