# Issue with Structure Editor Conversion Functions

**URL:** <https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990>\
**Category:** Questions\
**Created:** [September 17, 2025, 9:59am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990 "2025-09-17T09:59:30Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kosuketakeuchi0621](https://community.datagrok.ai/user_avatar/community.datagrok.ai/kosuketakeuchi0621/32/547_2.png) [@kosuketakeuchi0621](https://community.datagrok.ai/u/kosuketakeuchi0621)\
**Post date:** [September 17, 2025, 9:59am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990/1 "2025-09-17T09:59:30Z")

</div>

Dear Datagrok team,

I’m experiencing problems with the structure editing window functionality. The conversion buttons for SMILES and molblock formats are not functioning correctly.

 ![image](https://community.datagrok.ai/uploads/default/original/1X/ddd0380280eb342d34e211b42167e03aa8d23a01.png)

The target column contains SMILES strings. Please find the column property details in the attached screenshot.

 ![image](https://community.datagrok.ai/uploads/default/original/1X/f6e46536e47d23c232f397dc8b25daedcc218f60.png)

The same conversion issue occurs regardless of whether the column stores SMILES or molblock format data.

Best regards,

Kosuke

---

<div class="post-metadata">

**Author:** ![drizhinashvili](https://community.datagrok.ai/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@drizhinashvili](https://community.datagrok.ai/u/drizhinashvili)\
**Post date:** [September 17, 2025, 10:16am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990/2 "2025-09-17T10:16:41Z")

</div>

Hey Kosuke!

Can you please specify what sort of problem are you experiencing? is it not converting notation? or are there any errors?

Davit

---

<div class="post-metadata">

**Author:** ![kosuketakeuchi0621](https://community.datagrok.ai/user_avatar/community.datagrok.ai/kosuketakeuchi0621/32/547_2.png) [@kosuketakeuchi0621](https://community.datagrok.ai/u/kosuketakeuchi0621)\
**Post date:** [September 17, 2025, 11:13am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990/3 "2025-09-17T11:13:33Z")

</div>

Dear Davit,

Thank you for commenting on my issue.

I’m experiencing a problem where no information is copied when clicking either `Copy as SMILES` or `Copy as MOLBLOCK`.

I found the following error messages in the console:

> 2025-09-17T11:08:21.566Z Cannot read properties of undefined (reading ‘writeText’)  
> [webpack://datagrok-api/src/chem.ts 530:61](https://github.com/datagrok-ai/public/blob/33ee12e736e062bf30cce0bb945fb4d79e4d37a0/js-api/src/chem.ts#L530)  
> [packages/d4/src/events.dart 585:7](https://bitbucket.org/skalkin/reddata/src/dd099e1920c6525bcbb6940eb263c85d0c85f447/d4/lib/src/events.dart#lines-585) AppEvents.contextRun  
> [packages/d4/src/widgets/menu/menu.dart 122:7](https://bitbucket.org/skalkin/reddata/src/dd099e1920c6525bcbb6940eb263c85d0c85f447/d4/lib/src/widgets/menu/menu.dart#lines-122) MenuItem.click  
> [packages/d4/src/widgets/menu/menu.dart 187:33](https://bitbucket.org/skalkin/reddata/src/dd099e1920c6525bcbb6940eb263c85d0c85f447/d4/lib/src/widgets/menu/menu.dart#lines-187) MenuItem.\_init.  
> packages/$sdk/lib/html/dart2js/html\_dart2js.dart 42920:48 \_EventStreamSubscription.  
> packages/$sdk/lib/\_internal/js\_runtime/lib/js\_helper.dart 2456:48 invokeClosure.  
> packages/$sdk/lib/\_internal/js\_runtime/lib/isolate\_helper.dart 474:16 \_IsolateContext.eval  
> packages/$sdk/lib/\_internal/js\_runtime/lib/isolate\_helper.dart 59:16 \_callInIsolate  
> packages/$sdk/lib/\_internal/js\_runtime/lib/js\_helper.dart 2456:14 invokeClosure  
> packages/$sdk/lib/\_internal/js\_runtime/lib/js\_helper.dart 2476:14 convertDartClosureToJS

Could you please help me resolve this issue?

Best regards,

Kosuke

---

<div class="post-metadata">

**Author:** ![drizhinashvili](https://community.datagrok.ai/letter_avatar_proxy/v4/letter/d/4da419/32.png) [@drizhinashvili](https://community.datagrok.ai/u/drizhinashvili)\
**Post date:** [September 17, 2025, 11:49am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990/4 "2025-09-17T11:49:13Z")

</div>

I see, thank you for the details.

It seems that in the browser you are using, `navigator.clipboard` is not available.

This can be due to various security reasons, which prohibit any web app from using the clipboard and modifying it.

Are you using HTTPS for your server? using unsecure HTTP can cause unavailability of clipboard API. In simple terms, browser is prohibiting Datagrok from copying anything to clipboard, probably because of HTTP. Bellow is the link to similar discussion on stackoverflow:

> <https://stackoverflow.com/questions/51805395/navigator-clipboard-is-undefined>

If you are using HTTP and internally this is fine, what you can try is to set the chrome flag such that it knows your Address for Datagrok is secure:

```auto
chrome://flags/#unsafely-treat-insecure-origin-as-secure

```

I hope this helps.

Davit.

---

<div class="post-metadata">

**Author:** ![kosuketakeuchi0621](https://community.datagrok.ai/user_avatar/community.datagrok.ai/kosuketakeuchi0621/32/547_2.png) [@kosuketakeuchi0621](https://community.datagrok.ai/u/kosuketakeuchi0621)\
**Post date:** [September 17, 2025, 11:58am UTC](https://community.datagrok.ai/t/issue-with-structure-editor-conversion-functions/990/5 "2025-09-17T11:58:53Z")

</div>

Dear Davit,

Thank you for sharing how to solve it.

Now I can copy SMILES and MOLBLOCK by setting chrome property.

I really appreciate it.

Best,

Kosuke
