Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Unable to find Sales Order even though open in Inquiry Sales Documents

(0) ShareShare
ReportReport
Posted on by 90

Hello,

While creating a sales order, our employee entered the Type ID, order #, and the customer name. It was then realized that the customer did not have the ship-to address needed and so he tried to exit the order, was prompted to save or delete order, chose delete, then was told he did not have the rights to delete documents. In order to get out of the order, he ended up logging out of GP completely (I'm not sure how he was able to do that but he was).

Now, our problem is that we can't find the order in the Sales Transaction Entry window. When I search for it in Sales>Inquiry>Sales Documents, I can find it as Unposted, but I can't void it from there since it is just an inquiry. I need to find it in the Sales Transaction Entry window but can't (I made sure not to search within a batch). 

I've tried Reconcile-Remove Sales Documents but nothing comes up on the report when I do so. 

Any idea how to proceed? 

Thanks in advance for your help. 

*This post is locked for comments

  • rmousa877 Profile Picture
    90 on at
    RE: Unable to find Sales Order even though open in Inquiry Sales Documents

    Hi there! We did try that. When we double click on it, we get the following message: "This document has been posted"

  • Community Member Profile Picture
    on at
    RE: Unable to find Sales Order even though open in Inquiry Sales Documents

    Did you try searching for it with Smartlist LIst?  

    Smartlist >> Sales >> Sales Transaction

    You should see the order there and be able to double click on it and it should take you to the Sales Transaction.

  • rmousa877 Profile Picture
    90 on at
    RE: Unable to find Sales Order even though open in Inquiry Sales Documents

    Thank you for your response - we ran that script in SQL against our missing order and another one that was fine in GP. We found some differences in the tables - for example, our missing order was found on a GL table which is odd. It was also missing some sales tables when compared to other orders. 

    We are wondering what the next step is now?? Meaning, we can follow the trail, but how do we fix it? 

  • Suggested answer
    L Vail Profile Picture
    65,271 on at
    RE: Unable to find Sales Order even though open in Inquiry Sales Documents

    Hi,

    At this point I would search the database for the document number and see where it falls out. The Query is quite easy, run it against you company database:

    /*

    07-06-2001

    The following is a SQL Script that can be run on a database to return

    all tables and columns where a particular string value is stored.

    Put the value you are searching for in the line

    where 'SET @string_value' appears.

    */

    DECLARE @table VARCHAR(64)

    DECLARE @field VARCHAR(64)

    DECLARE @string_value VARCHAR(64)

    DECLARE @sql_script VARCHAR(1024)

    -- replace 10084 with your string. Be sure it is enlosed in single quotes like below

    SET @string_value = 'x32'-- <<<<<< replace 'x32' with your value>>>>>>>

    CREATE TABLE #ResultsTable (

       TableName VARCHAR(64),

       ColumnName VARCHAR(64)

    )

    DECLARE TABLES CURSOR

    FOR

       SELECT sysobjects.name, syscolumns.name

       FROM syscolumns

       INNER JOIN sysobjects ON syscolumns.id = sysobjects.id

       WHERE sysobjects.type = 'U' AND syscolumns.xtype IN (167, 175, 231, 239)

       ORDER BY sysobjects.name, syscolumns.name

    OPEN TABLES

    FETCH NEXT FROM TABLES

    INTO @table, @field

    WHILE @@FETCH_STATUS = 0

    BEGIN

       SET @sql_script = 'IF EXISTS(SELECT NULL FROM [' + @table + '] '

       --SET @sql_script = @sql_script + 'WHERE RTRIM(LTRIM([' + @field + '])) = ''' + @string_value + ''') '

       SET @sql_script = @sql_script + 'WHERE RTRIM(LTRIM([' + @field + '])) LIKE ''%' + @string_value + '%'') '

       SET @sql_script = @sql_script + 'INSERT INTO #ResultsTable VALUES (''' + @table + ''', '''

       SET @sql_script = @sql_script + @field + ''')'

       EXEC(@sql_script)

       FETCH NEXT FROM TABLES

       INTO @table, @field

    END

    CLOSE TABLES

    DEALLOCATE TABLES

    SELECT *

    FROM #ResultsTable

    DROP TABLE #ResultsTable

    Depending on the number of transactions you have it could take a bit but it will leave you the trail to follow to see what happened to your elusive transaction.

    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >

Featured topics

Product updates

Dynamics 365 release plans