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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Bug in Customer Addresses SmartList

(0) ShareShare
ReportReport
Posted on by 65

Hi all

I've found a bug in GP. When you have both a customer and a vendor with the same ID, both with the same address IDs and both have internet information then duplicate records are displayed in the Customer Addresses SmartList (and possibly

The reason for this is the SQL query issued from SmartList is as follows:

SELECT TWO.dbo.RM00102.CUSTNMBR AS '1', TWO.dbo.RM00102.ADRSCODE AS '2'  FROM TWO.dbo.RM00102 (nolock) LEFT OUTER JOIN TWO.dbo.RM00101 (nolock)  ON TWO.dbo.RM00102.CUSTNMBR = TWO.dbo.RM00101.CUSTNMBR  LEFT OUTER JOIN TWO.dbo.SY01200 (nolock)  ON TWO.dbo.RM00102.CUSTNMBR = TWO.dbo.SY01200.Master_ID  AND TWO.dbo.RM00102.ADRSCODE = TWO.dbo.SY01200.ADRSCODE  WHERE ((UPPER(ISNULL(TWO.dbo.RM00102.ZIP,'')) = '12345')) ORDER BY  '1'  ASC,  '2'  ASC

The LEFT OUTER JOIN to dbo.SY01200 should of course have an extra condition of dbo.SY01200.Master_Type = 'CUS'

Thanks

Matt

*This post is locked for comments

  • L Vail Profile Picture
    65,271 on at

    Hi Matt,

    I could not reproduce this behavior. I just tried it using GP2015 and the correct records where shown in each object. I created a vendor and customer, each with the same ID and Address ID. I put something in the first INET field for each of them and everything displayed properly. I then put the identical information for each in their INET 1 field and it still displayed properly.

    Can you reproduce the error and give me more details on what you entered?

    Kind regards,

    Leslie

  • Matt Connor Profile Picture
    65 on at

    Hi Leslie

    I missed out a salient point, I'm so sorry!

    Use the Search button to restrict the SmartList, say on Zip code... SmartList then uses the custom SQL query rather than the zDP stored proc(s)

    Matt

  • L Vail Profile Picture
    65,271 on at

    Hi Matt,

    OK, I got some weird results. The INET information didn't seem to matter. I even deleted the 'matching' vendor and still had it duplicate whichever address was on the Primary. I could never get them to cross over. I never had both vendor and customer information show up. I made each of the addresses have the same zip code, but it was still true to whether it was a customer or vendor. They both listed the primary twice in the search, which I see as a bug. Is that what you were experiencing?

    Kind regards,

    Leslie

  • Matt Connor Profile Picture
    65 on at

    Hi Leslie

    Kind of though I couldn't replicate the duplicate when the Vendor ID was deleted

    The duplicate records in the SmartList just show the customer's address twice, the vendor address does not show

    The INET information itself doesn't matter as such but if there is a record in the SY01200 table for a vendor matching the customer (ID + address code) then the duplicate shows :-)

    Matt

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans