# Error with transform.Unmarshal

**URL:** https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354
**Category:** support
**Created:** [February 19, 2024, 8:59pm UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354 "2024-02-19T20:59:05Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)
#### Post date: [February 19, 2024, 8:59pm UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/1 "2024-02-19T20:59:05Z")

</div>

Getting this error when building pages from a data source with current Hugo version `0.123.0`

```auto
Error: error building site: render: failed to render pages: render of "home" failed: "C:\hugo-site\remote\data\layouts\index.html:3:25": execute of template failed: template: index.html:3:25: executing "index.html" at <transform.Unmarshal>: error calling Unmarshal: unknown format

```

```auto
{{- $URL := "<!-- remote JSON file -->" }}
{{ with resources.GetRemote $URL }}
{{ $data := . | transform.Unmarshal }}
{{ range $data.features }}
{{- with .properties }}
{{/* 1. */}} {{ $string := jsonify . }} 
{{/* 2. */}} {{ $filename := printf "data/%s.md" (urlize .Data_Name }} 
 {{/* 3. */}} {{ $resource := resources.FromString $filename $string}} 
{{/* 4. */}} {{ $file := $resource.RelPermalink }}
{{end}}
{{end}}
{{ end }}

```

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [February 19, 2024, 9:00pm UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/2 "2024-02-19T21:00:57Z")

</div>

Please provide the JSON URL, via DM if necessary.

---

<div class="post-metadata">

### Author: ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)
#### Post date: [February 19, 2024, 9:09pm UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/3 "2024-02-19T21:09:04Z")

</div>

> [@jmooring](#):
>
> via DM if necessary.

Done!

---

<div class="post-metadata">

### Author: ![jmooring](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/jmooring/32/4214_2.png) [@jmooring](https://discourse.gohugo.io/u/jmooring)
#### Post date: [February 19, 2024, 9:34pm UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/4 "2024-02-19T21:34:17Z")

</div>

Thanks. Looking into it…

---

<div class="post-metadata">

### Author: ![Arif](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/arif/32/20931_2.png) [@Arif](https://discourse.gohugo.io/u/Arif)
#### Post date: [February 20, 2024, 7:51am UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/5 "2024-02-20T07:51:32Z")

</div>

So, it builds now. It seems the issue was either a remote connection problem or my own (internet) connection.

---

<div class="post-metadata">

### Author: ![system](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.gohugo.io/system/32/1_2.png) [@system](https://discourse.gohugo.io/u/system)
#### Post date: [February 22, 2024, 7:52am UTC](https://discourse.gohugo.io/t/error-with-transform-unmarshal/48354/6 "2024-02-22T07:52:16Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
