EIA API fetch failure

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

EIA API fetch failure

Postby BT454 » Thu Dec 16, 2021 9:15 am

Good morning!
I'm receiving the attached error when trying to fetch from EIA API.
I've included the code:

Code: Select all

cd c:\warem32\
close @db
close @wf
%startrange = "1/1/2010"
%endrange=@datestr(@dateadd(@dateval(@date),1,"m"),"mm/dd/yyyy")
wfcreate(wf=winddata, page=hourly) h %startrange %endrange
dbopen eia
fetch EBA.US48-ALL.NG.WND.H EBA.CAL-ALL.NG.WND.H EBA.CENT-ALL.NG.WND.H EBA.MIDA-ALL.NG.WND.H EBA.MIDW-ALL.NG.WND.H EBA.NE-ALL.NG.WND.H EBA.NY-ALL.NG.WND.H EBA.NW-ALL.NG.WND.H EBA.TEX-ALL.NG.WND.H EBA.TEN-ALL.NG.WND.H EBA.SW-ALL.NG.WND.H EBA.SE-ALL.NG.WND.H


Any help is appreciated.
Thanks!
Attachments
wind_fail.jpg
wind_fail.jpg (37.35 KiB) Viewed 9156 times

EViews Katerina
Posts: 51
Joined: Thu Jun 25, 2015 9:54 am

Re: EIA API fetch failure

Postby EViews Katerina » Thu Dec 16, 2021 10:29 am

What version and build date of EViews are you running?
You can check by selecting Help->About EViews on EViews menu.
I believe the issue you are having has been fixed with earlier July patch of EViews 12.

BT454
Posts: 135
Joined: Wed Aug 02, 2017 6:07 am

Re: EIA API fetch failure

Postby BT454 » Thu Dec 16, 2021 11:05 am

hi there!
Thanks for the fast reply. I took a screen cap and attached it to this post. It seems to have resolved for at the moment.
Attachments
evbuild.jpg
evbuild.jpg (55.75 KiB) Viewed 9138 times

jlee32
Posts: 1
Joined: Mon Feb 14, 2022 11:24 am

Re: EIA API fetch failure

Postby jlee32 » Mon Feb 14, 2022 12:09 pm

Hey everyone, I'm actually currently having the same issue using the same code as BT454 provided. My current version is Eviews 12 with a build date of Feb 1 2022.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 20 guests