web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Answered

After the insert_recordset statement i want to fetch salestable base on sales id field but i am getting empty buffer. insert_recordset is working fine.

(0) ShareShare
ReportReport
Posted on by 105

pastedimage1660610844515v1.png

Record of temp table after running above x++ code

pastedimage1660611162479v2.png

What i want is to based on salesid field in inserted temp table, futher i want to insert line in same tmp table from sales line.

I have the same question (0)
  • Verified answer
    Martin Dráb Profile Picture
    237,783 Most Valuable Professional on at

    Please use the debugger to find out what value you're passing to SalesTable::find(). I believe it's an empty string, because you haven't loaded any value to specialInstructionTmp variable. You used it only to set an update to database, not select fetch from database. If you want to fetch data from database, use a select statement.

  • Martin Dráb Profile Picture
    237,783 Most Valuable Professional on at

    By the way, which version is it about? You selected "Microsoft Dynamics AX 2012" category, but then you also attached "d365 F&O" tag.

  • imran_balti115 Profile Picture
    105 on at

    Thanks  goshoom issue is resolved. By the way I used debugger but i was little confuse that after ttscommit statement i checked data in table through sql yet data was not inserted in table but when I continue the debugger the table is filled with record.

  • Martin Dráb Profile Picture
    237,783 Most Valuable Professional on at

    Maybe your code is called from another transaction - nothing is committed until the top-most transaction gets completed.

    Also, there is a way to see uncommitted data too in SQL Server (e.g. by using NOLOCK hint).

    Nevertheless the table name suggests that it's temporary. If it's InMemory temporary table, it doesn't exist in DB at all. If it's TempDB table, it can be found in TempDB database, but you would need to know the actual generated name, because there may be many instances of the same temporary table.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 692 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 558 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 364 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans