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

[Error] There is already a "field" named #712

Open
aghazaly opened this issue May 14, 2023 · 16 comments
Open

[Error] There is already a "field" named #712

aghazaly opened this issue May 14, 2023 · 16 comments
Assignees
Labels
Looker Issue External issue with Looker or the Looker API

Comments

@aghazaly
Copy link

There is an error complaining about duplicate field name between two views [Error] There is already a "field" named, even when Looker's LookML validation is not showing an error. Even after deleting the view which contains same names, the error still exists. Any idea what's causing this?

@DylanBaker
Copy link
Collaborator

Hey there @aghazaly. I haven't seen this one before.

Do you have the API Explorer installed on your Looker instance? The best first step would be to run LookML validation via the API to see if we are able to reproduce this directly on the Looker instance.

@aghazaly
Copy link
Author

aghazaly commented May 15, 2023

Hi @DylanBaker thanks for your reply.. I just tried the POST /projects/{project_id}/validate end point and I am getting
(-1: Timeout) response

@DylanBaker
Copy link
Collaborator

Ah. I believe that's a timeout imposed in the API explorer. Would you mind running a short script that I send over to test it against the API without the API explorer?

@aghazaly
Copy link
Author

Hi @DylanBaker sure thanks, can you please send over the script? and I will take a look

@DylanBaker
Copy link
Collaborator

@aghazaly here's a script for running it. If you have any issues, let me know! https://gist.github.com/DylanBaker/93293966d5ddcd209b4c219d667db3bb

@aghazaly
Copy link
Author

aghazaly commented Jun 1, 2023

Thanks @DylanBaker I am getting json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) error, any idea how to bypass that?

@DylanBaker
Copy link
Collaborator

I've just updated the script to use text instead of json(). Could you try that again? Thanks!

@adityasingh02
Copy link

I have faced this issue as well and this is transient in nature. Dumping the changes into a new branch passes all the tests. One pattern I have seen is that it happens for dimensions of type "count" and complains that there is already a "field" when there is not on random views.

@DylanBaker
Copy link
Collaborator

We've had confirmation from Looker that this is a bug. They are working to fix it and we'll update here once it is resolved.

@DylanBaker
Copy link
Collaborator

The Looker issue ID for this is 288376313.

@DylanBaker DylanBaker added the Looker Issue External issue with Looker or the Looker API label Jun 29, 2023
@DylanBaker DylanBaker self-assigned this Jun 29, 2023
@attrivivekFF
Copy link

@DylanBaker Any update on this issue? It is impacting our velocity a lot. Only one commit passes out of a plenty.

@DylanBaker
Copy link
Collaborator

Hi @attrivivekFF. I've just followed up with Looker to get an ETA.

@enrique-villarrealp
Copy link

Also interested in getting an ETA regarding this issue. Tried to implement this and while initially it ran OK, I'm getting false positives in a measure that starts with count_ even if it's of type sum

@DylanBaker
Copy link
Collaborator

Partial answer from Looker: "This is only an issue with JDK 11 but not JDK 8, so if downgrading JDK is a possibility for you that may resolve the issue for now."

You should be able to get in touch with support and ask them to downgrade your version. It shouldn't result in any feature differences or performance issues, but support should hopefully be able to confirm that.

@enrique-villarrealp
Copy link

enrique-villarrealp commented Jul 21, 2023

For those wondering - we have downgraded our JDK to v8 and it does seem to have fixed the issue! They confirmed that it indeed shouldn't have any impact on performance or features.

I will report here again should we find ourselves needing to revert back to 11 or disabling the validator!

@attrivivekFF
Copy link

Same here. Looker downgraded our jdk version to 8 as well. We are also not facing tbis error anymore. Will post here if start seeing this error again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Looker Issue External issue with Looker or the Looker API
Projects
None yet
Development

No branches or pull requests

5 participants