DataTable update fails when table has boolean column
See original GitHub issueI am using DataTable to update a record and I get error "Input string was not in a correct format."
.
I have used this in another place and it works fine there.
Here is the stack trace
An unhandled exception has occurred while executing the request.
System.FormatException: Input string was not in a correct format.
at System.Data.Common.DbDataAdapter.UpdatedRowStatusErrors(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.UpdatedRowStatus(RowUpdatedEventArgs rowUpdatedEvent, BatchCommandInfo[] batchCommands, Int32 commandCount)
at System.Data.Common.DbDataAdapter.Update(DataRow[] dataRows, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.UpdateFromDataTable(DataTable dataTable, DataTableMapping tableMapping)
at System.Data.Common.DbDataAdapter.Update(DataTable dataTable)
at FSharp.Data.Npgsql.Utils.UpdateDataTable(DataTable`1 table, NpgsqlConnection connection, NpgsqlTransaction transaction, Boolean continueUpdateOnError, ConflictOption conflictOption)
Issue Analytics
- State:
- Created 5 years ago
- Comments:25 (15 by maintainers)
Top Results From Across the Web
how to make column bool data to be true with the update ...
I have a data table where I have "Complete" (data type=>bool)column, "Total" (data type=>string)column and some other data fields. I have made ...
Read more >Editor doesn't notice boolean value change from null to false.
Contains an index.html with the DataTable, a db.json with hard-coded sample data returned by the server, and a video demonstration of the issue....
Read more >Datatable and boolean confusion - Power Platform Community
I have a datatable connected to SharePoint. One column is Yes/No column. In the datatable it has checkboxes but they are showing incorrectly ......
Read more >is it "bad" to bulk update a boolean column semi-regularly ...
First, make sure that your UPDATE statement does not touch rows it does not need to. If you want to set all values...
Read more >Build Data Table error with Google.Apis.Drive.v3.Data.File ...
I get a “Column requires a valid DataType” exception from my Build Data Table activity when I run my flow with data type...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Awesome ! Thanks for your patience ! No, I don’t have gitter/slack channel. I’ll think about having one. Thanks for suggestion.
I just tested with the latest version and it is now working fine.
Do you have a gitter/slack channel to interact with you?