You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The InsertBulk method throws an ArgumentNull exception. It appears to be thrown when initializing the SqlBulkLoader (the 'connection' parameter is null). This is occurring with the latest NuGet package.
System.ArgumentNullException: Value cannot be null. Parameter name: connection
I actually have a static GetInstance() method which resolves my connection string based on the current environment and then returns the database object using the above constructor, but I just demonstrated with the constructor for simplicity. All other regular operations work just fine, but I get the exception on the InsertBulk.
The text was updated successfully, but these errors were encountered:
The InsertBulk method throws an ArgumentNull exception. It appears to be thrown when initializing the SqlBulkLoader (the 'connection' parameter is null). This is occurring with the latest NuGet package.
System.ArgumentNullException: Value cannot be null. Parameter name: connection
the code to reproduce is as basic as it comes:
UPDATE:
If I change the code to the following it works just fine:
I actually have a static GetInstance() method which resolves my connection string based on the current environment and then returns the database object using the above constructor, but I just demonstrated with the constructor for simplicity. All other regular operations work just fine, but I get the exception on the InsertBulk.
The text was updated successfully, but these errors were encountered: