Idea Options
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Error when loading data in Datamart
Submitted by
StephanB12
on
05-27-2022
01:16 AM

Hi,
I am trying to add dataflows to a datamart, however when loading up the data to the datamart, I am getting an error that my date column is not a valid date/time field. Please see error below.
Wrapping things up
InternalError
ErrorMessageString was not recognized as a valid DateTime.
HttpStatusCode 500
I am suspecting it is because the locale seems to be resetting itself (to United States) after you load data in the dataflow.
Could you please have a look?
thanks,
Stephan
See more ideas labeled with:
Comments
- « Previous
-
- 1
- 2
- 3
- 4
- Next »
- « Previous
-
- 1
- 2
- 3
- 4
- Next »
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Latest Comments
- RedMax on: Continuous axis failed
-
nleuck_101
on: Button state not changing on hover or press
- GabyMolfino on: Copying Table with Filters is Ignoring Filters
-
smpa01 on: We couldn't load your datamart
-
mattlee on: Turned off Callout Values in Card (New) Visual sti...
-
mattlee on: SVG Image URL in Card (New) Visual is not working ...
- peef1987 on: Filtering by date causes error - Business central ...
-
mattlee on: New Card Visual inadvertently switching on values ...
- PeterValentiAVA on: Copying Table with Filters is Ignoring Filters
- tbuck on: March 2025 Update - Error fetching data for this v...
Idea Statuses
- New 7,897
- Needs Info 3,502
- Investigating 3,603
- Accepted 2,087
- Declined 38
- Delivered 3,964
-
Reports
10,164 -
Data Modeling
4,098 -
Dashboards
4,086 -
Gateways
2,105 -
Report Server
2,102 -
APIS and Embedding
1,951 -
Custom Visuals
1,776 -
Content Packs
521 -
Mobile
353 -
Need Help
11 -
Show and Tell
3 -
General Comment
2 -
Tips and Tricks
1 -
Power BI Desktop
1
Thanks for @Anonymous '' sharing, users who have faced with the same issue could try his workaround:
It assumes a valid table and a string column list as parameters and assumes the columns are of type text.
Feel free to use and adapt it (e.g.making it more generic for different TZs).
Function TransformSQLDTZ () :
let
Quelle = (Tab as table, cols as list) => let
Quelle1 = Table.ReplaceValue(Table.ReplaceValue(Table.ReplaceValue(Tab,"+01:00","",Replacer.ReplaceText,cols),"T"," ",Replacer.ReplaceText,cols),"+02:00","",Replacer.ReplaceText,cols)
in
Quelle1
in
Quelle
Implementation (query code snippet, copy to query code, adapt "StepBeforeDateConversion" to your previous step name) :
ChangeDatestoText = Table.TransformColumnTypes(StepBeforeDateConversion,{{"AnalyticsUpdatedDate", type text}, {"CompletedDate", type text}, {"StartedDate", type text}}),
TransformSQLDTZ = TransformSQLDTZ(ChangeDatestoText, {"AnalyticsUpdatedDate","CompletedDate", "StartedDate"}),
After those amendments you should be able to import datetimes/datetimezones successfully into datamart (as text values).
Best Regards,
Community Support Team _ Yingjie Li