Maddyhome Forums

Discussions related to software developed at maddyhome.com
It is currently Tue May 21, 2013 11:41 pm

All times are UTC




Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
PostPosted: Sat Dec 11, 2010 6:03 am 
Offline

Joined: Sat Dec 11, 2010 5:46 am
Posts: 2
I am using this script on Mac OSX Snow Leopard to download the sales reports everyday. To fix the "theForm:weekPickerSourceSelectElement: Validation Error: Value is not valid". problem I changed the script as follows:

1) Create a new variable at the top (just after username, password variables) that will store the date of the last Sunday.
WEEKFORMDATA=`date -v-sun "+%m%%2F%d%%2F%Y"`

You will have to modify the date command suitably on a Linux system.

2) Replace all 4 instances of
"theForm%3AweekPickerSourceSelectElement=09%2F05%2F2010"
with
"theForm%3AweekPickerSourceSelectElement=${WEEKFORMDATA}"

Regards

nkansara

http://www.panipurisoft.com


Top
 Profile  
 
PostPosted: Sun Dec 12, 2010 12:44 am 
Offline
Site Admin

Joined: Thu Aug 14, 2008 9:26 pm
Posts: 1679
I've updated the script with a formal fix for the old date problem. The date is now calculated properly.


Top
 Profile  
 
PostPosted: Mon Dec 13, 2010 10:56 am 
Offline

Joined: Sat Dec 11, 2010 5:46 am
Posts: 2
The script might break again if the weekly report is not available immediately on Monday. Its best to get the date for last to last Sunday as follows:

WEEKFORMDATA=`date -v-sun -v-7d "+%m%%2F%d%%2F%Y"`

Regards

nkansara

http://www.panipurisoft.com


Top
 Profile  
 
PostPosted: Mon Dec 13, 2010 3:35 pm 
Offline
Site Admin

Joined: Thu Aug 14, 2008 9:26 pm
Posts: 1679
Good idea. I'll make that change. Thanks.


Top
 Profile  
 
 Post subject: the itunes site down?
PostPosted: Mon Dec 27, 2010 5:59 pm 
Offline

Joined: Fri Sep 10, 2010 6:03 am
Posts: 3
https://itunesconnect.apple.com/WebObje ... onnect.woa is not responding. any clues?


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 6:07 pm 
Offline

Joined: Sat Sep 11, 2010 8:34 pm
Posts: 12
iTunes connect is shut down over the holiday, you should have gotten several warning emails from apple about this. It'll be back up the 29th.

_________________
--
Magnus Blikstad
WIT Entertainment


Top
 Profile  
 
PostPosted: Mon Dec 27, 2010 6:07 pm 
Offline
Site Admin

Joined: Thu Aug 14, 2008 9:26 pm
Posts: 1679
Apple shut down access to the sales reports for the holidays. Things should start working again on the 29th. You should have received an email from Apple telling you this.


Top
 Profile  
 
PostPosted: Thu Dec 30, 2010 6:04 am 
Offline

Joined: Thu Dec 30, 2010 5:21 am
Posts: 1
Thanks a ton this script is great!!! I was just wondering if there was a way to modify it for weekly and monthly reports. I'm working on it now but I'm not very good at this type of stuff.
Thanks,
Bryan


Top
 Profile  
 
PostPosted: Sun Jan 02, 2011 3:30 am 
Offline
Site Admin

Joined: Thu Aug 14, 2008 9:26 pm
Posts: 1679
I'm surprised it took this long for such a request :)

I personally have no desire to get the other reports so I haven't put any effort into it. If someone does then feel free to send the changes to me and I will incorporate them into the main script for everyone else.


Top
 Profile  
 
PostPosted: Tue Jan 25, 2011 5:14 pm 
Offline

Joined: Mon Dec 29, 2008 3:54 pm
Posts: 13
When I run (with debugging turned on and cleanup turned off), at the time of this writing, my sales.html, salesdate.html and salestype.html are all coming back as 6190 bytes of html that include the phrase:

Code:
We are currently experiencing some issues with the application.Please
 try connecting after sometime.


My question is: is iTunesConnect down, or have I botched something up? Did anyone else get sales reports this a.m.? (I've had this error from ~8:30 until ~9:15 Pacific)

Thanks!

[Edit: I'm just now setting up the new script, so I've never seen it work, hence my lack of clarity about if it's ITC or me.]


Last edited by chum on Tue Jan 25, 2011 5:24 pm, edited 1 time in total.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic This topic is locked, you cannot edit posts or make further replies.  [ 64 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron
Powered by phpBB® Forum Software © phpBB Group