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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Unable to insert a utcdatetime into a date column using insert_recordset due to time zone id

(0) ShareShare
ReportReport
Posted on by 95

I have the exact same problem as mentioned in this thread with a difference that I am trying to insert a utcdatetime into a date field using insert_recordset. This is the error message that I get since the select statement is getting an extra timezone column DATETIMETZID.

'The select list for the INSERT statement contains more items than the insert list. The number of SELECT values must match the number of INSERT columns.

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/173963/unable-to-insert-into-a-utcdatetime-column-due-to-time-zone-id/540789

https://community.dynamics.com/ax/f/microsoft-dynamics-ax-forum/227063/insert-createddatetime-into-temp-table/615814#615814

Has there been any fix introduced for this problem? Using a while select - insert has to be avoided.

Thank you!

  • Blue Wang Profile Picture
    Microsoft Employee on at

    HI Priyan,

    From this point of view, 'The select list for the INSERT statement contains more items than the insert list. The number of SELECT values must match the number of INSERT columns.

    The number of fields in your insert statement and select statement does not match.

    Can you share the code of the insert and select parts?

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    Is this related to AX2012 or D365FO?

    Best regards,

    Ludwig

  • Priyan Profile Picture
    95 on at

    D365FO

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    moved to the d365 forum

  • Blue Wang Profile Picture
    Microsoft Employee on at

    HI Priyan,

    Please update here.Thanks.

  • Priyan Profile Picture
    95 on at

    Still looking for some help on this issue. Thanks!

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the August Top 10 Community Leaders

These are the community rock stars!

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

#1
Martin Dráb Profile Picture

Martin Dráb 515 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 417 Super User 2026 Season 2

#3
CU10121822-0 Profile Picture

CU10121822-0 360

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans