How to solve the "Method invocation failed" error in script?
Hello,
I'm trying to modify the script that enumerates all the txt (csv) files on folder and deletes empty columns, but with no luck. The script is working when I execute it on single csv file. But when I put script on loop, it generates errors:
Method invocation failed because [System.Management.Automation.PSCustomObject] does not contain a method named 'split'.
At C:\scripts\populate.ps1:25 char:1
+ $b = $line.split(",")
+ ~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (split:String) [], RuntimeException
+ FullyQualifiedErrorId : MethodNotFound
The script looks the following:
$files = Get-ChildItem C:\scripts\Results\csv\* -include *.txt
#Process files by performing a search and replace
foreach ($infile in $files)
$infilen = 'C:\scripts\Results\csv\'+[io.path]::GetFileName($infile)
$infile = import-csv $infilen
##remove blank coloumns##
$cStore = @() # array to store used column numbers
$rNumber = 0
foreach ($line in $infile)
if ($rNumber -eq 0)
{# ignore header
else
$b = $line.split(",")
$fieldNum = 0
foreach ($field in $b)
if ($field -ne '')
if ($cStore -notcontains $fieldNum) {$cStore += $fieldNum}
$fieldNum += 1
$rNumber +=1
# array $cStore now contains column numbers with values
$cStore = $cStore | sort
foreach ($line in $infile)
$nLine = ""
$c = $line.split(",")
foreach ($ar in $cStore)
$nLine += $c[$ar]+","
# remove trailing ,
$nLine = $nLine.Substring(0, $nLine.Length-1)
$fnFriendly = [io.path]::GetFileNameWithoutExtension($infile)
$result=$fnFriendly+'cl.txt'
Write-Output $nLine >> $result
Also I have found the explanation on this error on this
link but it seems this is not the case. Can you help to solve this?
Thanks!
You are importing a CSV file which implies that you are creating an object (pscustomobject) and each item in that object is represented by $line. The issue is that this $line has multiple properties (for each column of the CSV) that you need to decide
on which one to split:
$c = $line.propertyname.split(",")
I'm not sure, but it seems that if you are trying to split by a comma, then maybe you are assuming that you did something similar to a
get-content on the file in which the original approach that you have done would work.
Boe Prox
Blog |
Twitter
PoshWSUS |
PoshPAIG | PoshChat |
PoshEventUI
PowerShell Deep Dives Book
Similar Messages
-
How to solve the smart hard disk error?
I got error message from my smart hard disk also failed hard disk test tried to solve some I know step but I couldn't it boot and get back yet need your help right the way,please help me
The only way to "solve" it is to get a new hard drive. SMART error messages mean what they say.
-
how to solve the warning and severe error....................
[oracle@ip-********* Oracle11g_R2]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Mar 29, 2012 10:20:41 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: testdb11g3
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log.
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed.
Mar 29, 2012 10:22:13 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM
Configuration Assistant again .
Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log for more details.
Could not complete the configuration. Refer to the log file at
/u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_22_20_40.log for more details.
[oracle@ip-******* Oracle11g_R2]$ cdtried but getting the same error.............
[oracle@ip-10-68-199-69 oracle]$ lsnrctl start
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 29-MAR-2012 23:37:21
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Starting /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/bin/tnslsnr: please wait...
TNSLSNR for Linux: Version 11.2.0.1.0 - Production
System parameter file is /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/network/admin/listener.ora
Log messages written to /u02/oracle/Oracle11g_R2/diag/tnslsnr/ip-10-68-199-69/listener/alert/log.xml
Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 29-MAR-2012 23:37:21
Uptime 0 days 0 hr. 0 min. 0 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u02/oracle/Oracle11g_R2/product/11.2.0/dbhome_1/network/admin/listener.ora
Listener Log File /u02/oracle/Oracle11g_R2/diag/tnslsnr/ip-10-68-199-69/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=127.0.0.1)(PORT=1521)))
The listener supports no services
The command completed successfully
[oracle@ip-10-68-199-69 oracle]$ sqlplus
SQL*Plus: Release 11.2.0.1.0 Production on Thu Mar 29 23:37:34 2012
Copyright (c) 1982, 2009, Oracle. All rights reserved.
Enter user-name: sys/Ashwin
ERROR:
ORA-28009: connection as SYS should be as SYSDBA or SYSOPER
Enter user-name: sys/Ashwin as sysdba
Connected to:
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
SQL> startup
ORA-01081: cannot start already-running ORACLE - shut it down first
SQL> shutdown abort
ORACLE instance shut down.
SQL> startup
ORACLE instance started.
Total System Global Area 1603411968 bytes
Fixed Size 2213776 bytes
Variable Size 402655344 bytes
Database Buffers 1191182336 bytes
Redo Buffers 7360512 bytes
Database mounted.
Database opened.
SQL> exit
SQL> exit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
[oracle@ip-10-68-199-69 oracle]$ emca -deconfig dbcontrol db -repos drop
STARTED EMCA at Mar 29, 2012 11:55:28 PM
EM Configuration Assistant, Version 11.2.0.0.2 Production
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Enter the following information:
Database SID: testdb11g3
Listener port number: 1521
Password for SYS user:
Password for SYSMAN user:
Do you wish to continue? [yes(Y)/no(N)]: y
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMConfig perform
INFO: This operation is being logged at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log.
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMDBPreConfig performDeconfiguration
WARNING: EM is not configured for this database. No EM-specific actions can be performed.
Mar 29, 2012 11:55:57 PM oracle.sysman.emcp.EMConfig perform
SEVERE: Listener is not up or database service is not registered with it. Start the Listener and register database service and run EM Configuration Assistant again .
Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log for more details.
Could not complete the configuration. Refer to the log file at /u02/oracle/Oracle11g_R2/cfgtoollogs/emca/testdb11g3/emca_2012_03_29_23_55_27.log for more details. -
How to solve the issue "CUV check user equivalence failed" ?
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer according to the website http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
In order to install Grid Infrastructure, we need to run Cluster Utility Verification (CUV) at first by running the cammand below:
[ora11g@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
Its output:
Performing pre-checks for cluster services setup
Check: User equivalence for user “ora11g”
Node Comment
rac1 failed
rac2 failed
Result: PRVF-4007 : User equivalence check failed for user “ora11g”
ERROR:
User equivalence unavailable on all the specified nodes
Verification cannot proceed
Pre-check for cluster services setup was unsuccessful on all the nodes.
As you see above, check user equivalence failed. I have run the 4 commands to fix this error as below:
[ora11g@rac1 /]$ ssh-keygen
Its output:
Generating public/private rsa key pair.
Enter file in which to save the key (/home/grid/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/grid/.ssh/id_rsa.
Your public key has been saved in /home/grid/.ssh/id_rsa.pub.
The key fingerprint is:
0c:10:6c:3b:ae:21:63:64:f8:0d:0e:d8:f0:41:32:ff [email protected]
[ora11g@rac1 .ssh]$ cat *pub >>authorized_keys
[ora11g@rac1 .ssh]$ ssh rac1
Its output:
The authenticity of host ‘rac1 (127.0.0.1)’ can’t be established.
RSA key fingerprint is 9d:ae:51:7c:72:81:07:37:31:92:f1:c8:90:bc:52:55.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘rac1′ (RSA) to the list of known hosts.
Write failed: Broken pipe.
[ora11g@rac1 .ssh]$ ssh rac1-priv
Its output:
The authenticity of host ‘rac1-priv (192.168.137.35)’ can’t be established.
RSA key fingerprint is 9d:ae:51:7c:72:81:07:37:31:92:f1:c8:90:bc:52:55.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added ‘rac1-priv,192.168.137.35′ (RSA) to the list of known hosts.
Write failed: Broken pipe.
After run the 4 commands above, I run the command below again:
[ora11g@rac1 grid]$ ./runcluvfy.sh stage -pre crsinst -n rac1,rac2 -verbose
Its output is the same:
PRVF-4007 : User equivalence check failed for user “ora11g”
ERROR:
User equivalence unavailable on all the specified nodes
Verification cannot proceed
I think the problem is "Broken pipe" and ssh cannot write authorized_keys to the machines.
My question is:
Do any folk understand how to solve the issue CUV "check user equivalence failed" for 2 VMs ?
Thanks.Folks,
Hello. Thanks a lot for replying.
I have installed Grid Infrastructure a few times. Each time, on step 7 of 9, the installer fixes and checks 2 machines correctly. The entire installation has 3 parts as below:
1) Install Grid Infrastructure for a Cluster
2) Execute Root Scripts for Install Grid Infrastructure for a Cluster (script is root.sh)
3) Configure Oracle Grid Infrastructure for a Cluster that includes NCA, ASMCA, PICA and CVU.
Each time, on step 8 of 9, the Installer installs Grid Infrastructure for a Cluster successfully that includes "Prepare, Copy files, Link binaries, Setup files and Perform remote operations".
But when the Installer get to part 3 CVU, it fails and then the Database cannot be installed.
Deinstall Grid is a very complicated process to do. Because of this reason, we need to run CVU at first to make sure everything is correct for 2 machines before install Grid.
Even we ignore "user equivalence (ssh)", we don't know whether other items can be passed or not because CVU cannot proceed to check the machines.
My question is:
How to have the script "runcluvfy.sh" continue to check the machines while confronting "user equivalence failed" ? -
How to solve the issue "OEL 5.6 boot Oracle ASMLib driver: FAILED" ?
Folks,
Hello. I am installing Oracle 11gR2 RAC using 2 VMs (rac1 and rac2) whose OS are Oracle Linux 5.6 in VMPlayer.
I downloaded Oracle Linux 5.6 Media Pack for x86_64 (file name V24479-01) from https://edelivery.oracle.com/linux.
I have installed OEL 5.6 for VM rac1 and done the follows:
1) install rpm and oracleasm packages for rac1.
2) edit /etc/hosts to set up IP addresses for eth0 and eth1 for rac1 and rac2.
3) edit eth0 and eth1 for rac1 by using command [root@rac1 \]# neat
But when boot the OS, I see "initializing Oracle ASMLib driver: FAILED".
When configure Oracle ASM library driver by running the command:
[root@rac1 /]#/etc/init.d/oracleasm configure -i
Its output "initializing Oracle ASMLib driver: FAILED"
I think the reason is the OS cannot initialize Oracle ASMLib driver. My question is:
Do any folk understand how to solve the issue "OEL 5.6 boot Oracle ASMLib driver: FAILED" ?
Thanks.Folks,
Hello. Thanks a lot for replying. OEL 5.6 comes with 2 kernels: uek and red hat
I have chosen to use red hat kernel for 64-bit. I run the following command:
[root@rac1 /]# uname -rm
Output: 2.6.18-238.el5x86_64
I have downloaded 4 files for this version of kernel from
http://www.oracle.com/technetwork/server-storage/linux/downloads/rhel5-084877.html as below:
oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5-debuginfo-2.0.5-1.el5.x86_64.rpm
oracleasm-2.6.18-238.el5-2.0.5-1.el5.x86_64.rpm
I have installed the 4 files and got the error messages for the first 2 files as below:
[root@rac1 /]# rpm -ivh /home/oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
Error: Failed dependencies: kernel-xen=2.6.18-238.el5 is needed by oracleasm-2.6.18-238.el5xen-2.0.5-1.el5.x86_64.rpm
[root@rac1 /]# rpm -ivh /home/oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
Error: Failed dependencies: kernel-debug=2.6.18-238.el5 is needed by oracleasm-2.6.18-238.el5debug-2.0.5-1.el5.x86_64.rpm
The last 2 files have been installed successfully. But when reboot Oracle Linux Server-Base 2.6.18-238.el5, I still see :
"Initializing ASMLib driver: FAILED."
[root@rac1 /]#/etc/init.d/oracleasm configure -i
Its output "initializing Oracle ASMLib driver: OK "
My questions are:
Does the issue OS "Initializing Oracle ASMLib driver: FAILED" have effect later ? Do we need to solve it ?
Thanks. -
HOW TO SOLVE THE R6034 ERROR IN ITUNES INSTALATION
I need toknow how to solve the R6034 error in itunes instalation becouse y can´t buk up muy phone
How to solve this ?
#import <UIKit/UIKit.h>
int main(int argc, char *argv[]) {
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
-> int retVal = UIApplicationMain(argc, argv, nil, nil);
[pool release];
return retVal; -
how to solve the problem when opening program illustrator cs6
ERROR: 16
It is WINDOWS 8.1 / 64 BIT
help pleaseThanks, Jeff! The file Adobe Setup Error.log contains the following information:
02/14/14 07:20:26:474 | [INFO] | | OOBE | DE | | | | 8860 | DEVersion: 5.0.0.0
02/14/14 07:20:26:475 | [INFO] | | OOBE | DE | | | | 8860 | Loading library from C:\Program Files (x86)\Common Files\Adobe\OOBE\PDApp\DECore\DE5\Setup.dll
[ 8860] Fri Feb 14 07:20:26 2014 INFO
::START TIMER:: [Total Timer]
CHECK: Single instance running
CHECK : Credentials
Load Deployment File
CHECK : Another Native OS installer already running
Create Required Folders
Assuming uninstall mode
Lookup for master payload
[ 8860] Fri Feb 14 07:20:26 2014 ERROR
DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
[ 8860] Fri Feb 14 07:20:26 2014 INFO
:: END TIMER :: [Total Timer] took 6.90443 milliseconds (0.00690443 seconds) DTR = 579.338 KBPS (0.56576 MBPS)
-------------------------------------- Summary --------------------------------------
- 0 fatal error(s), 1 error(s), 0 warning(s)
ERROR: DW040: The product "{893B3B44-0A1E-404B-8FE8-0A74509102A9}" is not installed. Cannot proceed with the uninstall
Please search the above error/warning string(s) to find when the error occurred.
These errors resulted in installer Exit Code mentioned below.
Exit Code: 33 - The product is not installed, cannot uninstall.
Please see specific errors and warnings for troubleshooting. For example, ERROR: DW040 ... -
How To solve the error FJS 0012 during installation IDES4.7
Hi,
I got an error FJS00012 during installation of IDES4.7. How to solve the problem? is there any way to solve the problem..... please suggest me.... and send a mail to [email protected]..
regards
SankarPlease post the relevant parts of the logfile, I don'T think, someone here knows all the error messages out of his head..
Markus -
How to solve the error "The specified resource is reserved" when running with DAQmx And LabVIEW?
I hate "J term"
OK I love the learning the students get. And, I like helping them out! But, as a former man who's got the varicose viens to prove he's spent time "behind the podium" (yeah, "behind the podium" puts 'em to sleep- songs and dances for the young'uns) come on! USE the tools you teach!
Instructors invited to engage in the forums
Jeff -
How to solve the error no sid found?
how to solve the error no sid found?
Hi,
The system will give you the error like this.. No SID found for value '0000030016 ' of characteristic "CUSTOMER"
Go to Customer infosource give the selection "'0000030016" and load the master data. And then update the transaction data from PSa if not reload it.
Assign points if helps
Regards
srini -
How to solve the error sid missing?
how to solve the error sid missing?
Hi,
Loading data sometimes you get SID error inconsistencies on master data, do a combined test by using TCODE RSRV on the infoobject, fix then problem and reload data.
Hope it useful.
Thanks,
Somesh. -
Hello, icloud receive messages from gilly hicks, but does not receive messages from another personal account... this is happening me since one week and i dont know how to solve this.... error in the mail delivery system says not valid IPv4
SMTP error from remote mail server after RCPT TO:<[email protected]>:
host mx6.me.com.akadns.net [17.158.8.114]: 550 5.7.0 Blocked - see https://support.proofpoint.com/dnsbl-lookup.cgi?ip=184.173.9.56:
[email protected]
i do alse receive from gmail....
please help... what is happening!!!!Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app. I am certain other applications also need this information. Although lengthy, I could not find a more comprehensive place to retrieve this information. Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
How to solve the problem of "promotion failed"
Hello,
I am new to JVM tuning, could anybody help me and explain how to solve a problem of "promotion failed" as following? (Java 1.6 and the JVM options: -XX:+UseConcMarkSweepGC -XX:NewSize=128m -XX:MaxPermSize=256m ):
[GC 96800.304: [ParNew (promotion failed): 287552K->287552K(287552K), 0.8694459 secs]96801.174: [CMS: 5229568K->457193K(5971968K), 19.7176579 secs] 5499429K->457193K(6259520K), [CMS Perm : 66540K->66458K(110904K)], 20.5878599 secs] [Times: user=22.50 sys=0.03, real=20.59 secs]
bevor: 96755.515: [GC 96755.515: [ParNew: 287552K->31936K(287552K), 0.1900583 secs] 5491052K->5243813K(6259520K), 0.1905515 secs] [Times: user=2.21 sys=0.00, real=0.19 secs]
after: 96885.774: [GC 96885.774: [ParNew: 255484K->31936K(287552K), 0.0808239 secs] 712678K->490703K(6259520K), 0.0812894 secs] [Times: user=0.97 sys=0.01, real=0.08 secs]
my questions:
1. why did the promotion failed when the old generation apears to have enough space (5229568+287552=5517120 < 5971968)? muss "promotion failed" by all means be handelt?
2. [CMS: 5229568K->457193K(5971968K), 19.7176579 secs]: is this full GC and is the time of 19.7176579 really pause (stop the world) time?
3. [CMS Perm : 66540K->66458K(110904K)], 20.5878599 secs]: why ist Permanent space collected too? dit it take a time of 20.5878599-19.7176579=0.870202 ? this action apears to be unnessesary (66540K->66458K), is es possible to disable such aktion?
4. how to solve the problem? I read a post of fixing such problem with XX:SurvivorRatio=4 -XX:CMSInitiatingOccupancyFraction=75, But this did not work for my case.
could this problem be due to the fragmentation of old generation space? could the reduce size of PLAB improving reuse of small chunks like -XX:OldPLABSize=16 help in my case? what ist the default value of OldPLABSize of JAVA 6 ? is there any side-effect for the reduce OldPLABSize?
thanks a lot for any help!
TianLooks like your old generation has become fragmented and the old space is almost full, or maybe a promoted object is too huge, and there is not enough continue space. Try following:
1> increase the size of old generation.
2> If increase the size of old generation doesnt work , you may try to use G1 algorithm, it may reduce the fragment problem of old generation.
Thanks
Amrit -
TS3694 How to solve the error 1015?
How to solve the error 1015?
Use google. You have a hacked or jailbroken phone, you can't get any help here, it's the against the forum term of use.
-
Anyone figure out how to solve the 1015 error
anyone figure out how to solve the 1015 error
Each version of Photoshop has its own installation path therefore a different application as fars as Wacom Configuration. You would need to set preferences for each Photoshop installed on your system. However if you know XML. Wacom Tablet Preference File Utility can save your Wacom preferences into an XML file. That you may be able to duplicate a Photoshop install and the change the Photoshop Path. Or just change the prion version pathe the the new Photoshop path then restore your Wacom Preferences using the modified XML preference file.
Here you see part of my wacom preferences I have set preferences for all Photoshop installed on my workstation.
Maybe you are looking for
-
How to populate sequence in a text item in a form
I have a text item in a form.I want that the doc_id i.e the text item should be automatically populated with the help of sequence.I have created sequence named seq_doc_id.on which trigger i should write the code so that everytime the doc_id gets incr
-
Unable to increase resolution in DirectShow on Win CE6
Hi everyone, I'm using the MS DirectShow sample code(cameraapp) , that comes with PLatform Builder for Win CE 6. (Usually located at: "C:\WINCE600\PRIVATE\TEST\MULTIMEDIA\DIRECTX\DSHOW\CAMERA\CAMERAAPP") I have managed to use this wonderful code to b
-
How to pass variable between CRM Fact sheet and BI web template
Hello, I am looking for someone who has integrated a custom web template with the CRM fact sheet (I am on 2004s). I have created a custom web application design template for displaying on the portal for a CRM factsheet (TPL_FACT_SHEET). This template
-
Japanese text won't display in SWF
Hi. I have a Flash file that reads text from an XML document and displays it in dynamic text boxes. Some of these boxes are animated and/or rotated, so I have embedded the fonts. Everything works great with English characters, but I need it to work o
-
Hello I just purchased an iPhone 6 Plus today. I am unable to sync to my iTunes because it requires iTunes 11.4 or later. I am running 11.1.3. When I try to update this through the App Store I receive an error "The App Store is temporarily unavailabl