Query Location by Name returns empty data

Hi Team,

We are trying to get the location details of a particular location using the location query by name. However, the API returns a null value on data even though this location already exists on the dashboard. Can you help us check on this? This is the request ID: 62296c8e410ac50ccec27b0d

Here is our query:

query getLocation {
  location(name: "D2D-TL1") {
    complexity
    request_id
    data {
        id
        legacy_id
        name
        warehouse_id
    }
  }
}

Then this is the API response:

{
    "data": {
        "location": {
            "complexity": 1,
            "request_id": "62296c8e410ac50ccec27b0d",
            "data": null
        }
    }
}

Looking forward for your response. Thank you.

Kind Regards,
Altair

Cc: @ddl @Edwin

Hello @Altair

To achieve what you are asking for, you can use the following query:

query getLocation {
  location(id: "id of the location ex: 5548973") {
    complexity
    request_id
    data {
        id
        legacy_id
        name
        warehouse_id
    }
  }
}

I replicate the case on my test account, and it looks if I search for location name, I get null data.
But I tried with the location ID, and the response was successful.
Please let me know if this doesn’t solve your concern.

Have a nice day!

Ignacio

Hi @iescobar,

This is not really our use case. What we are trying to achieve is to qet the location ID by querying the location by name. When a new location is created on dashboard, we need to store that new location information on our internal DB including the location ID, but before we do that is we need to identify the location ID of the location first so we can’t use the get location by ID query. The current query that I provided above doesn’t work and it always returns a null value.

Hope you can check out with this. Thank you.

Kind Regards,
Altair

Hi @iescobar @tomasfd ,

Can I follow up you with this issue if there’s any update on this?

Kind Regards,
Altair

Hello @altair!

What process did you use to create those bins? Do you remember by chance?

Was it API, CSVs, or manually?

Kind regards,
TomasFD

Hi @tomasfd,

We have some locations that we added via API, CSV’s and manual and all of these are not able to retrieve the location id by location name.

Kind Regards,
Altair

Hello @Altair!

We had to bring this issue to our engineering team. I will let you know as soon as I have an update from them!

Have a great day!
TomasFD

Hello @tomasfd , do you have any update about this issue?
I’ve just encountered the same issue that @Altair had: when trying to get the location_id of a bin by querying by their name, I just get null data.
If you have any update about this issue I would greatly appreciate it!

Best regards,
Cristóbal

Hey @cmora,

This issue is still making its way to our Engineering Team, however I have bumped the issue again in hopes of getting it escalated.

Thanks for hanging in there while we sort this one out.

Best,
RayanP

Hello @sh-agent !

Do you know if this was ever fixed by the engineering team?
I’ve just tried to query filtering by name, but without success.

Thanks,
Cristóbal

Hey @cmora,

Thanks for hanging in there!

I’ll go ahead and bump this issue again. I’ll let you know when a fix has been pushed for this one.
Please let me know if you have any questions or concerns.

Best,
RayanP