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)

Lot quantities missing after receipt crashed

(0) ShareShare
ReportReport
Posted on by 82

I had a user who's system crashed while receipting an in-transit transfer.  Have been able to go into the receipt and delete it within GP but now when we go to receive the transfer the items show but the lot numbers aren't available to be selected.  See below

Missing-Lot-qty.JPG

How can I fix this?

*This post is locked for comments

I have the same question (0)
  • L Vail Profile Picture
    65,271 on at

    Had the user already selected the lots before the computer went down? If you do a lot number search, what are your results? This may require a bit of file surgery, depending on how far along the transaction went.

    Kind regards,

    Leslie

  • hnewport Profile Picture
    82 on at

    Yes they had already selected them.

    When I do a Lot Number Enquiry it shows:

    0 on Hand

    4 Allocated

    -4 Available

  • hnewport Profile Picture
    82 on at

    Further investigation shows the line is showing in the lot history table (IV30400)

  • Suggested answer
    Redbeard Profile Picture
    12,931 on at

    Try running Inventory reconcile against the item in GP. Inventory > Utilities > Reconcile. This can be done on a single item.

    If data were written to the lot table, and not reversed properly after a system crash, this behavior might be corrected by the reconcile process.

  • hnewport Profile Picture
    82 on at

    Thanks Harry, but that was the first thing I tried

  • L Vail Profile Picture
    65,271 on at

    Hi,
    If neither check links nor reconcile helped, you're going to need to follow the transaction through the tables to find out how much of it was 'posted'. Look in the POP10330 and see if a record is in there that has your lot numbers. If it is you have a little file surgery to do in order to remove the part of the transaction that didn't make it through the process. There are several tables involved, but let's start with this one.
    Kind regards,
    Leslie

  • hnewport Profile Picture
    82 on at

    Thanks Leslie.  Nothing found in POP10330

  • Suggested answer
    L Vail Profile Picture
    65,271 on at

    OK, let's dig deeper. Search the database for the lot number you are looking for. I'll post the script at the bottom of this message. I did not write this script, but I use it all of the time. It will tell you each table and column the exact lot number has been recorded in. Sometimes it's not the lot number, but some other random number. This will get you started on the trace. I think you need to determine how far the transaction progressed through posting and then fix it once we know. Put the value you are searching for where the words 'PUT YOUR VALUE HERE' appear. Your value needs to have a single quote on each side.

    Leslie

    DECLARE @table VARCHAR(64)

    DECLARE @field VARCHAR(64)

    DECLARE @string_value VARCHAR(64)

    DECLARE @sql_script VARCHAR(1024)

    SET @string_value = 'PUT YOUR VALUE HERE'

    CREATE TABLE [tag: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 [tag: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 [tag:ResultsTable]

    DROP TABLE [tag:ResultsTable]

  • Verified answer
    hnewport Profile Picture
    82 on at

    Ok so I ran checklinks on all inventory the ran a reconcile on the missing items.

    This time I had a result.  I got RECONCILE:0000000001 lot numbers added - in IV00300 I changed LTNUMSLD from a 1 to 0 and I was able to receive the offending items.

    Thanks everyone for your help

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
talty09 Profile Picture

talty09 2

#1
Anthony Beatty Profile Picture

Anthony Beatty 2

#3
CP04-islander Profile Picture

CP04-islander 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans