Home | Webstore
Latest News: OOTP 13 THIRD Update Available: Version 13.3.9! - OOTP 13 Released! Download Now! - iOOTP 2012 Available NOW on the AppStore - Title Bout Championship Boxing 2.5 released!

Download OOTP 13 Now! | Download iOOTP 2012 from the AppStore

Go Back   OOTP Developments Forums > Earlier versions of Out of the Park Baseball > Earlier versions of OOTP: Mods

 
 
LinkBack Thread Tools Display Modes
Old 10-25-2004, 10:32 PM   #1 (permalink)
All Star Reserve
 
chrisj's Avatar
 
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 809
Thanks: 1
Thanked 14x in 5 posts
BOSI problem

Trying to import this weeks stats...

When it gets to Batting & Pitching stats, a message comes up saying "In Error".

In the box, it says:
Error updating old team record for Player ID # 52962(You have an error in your SQL syntax near '' at line 1)<br>Please report the following query -- <br>update bosi_PITCH_STATS set TEAM_ID = NULL,IP=0,IPS=0,IPF=0,AB=0,TB=0,HA=0,K=0,BF=0,RS=0 ,BB=0,G=0,GS=0,RBI=0,W=0,L=0,S=0,SA=0,DA=0,SH=0,SF =0,TA=0,HRA=0,R=0,ER=0,BK=0,CI=0,IW=0,WP=0,HP=0,GF =0,DP=0,QS=0,RL=0,RLS=0,SVO=0,BS=0,IR=0,IRS=0,RA=0 ,CG=0,SHO=0,SB=0,CS=0,HLD=0,R9=0,AVG=0,LAVG=0,RAVG =0,OBP=0,SLG=0,H9=0,K9=0,HR9=0,BB9=0,CGP=0,CERA=0, QSP=0,RSG=0,RLSP=0,SVP=0,BSVP=0,IRSP=0,GFP=0,ERA=0 ,IPPS=0,CLOSE_DATE = '2012-7-18' where PITCH_STATS_ID =

Any suggestions?
__________________
Canadian Baseball League
-- Commissioner
-- Calgary GM
chrisj is offline  
Old 10-26-2004, 09:10 AM   #2 (permalink)
All Star Starter
 
DaveHorn's Avatar
 
Join Date: Aug 2003
Posts: 1,141
Thanks: 1
Thanked 1x in 1 post
Find the player with Player ID # 52962. If you don't know how, just go to any player page and then change the player id in the URL to the above URL. See where BOSI thinks this player lives because its generating a team id of null which is causing your SQL to choke. Maybe its a bogus player or something. If so, just delete that player, export your csvs again and import into BOSI.
__________________
Dave
HFTC Commish
DaveHorn is offline  
Old 10-26-2004, 08:02 PM   #3 (permalink)
All Star Reserve
 
chrisj's Avatar
 
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 809
Thanks: 1
Thanked 14x in 5 posts
I'm still not getting it.

http://bosi.ootp-online.com/player.php?G_pid=52962

He was just traded to Niagara - so it took part of the import correctly, as he's been switched over to the team new. But it stopped at the pitch_stats import. I looked over the players info in the CSV, and I can't seem to figure out why. Any suggestions at all?
__________________
Canadian Baseball League
-- Commissioner
-- Calgary GM
chrisj is offline  
Old 10-27-2004, 11:49 AM   #4 (permalink)
All Star Starter
 
DaveHorn's Avatar
 
Join Date: Aug 2003
Posts: 1,141
Thanks: 1
Thanked 1x in 1 post
I'm not sure if you are dealing with a bug in the BOSI code or a problem with the CSV. But in the SQL you cut & pasted, you've got two fields which are undefined and they should not be.

TEAM_ID = NULL and
PITCH_STATS_ID = blank

This could simply be a problem in one of the CSVs and if you fix the CSV and try to reimport you will be ok.
__________________
Dave
HFTC Commish
DaveHorn is offline  
Old 10-27-2004, 10:49 PM   #5 (permalink)
All Star Reserve
 
