Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

Posted on by 100

ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg

*This post is locked for comments

  • Suggested answer
    Deepak Agarwal Profile Picture
    Deepak Agarwal 148 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    Try this.

    Change your field sequence in such way all fields which available in 'InventTable' comes first and than put InventSiteID. Now while selecting add relation to InventDim to select InventSiteId.

    That must work.

    Here is example .

    Insert_Recordset inventStockCardTmpLine (f1, f2, f3, InventSiteId)

    select f1, f2, f3

    from InventTable

    join InventSiteId from InventDim

    where InventDIm.inventDimId == <table>InventDimId

    you need to identify the right relation for inventDim as InventTable doenst contain inventDimID.

    Also in your code you are putting condition on inventStockCardTmpLine.recID==0 while the buffer you are using to insert record. You can not use same table buffer to insert and in where condition. Anyways its a temp table which does nt contain record out of this buffer for a rec id.

  • nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    Yes, I know that. So, if you try to select such field from InventTable it won't work.

    Could you please start by sharing your functional requirement with us. I'm sure it would help us to help you.

  • venu123 Profile Picture
    venu123 100 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    InventSiteId is in another table inventDim

  • Suggested answer
    nmaenpaa Profile Picture
    nmaenpaa 101,156 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    InventTable doesn't contain a field called InventSiteId. This has nothing to do with insert_recordset.

    The error is solved by using only such fields that exist in the table. Then your statement will compile succesfully.

  • venu123 Profile Picture
    venu123 100 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    How to solve this error

  • venu123 Profile Picture
    venu123 100 on at
    RE: The table Invent Table doesn't contain the Field InventSiteId when i am changing to insert_record set?

    pastedimage1562586095127v1.pngthis is actual

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