Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

please select a record first contract maintenance

(0) ShareShare
ReportReport
Posted on by

A user is trying to setup a new contract but she gets a message that "This Contract Number already exists".  When I look at the Contract Maintenance window and try to search for the contract No, it is listed but there is no contract ID or name for the No.  If you try to select the contract you get a message that "please select a record first".  What tables do I need to look at to clear this incomplete record?

*This post is locked for comments

  • Re: please select a record first contract maintenance

    Thanks for the stored procedure.  I will give it a try next time.  I was able to clear the contract using check links.  

  • Re: please select a record first contract maintenance

    If you have access & permissions to execute SQL scripts on SQL Server, I would recommend you to create this stored procedure "spSearchOnAllDB", that can be obtained from this post: blogs.msdn.com/.../spsearchonalldb-sql-stored-procedure-to-search-an-entire-database.aspx.

    You can then track down all tables & columns that contain this rogue contract number. This will certainly help you to understand the list of tables for a particular transaction, though it would be too technical, it's still worth to know.

  • Re: please select a record first contract maintenance

    I did find the rogue contract number is pa000002 and deleted it but it still shows up on the contract maintenance window.  

  • Re: please select a record first contract maintenance

    the svc tables you suggested are empty.  Let me add that we name our contract ids and contract nos the same.  With that said, I did find the contract id i am having problems with setup with a mismatched contract no.  I deleted that one.  The one with the contract no i am having issues with that doesn't have a contract id, name or customer id is still out there. what table might i find that in?

  • Re: please select a record first contract maintenance

    Contract Header: SVC00600

    Contract Line: SVC00601

    If you don't find sufficient information on these two tables against that contract number, you can be rest assured that this contract is kind of orphaned.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,430 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans