question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DataTable update fails when table has boolean column

See original GitHub issue

I 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:closed
  • Created 5 years ago
  • Comments:25 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
dmitry-a-morozovcommented, Apr 7, 2018

Awesome ! Thanks for your patience ! No, I don’t have gitter/slack channel. I’ll think about having one. Thanks for suggestion.

0reactions
sandeepc24commented, Apr 7, 2018

I just tested with the latest version and it is now working fine.

Do you have a gitter/slack channel to interact with you?

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found