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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Import Date from SQL t...
Power Automate
Answered

Import Date from SQL to CDS not working when NULL

(0) ShareShare
ReportReport
Posted on by 103

Hello,

 

im importing an SQL Tbale to the Commom Data Service.

If the Date Value is NULL ins SQL this results in following values in the flow:

Text

{ "ID": 3,
"DecTest": 3.67,
"Inttest": null,
"Datum": "" }
 
The date NULL value reults not in an null value, but in an empty string.
This cannot be imported in the CDS:
{ "status": 400, "message":
"Cannot convert the literal '' to the expected type 'Edm.DateTimeOffset'.",
"source": "rts-connector.powerapps.com" }
 
Would be great if this would be working dirctly without programming workarounds.
 { "status": 400, "message": "Cannot convert the literal '' to the expected type 'Edm.DateTimeOffset'.", "source": "rts-connector.powerapps.com" }
Regards
Dieter
Categories:
I have the same question (0)
  • v-micsh-msft Profile Picture
    Microsoft Employee on at

    Hi @DA,

     

    Thanks for this feedback. So the column under Common data Service is also configured with the Datetime (Date?) type?

    60.PNG

    I have confirmed this behavior, for the datetime type (and the date type ) from SQL Server, when the data is set to Null, there would be errors generated under Microsoft Flow, with the same data type configured under Common Data Service,

    for the Nchar type from SQL table (didn't test the other data types), the Null value is supported to pass through Microsoft Flow service and be successfully created under Common Data Service.

    Further, saving the "NULL" date format value in SQL Server to the Text data value under Common data service would give no errors.

     

    58.PNG

     

     

    I will collect this as a feedback.

    Regards

  • DieterA Profile Picture
    103 on at

    Short Update:

    Same Problem from SharePoint to SQL

  • Verified answer
    DieterA Profile Picture
    103 on at

    Seems to be solved with the actual release

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard