Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics RMS (Archived)

Automatic PO Number generation causes Error

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Howdy,

 

When I commit a partially received PO, RMS gives the option of creating a New PO with the backordered items.

When I try to do this The system crashes and fails to generate the new PO

The error message indicates that the data is not in an INT format and it cant increment the #.

WE have used alphabetic characters in the PO # field in the past, and This seems to be causing the problem.

 

Is there any way to reset the # that RMS is using for automatically generating PO #''s

 

thanks

Jon

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    this is on store database right??

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    Muchas Gracias Heidi,

    That worked great.

    I marked it as answered.

    I need to learn some SQL

    cheers

    jk

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    Hi Jon,

    Sorry correction.... I typed OldPO in a place I should have typed NewPO

    -- Begin Query --

    DECLARE @NewPO NVARCHAR(20), @OldPO NVARCHAR(20)

    SET @NewPO = 'NewPONumberHere'

    SET @OldPO = 'OldPONumberHere'

    UPDATE PurchaseOrder SET PONumber = @NewPO WHERE PONumber = @OldPO

    AND @NewPO NOT IN (SELECT PONumber FROM PurchaseOrder)

    -- End Query --

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    Of course - just edit the second and third lines to indicate the new PO # you want to use and the old (bad) PO #.  Keep the PO #s in apostrophes.

    -- Begin Query --

    DECLARE @NewPO NVARCHAR(20), @OldPO NVARCHAR(20)

    SET @NewPO = 'NewPONumberHere'

    SET @OldPO = 'OldPONumberHere'

    UPDATE PurchaseOrder SET PONumber = @NewPO WHERE PONumber = @OldPO

    AND @OldPO NOT IN (SELECT PONumber FROM PurchaseOrder)

    -- End Query --

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    Thanks for replying Heidi,

    There is a PO in our system that has this #.  It is OLD from 2006.

    Unfortunately the PO# is grayed out and is not editable.

    I think I need a SQL statement to reset that PONumber.

    any help appreciated

    jon

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Automatic PO Number generation causes Error

    Hi Jon,

    The only way to reset the PO # that RMS is using is to either change the problematic PO # to something RMS will accept, or manually type in a PO # that is higher that the problematic PO # and then RMS will use that as the starting point for the next PO.

    Good luck!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,503 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans