Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

referenceConverter.GetContentLink returns empty contentreference

Vote:
 
var contentLink = _referenceConverter.GetContentLink(code);
if (ContentReference.IsNullOrEmpty(contentLink))
{
    return null;
}

When I try to find a product via code the contentreference becomes empty.

This works on several other products and I can not see any difference between the products that work and those whom doesn't work.

Any ideas how to debug this further?

#194592
Jun 26, 2018 10:21
Vote:
 

Can you check if a product with that code actually exists?

#194603
Jun 26, 2018 11:34
Vote:
 

Yes it does, if only it was that easy.

#194604
Jun 26, 2018 12:28
Vote:
 

Did you make sure the code you passed matches exactly with the code in database? Did you try the other overload which takes the catalog content type?

#194606
Jun 26, 2018 13:17
Vote:
 

Exactly as in database, yes. Overload with catalog content type, yes - same result.

As written before.

This works on several other products and I can not see any difference between the products that work and those whom doesn't work.

#194607
Jun 26, 2018 13:24
Vote:
 

Then you should probably contact developer support service for further assistance :) 

#194609
Jun 26, 2018 14:35
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.