Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I Got an error #4174

Closed
Huahuz opened this issue Nov 26, 2021 · 3 comments
Closed

I Got an error #4174

Huahuz opened this issue Nov 26, 2021 · 3 comments
Assignees

Comments

@Huahuz
Copy link

Huahuz commented Nov 26, 2021

The issue

The error only comes out on the server and, while I can not reproduce it on local environment. However, it disappeares when I redeploy the server again without any changes.

Exception message: The field 'as11' has a type currently unknown to Npgsql (OID 21651). You can retrieve it as a string by marking it as unknown, please see the FAQ.
Stack trace:

@Huahuz
Copy link
Author

Huahuz commented Nov 26, 2021

I think the error is caused by "SELECT b."Id" as1, b."CompanyId" as2, b."Name" as3, b."VoltageLevel" as4, b."Remark" as5, b."CreatedTime" as6, b."CreatedBy" as7, b."UpdatedTime" as8, b."UpdatedBy" as9, b."Type" as10, b."Geom" as11
FROM "ElectricalEquipmentHistoryVersion" a
LEFT JOIN "ElectricalEquipmentHistory" b ON a."EquipmentId" = b."Id" AND (b."CompanyId" = '1270239713139589120')
WHERE (a."VersionId" = '1464039604386467840') AND (a."CompanyId" = '1270239713139589120')". Here as11 is a Geometry type of NetTopologySuite.Geometries

@roji
Copy link
Member

roji commented Dec 29, 2021

@Huahuz sorry for not answering sooner.

Are you sure you've properly set up the NetTopologySuite plugin? If you're using EF Core, see this page, otherwise see this page.

If you're still hitting the error, I'm going to need more details on exactly how to reproduce this, step-by-step.

@roji roji self-assigned this Jan 1, 2022
@roji
Copy link
Member

roji commented Jan 10, 2022

Since no answer was provided, I'm going to go ahead and close this for now. I know I took a long time to respond above, but I'm trying to keep the number of open, untriaged issues to a minimum. If the requested information is provided, I can reopen this.

@roji roji closed this as completed Jan 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants