# HTML Type Provider type error after web page change

**URL:** <https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406>\
**Category:** General\
**Created:** [August 14, 2020, 1:13pm UTC](https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406 "2020-08-14T13:13:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![kevinmcfarlane](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/kevinmcfarlane/32/388_2.png) [@kevinmcfarlane](https://forums.fsharp.org/u/kevinmcfarlane)\
**Post date:** [August 14, 2020, 1:13pm UTC](https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406/1 "2020-08-14T13:13:01Z")

</div>

Please refer to [https://github.com/kevinmcfarlane/CoronavirusAnalyser](https://github.com/kevinmcfarlane/CoronavirusAnalyser)

You should be able to download and try it.

See Program.fs.

It’s pointing at [https://www.worldometers.info/coronavirus/](https://www.worldometers.info/coronavirus/)

This used to work a few months ago but now falls over at line 22.

“Expecting Decimal in Total Cases, got North America”

That first row of continents never used to be there, but I’ve no idea how to get around that.

---

<div class="post-metadata">

**Author:** ![FoggyFinder](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/foggyfinder/32/136_2.png) [@FoggyFinder](https://forums.fsharp.org/u/FoggyFinder)\
**Post date:** [August 15, 2020, 6:04am UTC](https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406/3 "2020-08-15T06:04:39Z")

</div>

When I tried to compile I got different error:

[Here](https://github.com/kevinmcfarlane/CoronavirusAnalyser/blob/master/CoronavirusAnalyser/Program.fs#L44)

```auto
(getDouble newDeaths)

```

error:

```
error FS0001: This expression was expected to have type
    'float'
but here has type
    'Nullable<int>'

```

[FS0001](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/compiler-messages/fs0001)

that is easy to fix:

```auto
(newDeaths.GetValueOrDefault() |> float)

```

Anyway they added “tabs” to the main table (“Europe”,“North America”,“Asia”,“South America”,“Africa”,“Oceania”) that’s probably what affected most. So to get correct csv it have to be taken into account.

---

<div class="post-metadata">

**Author:** ![kevinmcfarlane](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/kevinmcfarlane/32/388_2.png) [@kevinmcfarlane](https://forums.fsharp.org/u/kevinmcfarlane)\
**Post date:** [August 15, 2020, 2:42pm UTC](https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406/4 "2020-08-15T14:42:25Z")

</div>

Mine compiles as is but just falls over at line 22. So I can’t even get as far as your error.

Previously I’ve had to play around with types when the data in one or more columns has subtly changed.

---

<div class="post-metadata">

**Author:** ![kevinmcfarlane](https://yyz2.discourse-cdn.com/flex030/user_avatar/forums.fsharp.org/kevinmcfarlane/32/388_2.png) [@kevinmcfarlane](https://forums.fsharp.org/u/kevinmcfarlane)\
**Post date:** [September 7, 2020, 2:00pm UTC](https://forums.fsharp.org/t/html-type-provider-type-error-after-web-page-change/1406/5 "2020-09-07T14:00:55Z")

</div>

When I tried running this again the other day it ran without error, even though I hadn’t changed my code. However, the output was screwed up due to an extra starting column and a new inserted column. I fixed that and it’s now [OK](https://github.com/kevinmcfarlane/CoronavirusAnalyser/blob/master/CoronavirusAnalyser/Program.fs) - _until the next time the table changes_!
