# Picking problem after updating to latest Cesium

**URL:** <https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081>\
**Category:** CesiumJS\
**Created:** [March 2, 2015, 5:48pm UTC](https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081 "2015-03-02T17:48:36Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergio\_Flores](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sergio\_Flores](https://community.cesium.com/u/Sergio_Flores)\
**Post date:** [March 2, 2015, 5:48pm UTC](https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081/1 "2015-03-02T17:48:36Z")

</div>

We’re using Cesium 1.3 until now, and I now tried to upgrade to 1.6

Now all picking code is broken, when drillPick() is called there is an exception:  
Uncaught DeveloperError: id is required

IDs are required now for picking?  
I did not find anything in the change log related to this.

I tried passing a custom id to my primitives, however it is not working…  
I tried adding an id to a constructor both in a GeometryInstance and a Primitive, none seem to work!

Also I checked the constructor of the primitive, found no code there related to getting a id from arguments and storing it on the instance fields.

Also I looked at the sandcastle picking sample, found no custom IDs in the primitives creation code, why?

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [March 3, 2015, 10:01pm UTC](https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081/2 "2015-03-03T22:01:45Z")

</div>

Can you please post a complete Sandcastle example that shows the problem?

---

<div class="post-metadata">

**Author:** ![Matt\_Amato](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/matt_amato/32/1993_2.png) [@Matt\_Amato](https://community.cesium.com/u/Matt_Amato)\
**Post date:** [March 3, 2015, 10:12pm UTC](https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081/3 "2015-03-03T22:12:02Z")

</div>

Never mind, I found the problem. This was indeed a bug introduced while fixing another picking related bug. Thanks for the report.

You can work around the issue by specifying an id, here’s a code snippet that does that: [https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Specs/Scene/PickSpec.js#L172](https://github.com/AnalyticalGraphicsInc/cesium/blob/master/Specs/Scene/PickSpec.js#L172)

---

<div class="post-metadata">

**Author:** ![Sergio\_Flores](https://avatars.discourse-cdn.com/v4/letter/s/bbce88/32.png) [@Sergio\_Flores](https://community.cesium.com/u/Sergio_Flores)\
**Post date:** [March 3, 2015, 11:14pm UTC](https://community.cesium.com/t/picking-problem-after-updating-to-latest-cesium/2081/4 "2015-03-03T23:14:06Z")

</div>

Yes, I was able to make it work, thanks 🙂
