Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Suggested answer

Purchase order line is automatically creating

Posted on by 420

Hi,

I tried to create purchase order. After creating purchase order the line is automatically creating with an itemid which i havent selected. Help me on this.84583.Screenshot_5F00_5.png

Regards,

Ram

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,696 Super User on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    You can also try to find where in the system the purchase order line is inserted with the doInsert() command. If this is used, then indeed the breakpoint on the insert method will not work.

  • Lalit Profile Picture
    Lalit 70 on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    You can also check breakpoint on form Purchtable, datasource:Purchline : method init()/create() if new record is getting created on form level.

    Regards,

    Lalit.

  • Lalit Profile Picture
    Lalit 70 on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    You will have to put breakpoint on Purchtable header level, like PurchTable.insert() or on form level PurchTable datasources method : write().

    Alternatively you can compare your code with standard and see if there is any customizations for Table : PurchTable  and Form : PurchTable

    Regards,

    Lalit.

  • RE: Purchase order line is automatically creating

    Hi Andre,

    I have placed a breakpoint in insert method of Purchline table but its not triggered. If i tries to add a new line then only it triggers.

    Regards,

    Ram

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,696 Super User on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    Obviously, I don't have any information about your environment.  You can start by putting a breakpoint on the insert method of the purchline table.

  • RE: Purchase order line is automatically creating

    Hi Andre,

    I want to know where the customization is ? . I need to debug to find.

    Regards,

    Ram

  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 287,696 Super User on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    I think it is caused by a certain customization. I have not seen automatic order line creation before.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Purchase order line is automatically creating

    Hi Ram,

    Can you ask your IT colleagues to give you a fresh and new AX2012 R3 system?

    I don't see this issue in my demo machine and would recommend not wasting too much time to check what might have been tweaked / changed / setup in this machine because it might not be worth the effort.

    Best regards,

    Ludwig

  • RE: Purchase order line is automatically creating

    Hi Ramit Paul,

    Where can i find those trade agreements for the vendor account.

    Regards,

    Ram

  • RE: Purchase order line is automatically creating

    Hi Ludwig,

    Its adding automatically sometimes, and sometimes its not adding i dont know why ?. This looks Strange.

    Regards,

    Ram

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 287,696 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,490 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans