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

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics RMS (Archived)

Item Lookup Code must be unique issue

(0) ShareShare
ReportReport
Posted on by

I'm getting an Item Lookup Code  must be unique error when I try to enter a new item.

I cannot find a UPC that matches the one I'm entering so this number must be buried in an alias in one of my items.

What would be the SQL code to id the offending item?

 

Thanks,

Richard

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    TimB Profile Picture
    1,175 on at

    The best way to find it is to find from the item window. Make sure ItemLookupCode and Alias are checked in the left box.

    If no item is found that means there's an entry in the alias from which the item is deleted. This could have happened if someone without much knowledge of RMS had done changes in sql.

    To find invalid alias entries you can use this query. select a.* from alias a left join item i on a.itemid = i.id where isnull(i.id,0) = 0

    When you're sure to delete those false entries you can use this delete query. delete a from alias a left join item i on a.itemid = i.id where isnull(i.id,0) = 0

    Hope this helps. TimB

  • Community Member Profile Picture
    on at

    I found the item using RMS Synergy. It had been set as an inactive item and the offending upc was it's alias. I had tried the find before. Looks like find does not inspect inactive items.

    Thanks for the SQL commands. I'll take a look a look at the rest of my items using your code.

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics RMS (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans