As of today, I am getting a failure notification for Yahoo Intraday update script. It all worked fine yesterday. Is anyone else experiencing this problem?
It is not working for me either. It seems the search strings are found when I look through my web browser, so perhaps Yahoo is preventing script access somehow.
For Exchange rates (.bat error): Cannot convert value "USD" to type "System.Int32". Error: "Input string was not in a correct format." At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:28 char:35 + ... eqFailed++; " " + $currFrom-$currTo + " - Not Found (web err) `r`n" ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [], RuntimeException + FullyQualifiedErrorId : InvalidCastFromStringToInteger
You cannot call a method on a null-valued expression. At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC V2\PSDataExtract\Scripts\psFunctions.ps1:63 char:5 + if($txt.Contains($startTxt)) { + ~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidOperation: (:) [], RuntimeException + FullyQualifiedErrorId : InvokeMethodOnNull
Cannot convert value "CAD" to type "System.Int32". Error: "Input string was not in a correct format." At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:28 char:35 + ... eqFailed++; " " + $currFrom-$currTo + " - Not Found (web err) `r`n" ... + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + CategoryInfo : InvalidArgument: (:) [], RuntimeException + FullyQualifiedErrorId : InvalidCastFromStringToInteger
S&P equity symbol intraday downloads are not working either. I noticed the web page changed the download string to "data-value" from "value", but upon making the change in the script, the download still does not work as indicated in the log file.
18:01:09 --- Starting script GetQuotes-YahooIntraday.ps1 Symbol count: 100. MinDate: 2023-03-31 Symbol: SQQQ. Next date: 2024-03-06. Quote file: C:\PortfolioSlicer\Quotes\_SQQQ_.txt Requesting url: https://finance.yahoo.com/quote/SQQQ ** For Symbol: SQQQ start string 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" data-value="' not found.
** For Symbol: SQQQ start string 'data-field="regularMarketPrice" data-trend="none" data-pricehint="4" data-value="' not found.
** For Symbol: SQQQ start string ',"currentPrice":{"raw":' not found.
Comments
example from log:
Requesting url: https://finance.yahoo.com/quote/ZRE.TO
ZRE.TO - Not Found (web err)
Yet the link seems to work fine if I click on it.
For Intraday Quotes (log error):
Requesting url: https://finance.yahoo.com/quote/CP.TO
CP.TO - Not Found (web err)
For Exchange rates (.bat error):
Cannot convert value "USD" to type "System.Int32". Error: "Input string was not in a correct format."
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC
V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:28 char:35
+ ... eqFailed++; " " + $currFrom-$currTo + " - Not Found (web err) `r`n" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvalidCastFromStringToInteger
Exception calling "GetString" with "1" argument(s): "Array cannot be null.
Parameter name: bytes"
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC
V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:29 char:13
+ $str = [System.Text.Encoding]::ASCII.GetString($webpage); ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException
You cannot call a method on a null-valued expression.
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC V2\PSDataExtract\Scripts\psFunctions.ps1:63
char:5
+ if($txt.Contains($startTxt)) {
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
Cannot convert value "CAD" to type "System.Int32". Error: "Input string was not in a correct format."
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC
V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:28 char:35
+ ... eqFailed++; " " + $currFrom-$currTo + " - Not Found (web err) `r`n" ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvalidCastFromStringToInteger
Exception calling "GetString" with "1" argument(s): "Array cannot be null.
Parameter name: bytes"
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC
V2\PSDataExtract\Scripts\GetExchRates-YahooIntraday.ps1:29 char:13
+ $str = [System.Text.Encoding]::ASCII.GetString($webpage); ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ArgumentNullException
You cannot call a method on a null-valued expression.
At E:\My Docs\Personal\Financial\Investments\PortfolioSlicerV3.0.0\ABC V2\PSDataExtract\Scripts\psFunctions.ps1:63
char:5
+ if($txt.Contains($startTxt)) {
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull
18:01:09 --- Starting script GetQuotes-YahooIntraday.ps1
Symbol count: 100. MinDate: 2023-03-31
Symbol: SQQQ. Next date: 2024-03-06. Quote file: C:\PortfolioSlicer\Quotes\_SQQQ_.txt
Requesting url: https://finance.yahoo.com/quote/SQQQ
** For Symbol: SQQQ start string 'data-field="regularMarketPrice" data-trend="none" data-pricehint="2" data-value="' not found.
** For Symbol: SQQQ start string 'data-field="regularMarketPrice" data-trend="none" data-pricehint="4" data-value="' not found.
** For Symbol: SQQQ start string ',"currentPrice":{"raw":' not found.
** For Symbol: SQQQ new quotes not found.
** For Symbol: CP.TO new quotes not found (there is no 'active="" data-reactid="29">' in html that came back)