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

Notifications

Announcements

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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 503 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 321 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard