Replies: 9 comments
-
@hsfert I am not familiar with entity framework, but can you make sure you have the same setting for worker nodes as the driver node? If you have a repro code I can test on my box, that will be helpful as well. (I am assuming |
Beta Was this translation helpful? Give feedback.
-
I can reproduce the error without an existing SQL server as follows. I have just installed two packages
The
The error is:
|
Beta Was this translation helpful? Give feedback.
-
@hsfert sorry, I didn't get a chance to get to this today. But can you try to place |
Beta Was this translation helpful? Give feedback.
-
Ultimately what worked for me is that I just add those packages to the source code, call some of the libraries in the code and build the For the |
Beta Was this translation helpful? Give feedback.
-
@indy-3rdman since I believe he got this working. |
Beta Was this translation helpful? Give feedback.
-
@hsfert, I think that might be related to the EntityFramework provider for the SQL Server database engine. I've used EntityFramework to test the ForeachWriter and it worked fine for PostgreSQL and SQLite. But when testing with SQL-Server, I get a similar error message. |
Beta Was this translation helpful? Give feedback.
-
Yea, but I think this is an easier/better solution than having to build/maintain |
Beta Was this translation helpful? Give feedback.
-
I'm facing the same error. With Microsoft.SqlServer.Types |
Beta Was this translation helpful? Give feedback.
-
Not sure if this is related but I can actually load and invoke I do however, get this issue shortly after that I am not being able to solve right now. I am thinking it could be related to the fact that the runtime is linux and the tcp socket to SQL Server needs to be configured differently than the default values but I am not sure how to achieve that, the exception doesn't help me either
Things I already did:
Also mentioned here EDIT: my issue turned out to be just the connection string 🤷♂️ |
Beta Was this translation helpful? Give feedback.
-
Is there a way to run UDF in the worker nodes when using EntityFrameworkCore? I am running the application on Windows 7 and at .Net Core 3.1 and my code looks something as follows:
When I deploy the application via DotnetRunner, the first call
MyUDF(73546)
runs okay. But when it is running through the worker node, there is an error:When I searched this error on the web, it seems that deploying the application on the azure service will encountering the same issue and they need to create
function.deps.json
to fix that.Beta Was this translation helpful? Give feedback.
All reactions