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.

System.Data.OleDb.OleDbException (0x80040E10): No value given for one or more required parameters - (ADB repository using WIP release with EF Core 3.1.3)

See original GitHub issue

@lauxjpn : I have tried with EF Core 3.1.3 and faced error: “System.Data.OleDb.OleDbException (0x80040E10): No value given for one or more required parameters.” Could you give me some advice? Note: I used your provider with ASPNET BoilerPlate fw.

_Originally posted by @ASCSolution in https://github.com/bubibubi/EntityFrameworkCore.Jet/issues/34#issuecomment-665571822_


@ASCSolution How does your .UseJet() call (and surrounding code) look like? Also, please post the full stack trace of the exception, the Linq query that fails and the SQL that is being generated an logged by EF Core.

(You might want to create a new issue for this.)

_Originally posted by @lauxjpn in https://github.com/bubibubi/EntityFrameworkCore.Jet/issues/34#issuecomment-665580535_

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
lauxjpncommented, Jul 30, 2020

@ASCSolution The configuration looks good as far as I can see. Please still add the Linq query and the generated SQL query (logged by EF Core).

In this case, please post both, the SQL query generated by the ABP repository and the SQL query generated directly by the context. Because it is unclear at the moment, whether the error comes from a wrongly supplied parameter or from a wrongly formatted query, it is important that you post the queries that are being logged by EF Core, not using the ToSql() method. (The ToSql() queries are parameterless and might therefore not be the exact queries that EF Core executes.) If you want, you can post both (so 4 SQL queries in total), but the SQL queries logged by EF Core are our primary focus at the moment.

You might want to add .EnableSensitiveDataLogging() and .EnableDetailedErrors() to your EF Core options builder for better logging output.

_Originally posted by @lauxjpn in https://github.com/bubibubi/EntityFrameworkCore.Jet/issues/34#issuecomment-666184307_

0reactions
horseyhorseycommented, Oct 4, 2020

I found an unmapped property on the table. After adding entity.Ignore(x => x.MyUnmappedProp); in the builder it’s fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

System.Data.OleDb.OleDbException: 'No value given for ...
If there is a mismatch between the column names (in excel) and the column names in C# OleDb thinks that you are supplying...
Read more >
How should I solve "system.data.oledb.oledbexception
oledb.oledbexception: 'no value given for one or more required parameters.'? Error looks explanatory here: Your query used is not as expected ...
Read more >
No value given for one or more required parameters.?????
Trying to make a login form with an access database and i keep ... OleDbException: 'No value given for one or more required...
Read more >
No value given for one or more required parameters error
No value given for one or more required parameters in vb. ... for one or more required parameters error. 11K views · 5...
Read more >
No value given for one or more required parameters.
[OleDbException (0x80040e10): No value given for one or more required parameters.] System.Data.OleDb.OleDbCommand.ExecuteCommandTextE rrorHandling(Int32 hr)
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