# Callback Function Error from query of dynamic components

**URL:** <https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662>\
**Category:** Dynamic Components\
**Tags:** advice\
**Created:** [February 22, 2022, 8:04pm UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662 "2022-02-22T20:04:10Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Drewski](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Drewski](https://forums.sketchup.com/u/Drewski)\
**Post date:** [February 22, 2022, 8:04pm UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/1 "2022-02-22T20:04:11Z")

</div>

Please help resolve error(s) that prevent Sketchup Make 2017 from editing dynamic components. After selecting the dynamic component and right clicking it, then selecting “Dynamic Components” and then “Component Options”, the errors I receive are:

**Message from Webpage**  
**ERROR: Callback function error: Object doesn’t support property or method ‘attachEvent’ @ /dcbridge.js(601) and:**

**ERROR: Callback function error: Object doesn’t support property or method ‘attachment’ @ /dcbridge.js(601)**

Also, the Component Options window is blank.  
 ![Blank Component Options](https://global.discourse-cdn.com/sketchup/original/3X/1/3/131bb042f6c9f318735ec29566677e02f22ab18a.jpeg)

I have tried the following to resolve the issue without success.

Updated the Dynamic Components Extension to the current file in the Extension Warehouse.

 ![su_dynamiccomponents-1.8.2.rbz](https://global.discourse-cdn.com/sketchup/original/3X/f/7/f70b8fa260ed1d9b50265393573415f2c40a3760.jpeg).

Searched for file names that begin with a lower case “u” and did not find any.

Tested the behavior with many different dynamic components from various sources and all failed.

Tested the behavior in an old version of Sketchup 2014 and found the same error(s).

Repaired the 2017 installation file.

During many years of using Sketchup I have never seen this until a few days ago.

I wondered if uninstalling and reinstalling 2017 would solve the issue but hesitated when I couldn’t find specific instructions to do that.

My work is suffering as a result of this and I would really like some help.

Thanks in advance

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [February 22, 2022, 10:13pm UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/2 "2022-02-22T22:13:15Z")

</div>

> [@Drewski](#):
>
> Searched for file names that begin with a lower case “u” and did not find any.

How about folder names? Windows documents folder? Just saw someone’s screenshot with “users”  
/u is not the only forbidden sequence.

> [@Drewski](#):
>
> My work is suffering as a result of this and I would really like some help.

You are not allowed to use SketchUp Make for your work. You need to be using Pro.

---

<div class="post-metadata">

**Author:** ![Drewski](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Drewski](https://forums.sketchup.com/u/Drewski)\
**Post date:** [February 24, 2022, 9:12pm UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/3 "2022-02-24T21:12:10Z")

</div>

> [@Anssi](#):
>
> How about folder names? Windows documents folder? Just saw someone’s screenshot with “users”  
> /u is not the only forbidden sequence.

I checked folders and other potential problem strings and didn’t find any.

> [@Anssi](#):
>
> You are not allowed to use SketchUp Make for your work. You need to be using Pro.

My work is strictly non-commercial.

Can anyone help me figure this out?

---

<div class="post-metadata">

**Author:** ![DanRathbun](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/danrathbun/32/500_2.png) [@DanRathbun](https://forums.sketchup.com/u/DanRathbun)\
**Post date:** [February 24, 2022, 9:25pm UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/4 "2022-02-24T21:25:16Z")

</div>

Open the Ruby Console before you open any of the DC dialogs and see if there are any errors displayed.

---

<div class="post-metadata">

**Author:** ![tpdes](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tpdes/32/2377_2.png) [@tpdes](https://forums.sketchup.com/u/tpdes)\
**Post date:** [March 21, 2022, 7:00am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/5 "2022-03-21T07:00:32Z")

</div>

Apparently, I have come across a similar problem.

I was messing around and decided to make a component (dynamic) that I could scale in just one axes. This is something I often do with framing lumber, steel shapes, etc.  
I had made a component of a shallow electric box and as the model that contained the component isn’t anything critical, I figured I’d mess around with making that a DC out of it (Step 1 in attached image). But when I clicked on the “Create and customize …” green boxes and triangle icon (Step 2), I get this weird error popup (Step 3) and when I click the to close that error popup, I get another weird error popup (Step 4) in 2nd attached image.

 ![2022-03-20 1](https://global.discourse-cdn.com/sketchup/original/3X/5/3/5317a1ab43c8e2a3f6dd8f11b617de03be692928.png)  
 ![2022-03-20 2](https://global.discourse-cdn.com/sketchup/original/3X/0/3/03fbe26956e4062d07f9520724d253666a6fdfd1.png)

Although the images attached show the effect in Verson 2021, the original model containing the component was made in version 2022 where I experienced the weird error popups initially. I opened the model in version 2021 to see if the problem was unique to 2022, but apparently not.

I opened a new empty model, created a cube, made that cube into a component and tried to make that a DC. Success. No problems at all. Back in the model with the shallow box component, creating a cube and making it into a component brings forth the errors. I saved the shallow box component to disk, opened it in a new, empty drawing, and the DC command works.

What’s wrong with my model, and how did I get to the point where in that file, I can’t make a DC?

[undershelf outlets.skp](https://forums.sketchup.com/uploads/short-url/bTOERNKBP7b0TPiKC7Wxee7PDmp.skp) (75.7 KB)

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [March 21, 2022, 9:20am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/6 "2022-03-21T09:20:12Z")

</div>

do not use “u” for start of file. rename it “an undershelf outlet” or something

---

<div class="post-metadata">

**Author:** ![tpdes](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/tpdes/32/2377_2.png) [@tpdes](https://forums.sketchup.com/u/tpdes)\
**Post date:** [March 22, 2022, 3:55am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/7 "2022-03-22T03:55:52Z")

</div>

Really? That an idiosyncrasy of a file name causes the errors is difficult for me to process. Your solution works, but why? Please explain.

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [March 22, 2022, 4:58am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/8 "2022-03-22T04:58:03Z")

</div>

> [@ERROR: callback function error Dynamic Components](https://forums.sketchup.com/t/error-callback-function-error-dynamic-components/23193/20):
>
> Ah … okay … Jim shows that the cause was discovered a year ago … and why this happens … ( Thanks @jim_foltz ) Basically more attention to details when dealing with pathstring separator in Windows file paths is required, and extreme care in the use of double-quoted strings for paths. In the code I write I always convert "\" to "/" immediately with Window filepaths, so that I don’t get mistaken escaped characters, in this case the "\u" for a unicode character sequence. In the past I’ve often…

I don’t no why, but if only a small amount of effort was diverted from live components to dynamic, I sure these crazy workarounds would not be needed

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [March 22, 2022, 7:15am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/9 "2022-03-22T07:15:38Z")

</div>

> [@pcmoor](#):
>
> I sure these crazy workarounds would not be needed

I understand that most of these stem from that Dynamic Components is not in the native SketchUp code but is a Ruby extension.

---

<div class="post-metadata">

**Author:** ![pcmoor](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/pcmoor/32/3427_2.png) [@pcmoor](https://forums.sketchup.com/u/pcmoor)\
**Post date:** [March 22, 2022, 7:38am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/10 "2022-03-22T07:38:20Z")

</div>

yes, I believe that’s true, but if other extensions can have cleaner code why not a Trimble authorised one?

---

<div class="post-metadata">

**Author:** ![Anssi](https://sea2.discourse-cdn.com/sketchup/user_avatar/forums.sketchup.com/anssi/32/105_2.png) [@Anssi](https://forums.sketchup.com/u/Anssi)\
**Post date:** [March 22, 2022, 7:57am UTC](https://forums.sketchup.com/t/callback-function-error-from-query-of-dynamic-components/190662/11 "2022-03-22T07:57:52Z")

</div>

Dunno. Been complaining about these since DC-s were introduced, was it in version 4, not quite sure.