chrisj's Avatar
 
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 809
Thanks: 1
Thanked 14x in 5 posts
Quote:
Originally Posted by DaveHorn
I'm not sure if you are dealing with a bug in the BOSI code or a problem with the CSV. But in the SQL you cut & pasted, you've got two fields which are undefined and they should not be.

TEAM_ID = NULL and
PITCH_STATS_ID = blank

This could simply be a problem in one of the CSVs and if you fix the CSV and try to reimport you will be ok.
Blah. I hope it's a problem with the CSV - otherwise I'm SOL, since I can't edit the SQL (it's on the OLS). Like I said though, I looked at the CSV, and the team id shouldn't be null for this guy - he has a team listed, and it should be fine. I just don't get it.

It happened after our most recent sim again, with the game player (and same error).

The problem always occurs when doing bat/pitch stats... but I don't see anything that could suggest a problem with player #8.
Attached Files
File Type: zip player_batpitch.zip (58.5 KB, 20 views)
__________________
Canadian Baseball League
-- Commissioner
-- Calgary GM
chrisj is offline  
Old 10-28-2004, 12:39 PM   #6 (permalink)
All Star Starter
 
DaveHorn's Avatar
 
Join Date: Aug 2003
Posts: 1,141
Thanks: 1
Thanked 1x in 1 post
The team id for a player is in the players.csv not the pitch stats, although I believe it must be ok there too. I'm pretty sure its imports the player first, so you would of have other errors if there wasn't a team id for the player in that file.

When the import process begins to update the pitch stats for a player, the first thing it does it go to the pitch_stats table and to lookup the current info.

Can you even access the database on the OLS??? You need to look that player up in your bosi_pitch_stats table, make sure all his entries are correct. My best guess so far that there is something fichy there.
__________________
Dave
HFTC Commish
DaveHorn is offline  
Old 10-28-2004, 05:00 PM   #7 (permalink)
Minors (Rookie Ball)
 
Join Date: Mar 2002
Location: Chicago, Il
Posts: 27
Thanks: 1
Thanked 0x in 0 posts
Quote:
Originally Posted by chrisj
The problem always occurs when doing bat/pitch stats... but I don't see anything that could suggest a problem with player #8.

Chris,

I opened the file in Excell, look in cell CP9, there is a value of "-1#IO" , could that be the problem?
__________________
CBL: London Werewolves
NPBL: California Lions
SO49: Philadelphia Phillies
FBL : Indianapolis Arrows
=========
Hattrick: High Tops
Professor is offline  
Old 10-28-2004, 11:40 PM   #8 (permalink)
All Star Reserve
 
chrisj's Avatar
 
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 809
Thanks: 1
Thanked 14x in 5 posts
Quote:
Originally Posted by DaveHorn
Can you even access the database on the OLS??? You need to look that player up in your bosi_pitch_stats table, make sure all his entries are correct. My best guess so far that there is something fichy there.
Nope... can't look it up at all. If it's not the CSV's, that's my guess too, sadly I just don't have any access.
__________________
Canadian Baseball League
-- Commissioner
-- Calgary GM
chrisj is offline  
Old 10-28-2004, 11:41 PM   #9 (permalink)
All Star Reserve
 
chrisj's Avatar
 
Join Date: Feb 2002
Location: Edmonton, Alberta (but still wishing I was in Halifax, Nova Scotia, Canada)
Posts: 809
Thanks: 1
Thanked 14x in 5 posts
Quote:
Originally Posted by Professor
Chris,

I opened the file in Excell, look in cell CP9, there is a value of "-1#IO" , could that be the problem?
Tried changing it - no luck. :/
__________________
Canadian Baseball League
-- Commissioner
-- Calgary GM
chrisj is offline  
Old 10-29-2004, 01:19 PM   #10 (permalink)
All Star Starter
 
DaveHorn's Avatar
 
Join Date: Aug 2003
Posts: 1,141
Thanks: 1
Thanked 1x in 1 post
I don't think that the problem there are a lot of guys that have that value in that column.

That's crazy, you can't log into the database to fix the problem. Who supports the OLS. Is that OOTP? See if they can give you access or perhaps they can look at the problem for you. Its all I can think of...
__________________
Dave
HFTC Commish
DaveHorn is offline  
 

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 12:55 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0
Copyright © 2009 Out of the Park Developments