Forum Discussion
Unknown Error when trying to edit changes to Datamart
- 2 years ago
After many hours of tracing back steps I've found what I suspect to be the issue.
For one calculated column:
"each if Number.IsNaN([SuccessfulCount] / [TotalShifts] * 100) then 0 else ([SuccessfulCount] / [TotalShifts] * 100), Int64.Type)"
The issue was NaNs. For whatever reason, they will sneak by all the checks but error when loading in the data.
I got around this by converting the column to text type then using the replace tool, then converting back to whole number.
After many hours of tracing back steps I've found what I suspect to be the issue.
For one calculated column:
"each if Number.IsNaN([SuccessfulCount] / [TotalShifts] * 100) then 0 else ([SuccessfulCount] / [TotalShifts] * 100), Int64.Type)"
The issue was NaNs. For whatever reason, they will sneak by all the checks but error when loading in the data.
I got around this by converting the column to text type then using the replace tool, then converting back to whole number.