Skip to main content

Notifications

Microsoft Dynamics GP (Archived)

Bug in Customer Addresses SmartList

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

  • Matt Connor Profile Picture
    Matt Connor 65 on at
    RE: Bug in Customer Addresses SmartList

    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

  • L Vail Profile Picture
    L Vail 65,271 on at
    RE: Bug in Customer Addresses SmartList

    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
    Matt Connor 65 on at
    RE: Bug in Customer Addresses SmartList

    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
    L Vail 65,271 on at
    RE: Bug in Customer Addresses SmartList

    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

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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Complete!

🔔 Be sure to subscribe to the new forums you are interested in to stay up to date! 🔔

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,113 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 229,918 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans