Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics GP (Archived)

Unit of measure error creating a purchase order

Posted on by 330

Our client changed the currency decimal places on one item from 2 to 0, using the GP utility. The unit of measure schedule is EA and there is an equivalency to EA of 1. On the price list screen, the default selling unit of measure is EA, as it should be. On the purchasing screen, there is no default unit of measure and nothing shows up in the list if we do a lookup on that field. If we try to type in EA, we get a message that EA isn't in the item's unit of measure schedule. We get the same message trying to put the item on a PO. What happened and what do we do to fix it?

*This post is locked for comments

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Unit of measure error creating a purchase order

    I see that this is an old post, but I recently came across this problem. On a new GP company, the item import seems to have had some items that were not imported properly. The Purchasing Options window has the problem that Jo Ann is describing. You can fix using the method she describes by changing the UOM then change it back to the original UOM. This will remove the Item Pricelist. You will then have to add the pricelist back to the item. A lot of work. The problem is that the IV00106 table (Item Purchasing Table) is missing the UOM info for that item. If you feel comfortable with SQL, you could do an insert and fix the problem.

    This will let you know if the problem is with only one item or with many:

    SELECT IV.ITEMNMBR, UM.UOFM, 1.0 AS QTYBSUOM, 2 AS UMPUROPT

    ,UM.UOMSCHDL,UM.UOFM, IV.UOMSCHDL, IV.PRCHSUOM, IV.SELNGUOM

    FROM IV00101 IV

    INNER JOIN IV40202 UM

    ON IV.UOMSCHDL=UM.UOMSCHDL

    WHERE IV.ITEMNMBR NOT IN

    (

    SELECT ITEMNMBR FROM IV00106

    )

    If only a few and you dont want to use SQL, then at least you know which items to fix using the GP UI

    If you prefer to use SQL, then here is what I used for the EACH UoM. A few things to keep in mind:

    ITEMNMBR = Item Number

    UOFM = Unit of measure. For my example = EACH

    QTYBSUOM = Quantity of UoM. For EACH = 1

    UMPUROPT =  The option from the drop down - 1 = Not Available, 2 = Whole, 3 = Whole and Fractional

    INSERT INTO IV00106(ITEMNMBR,UOFM, QTYBSUOM, UMPUROPT)

    SELECT IV.ITEMNMBR, UM.UOFM, 1.0 AS QTYBSUOM, 2 AS UMPUROPT

    --,UM.UOMSCHDL,UM.UOFM, IV.UOMSCHDL, IV.PRCHSUOM, IV.SELNGUOM

    --,*

    FROM IV00101 IV

    INNER JOIN IV40202 UM

    ON IV.UOMSCHDL=UM.UOMSCHDL

    WHERE IV.ITEMNMBR NOT IN

    (

    SELECT ITEMNMBR FROM IV00106

    )

    AND IV.UOMSCHDL = 'EA'

    Always make a backup of the Db before doing any update/insert/delete statements!!!!

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    RE: Unit of measure error creating a purchase order

    After you add an item to inventory you must click on the GoTo Button and then Purchasing and enter your purchasing U/M. You need to make sure you have selected a correct U/M Schedule on the item first. As long as the purchasing U/M is one of the U/M's on the schedule you will be fine. If this stills does not work then a remote session will be required because something is getting lost in the translation.

  • Lisa Dochstader Profile Picture
    Lisa Dochstader 5 on at
    RE: Unit of measure error creating a purchase order

    I am seeing a similar issue - its as if the Item Purchasing window does not see the Unit of Measure schedule's units of measure - there are none to choose.

    The values exist in the IV40202 - but are just not available to select in the Item Purchasing window.

    Adding a new uofm to the Unit of Measure schedule appears to enable the unit of measures in the Item Purchasing window - problem is this re-occurs for every new item added - can't keep adding uofm's.

    Were you able to get this resolved - we're on version 10.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    Re: Unit of measure error creating a purchase order

    Please send me a private message and we can schedule a time for me to hook up and take a look a this. This just is not making any sense.

  • Jo Ann Flaum Profile Picture
    Jo Ann Flaum 330 on at
    Re: Unit of measure error creating a purchase order

    It says invalid unit of measure.

    Since we've since corrected the problem by putting a different ums on the item and then switching it back to EA, the SQL query won't help now. However, if it were the wrong schedule there would be a problem on the price list window also. And I did try reselecting the ums schedule on the item, to make sure it was picking up the one I wanted.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    Re: Unit of measure error creating a purchase order

    What happens if you simply type EA in the Purchasing Unit of Measure field? Does it take it or say invalid unit of measure?

    If you run this in SQL

    select UOMSCHDL  from iv00101 WHERE ITEMNMBR='Your Part Number' do you see the correct U/M Schedule?

  • Jo Ann Flaum Profile Picture
    Jo Ann Flaum 330 on at
    Re: Unit of measure error creating a purchase order

    Yes, that's what I'm saying. Yes, there's a ums assigned to the item. That's why I mentioned the price list window - if I go to the default selling uom field and search, EA shows; but if I go to the default purchasing uom field on the purchase screen and search, nothing shows.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    Re: Unit of measure error creating a purchase order

    The U/M on the item price list screen has nothing to do with the purchasing U/M. Are you saying when you go to the item purchasing screen there are no U/M available to be selected? If so, is a U/M Schedule ID assigned to this item?

  • Jo Ann Flaum Profile Picture
    Jo Ann Flaum 330 on at
    Re: Unit of measure error creating a purchase order

    ums EA shows 0 decimals, shows EA as a uom, equivalence = 1 EA. Looking up the uom on the price list screen showed EA, on the purchase screen showed nothing.

  • Richard Wheeler Profile Picture
    Richard Wheeler 75,730 on at
    Re: Unit of measure error creating a purchase order

    Then there is something wrong with the U/M Schedule ID for this item. If you go to Tools->Setup->Inventory->U/M Schedule and pull up the schedule what do you see there?

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans