# Google Sheets Import Error

**URL:** <https://connective.celigo.com/t/google-sheets-import-error/270>\
**Category:** Integrator.io\
**Tags:** hooks, connection, google-sheets, error-mgmt, import\
**Created:** [December 13, 2023, 7:13pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270 "2023-12-13T19:13:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [December 13, 2023, 7:13pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270/1 "2023-12-13T19:13:52Z")

</div>

I am using the marketplace template for Google sheets (using only the import in this flow) and trying to determine if this is an issue with a configuration I have, or something that is coded in the pre\_map\_hook. As you can see from my screenshot I do have a connection to the Google Sheet I am wanting to update and it is pulling in the headers from the sheet appropriately.

Any help is always appreciated!

 ![5301043caa20740200000001-187c0032255a4a0dac23794bc653fb6f.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/8/85b769ec40a62939a105a7ea2493147fcd93c3bb.png)

---

<div class="post-metadata">

**Author:** ![tylerlamparter](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/tylerlamparter/32/9204_2.png) [@tylerlamparter](https://connective.celigo.com/u/tylerlamparter)\
**Post date:** [December 13, 2023, 9:12pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270/2 "2023-12-13T21:12:52Z")

</div>

@daveguderian is the sheet on your Google sheet named "Sheet1"? Are you sure you are using the correct spreadsheet id? You can see in the script that you should only get this error if a GET call to that spreadsheet id and sheet name failed. Could also be your google connection doesn't have access to read it.

 ![5301043caa20740200000001-fbab99afe2364cc190e9a6620d2a4a6e.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/d/d1df5bb4d74818c0b7e4058fa3cef448f7bf7912.png)

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [December 14, 2023, 8:08pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270/3 "2023-12-14T20:08:14Z")

</div>

Hey Tyler-

I've been working on this most of the morning and Im still perplexed and (unfortunately) receiving the same error. I went in and rebuilt the connection, verified scopes, and rebuilt the import step. Would anything have changed in the marketplace connector by chance? Also, wouldn't it mean that my connection is okay if the Headers are being returned correctly in the import step?

 ![5301043caa20740200000001-34111a84a73d40dfbdb6403f0a27842e.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/1/11d55fbcbd6372cb06f4c7d6a0b7071f4ee03c82.png)

---

<div class="post-metadata">

**Author:** ![scotthenderson](https://sea1.discourse-cdn.com/flex001/user_avatar/connective.celigo.com/scotthenderson/32/6780_2.png) [@scotthenderson](https://connective.celigo.com/u/scotthenderson)\
**Post date:** [December 14, 2023, 9:38pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270/4 "2023-12-14T21:38:06Z")

</div>

I am going to enhance the marketplace connector to return a better error in the UI, but in the meantime you can inspect the root error if you look at the script execution logs. Go to Resources -\> Scripts -\> View execution log for the script 'Google Sheets Helper Functions'. For example:

 ![5301043caa20740200000001-2154083636bf41c3b7fa2311cc43d977.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/3/3e15cf2ff3437c16e6b463d49aabecd582dda961.png)

My suspicion is that you need to configure the 'Alias' to point to the right connection. Notice in the screenshot from Tyler that script is using an alias ("\_connectionId": "googlesheetsconnection"), and we need to do it this way to make the marketplace install work out of the box, but if you try to use the import in a different flow or integration, the alias might need to be reconfigured. I will think more about how to make this easier to understand and manage.

Flow settings:

 ![5301043caa20740200000001-ae76f80f99004f8ab3a5c9d29e31adef.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/7/7431201bc9eace7247ecff2ce3a6f5bfa1bf5210.png)

 ![5301043caa20740200000001-41ee48a3dd1648d4ac7fe54d001faedd.png](https://us1.discourse-cdn.com/flex001/uploads/celigo/original/2X/c/cab23f32d941795ee13da344ca7852427e25fad1.png)

---

<div class="post-metadata">

**Author:** ![daveguderian](https://avatars.discourse-cdn.com/v4/letter/d/ce7236/32.png) [@daveguderian](https://connective.celigo.com/u/daveguderian)\
**Post date:** [December 14, 2023, 10:54pm UTC](https://connective.celigo.com/t/google-sheets-import-error/270/5 "2023-12-14T22:54:21Z")

</div>

Scott - As usual you nailed it! That was exactly the issue. Once I updated the alias it worked perfectly. Thanks again for all your help!
