You are viewing this forum as a guest. Login to an existing account, or create a new account, to reply to topics and to create new topics.
Hi . . .
When I edit my CSV file in Excel and try to upload it throug hthe admin it becomes corrupted and only 35 of 1600 products go over cleanly. Are their other programs out there that I can use to edit my product CSV? All I really want to do is sort the thing "alphabetically" so the products fall that way under their respective categories. Any ideas?
thanks,
Daniel
Offline
Daniel
Saving files in CSV format do work so I would suspect that the formats may not be correct
which files are you uploading?
do you clear the table first? (always a good idea) by submitting the delete from (table name) raw sql command
make sure that line 1 of your tables has the exact correct titles as defined in the ccp tables
Sorting is not a problem and easily achieved in the sort order column (of either prod or cat tables)
Paul
Offline
Are you certain that you're saving as "CSV" from Excel?
Can you inspect the file before loading into Excel? E.g., open in Notepad and inspect that it's exporting okay.
You might consider getting phpMyAdmin which is free software and excellent for managing MySQL databases. I've not had a problem with phpMyAdmin exporting and importing CSV files.
Last edited by Blitzen (01-05-2009 10:13:09)
Offline
Excel does have a habit of changing characters that it see's as formaulas into calculations, particuarly if you have modifcations with extra columns and data.
Try http://www.openoffice.org/ The Calc software is the Excel equivelant and this seems to work where Excel fails/corrupts
Offline
The only database I have had trouble with through excel is sometimes when working with khxc_mail I get weird imports other than that one tables I have not had any trouble with excel and ccp.
John
Offline
It's the product DB ccp0_prod_dataexport.
I did delete the database before I uploaded.
I am using Excel 2003 on Windows XP.
When I try to save the CSV I get a window that says:
"File may contain features that are no compatable with CSV. Do you want to keep the workbook in this format."
When I click YES . . . It doesn't save or close. The only way I can save and close the file is if I click NO, which saves it in the lastest Excel format (it says).
I only want to alphabetize the database so it appears that way under the catagories.
Dave . . . is this something that Krytronic can do for me easily?
There are many identifiers that have many zeros "00000000000012FE" and Dashes "ACS-VH-1.535", etc. Perhaps things that do not work well with Excel? They work on CCP6 but not in Excel it seems.
thanks,
Daniel
Last edited by daviat (01-05-2009 21:04:09)
Offline
As John mentioned earlier, products are sorted by the sort order field in that table so that is the column you need to have in the order you want things to be displayed. Your identifiers with leading zeros like that are likely being stripped of the leading zeros by Excel and the column being considered a number. Even in CCP it's possible that an ID in that format may end up without the leading zeros.
You're welcome to submit a for us to do the sorting for you Daniel.
Offline
daviat wrote:
<snip>
When I try to save the CSV I get a window that says:
"File may contain features that are no compatable with CSV. Do you want to keep the workbook in this format."
When I click YES . . . It doesn't save or close. The only way I can save and close the file is if I click NO, which saves it in the lastest Excel format (it says).
<snip>
That's really odd. I am able to save as CSV from Excel 2003/XP.
Dave wrote:
<snip>
Your identifiers with leading zeros like that are likely being stripped of the leading zeros by Excel and the column being considered a number. Even in CCP it's possible that an ID in that format may end up without the leading zeros.
We had that Excel annoyance when importing a product number "10-2003" and Excel opened as "Oct 1 2003".
To overcome this, change the file ext to ".txt".
Ensure Excel doesn't automatically guess the file type. There's a setting in Excel for this. If you can't find it, try opening it anyway. You should get prompts as to whether or not it's delimited.
When you open the file from Excel, select "Delimited", on next window, "Comma", then on the third window, define that column as "Text". That should do it.
HTH!
Last edited by Blitzen (01-06-2009 10:44:29)
Offline
Thanks. Do I save the final in the text file format, and change to CSV manually before I upload in the admin, or convert to CSV in Excel? When I Save as CSV in Excel I still get the error.
Also . . . When I sort alphabetically ascending in Excel I also sort the "sortorder" column numerically too, correct?
I find Excel throughs in "??" for " (quotes) when I save. Likw 1 1/2" turns into 1 1/2??.
thanks,
Daniel
DDG
Last edited by daviat (01-06-2009 13:09:46)
Offline
"Save As"
"CSV (comma delimited) (*.csv)"
As Dave said, CCP6 software sorts. You really don't have to sort in Excel.
My Excel never translated double quotes for question marks. Sorry, I can't help you there.
If you read the file in Notepad, are the ?? there or the quotes?
Could they be the stupid "Smart Quotes" that are angled (another M$ annoyance)?
Offline
I was told CCP doesn't sort alphabetically. I would need to use Excel or go in an numberically sort each product. Can you give me a hint on Sorting in CCP? Sorry.
Daniel
DDG
Offline
I might be wrong about CCP6 sorting. They sort some things, but not all. Some are dependent on a sort number you enter in admin, other sort on id or something else.
Are you trying to sort the category list to display alphabetically?
Offline
Both products and categories are sorted by their sort index number which is specified in the category or product detail page.
Offline
I want to orderly sort the products alphabetically, that is what the client wants, since there are many products are are connected by company name, or product name, and I want things to be easily found. Otherwise products with similar product names might be mixed up with other products on other pages, if you know what I mean. It's just the excel thing that is stopping me from sorting. Sorting alphabetically will easily allow buyers to find products.
There are 849 products and it would be very difficult to sort through the admin individually without using excel. I have a deadline for Monday to launch. Just want to see if I can do this. I can sort the "sortorder" column through Excel easily . . . it just happens that Excel corrupts the file. I wish there was something other then Excel that I can sort the prod database.
thanks,
Daniel
Last edited by daviat (01-06-2009 20:11:38)
Offline
Do you have any formulae in your spreadsheet? as these will cause problems - I create an intermediate file and then save special as 'value' to make sure that only real values are in my final .csv file
Also note that the sorted excel rows will not appear in the same order when uploaded into the ccp database
Paul
Offline
daviat wrote:
<snip>
. . . it just happens that Excel corrupts the file. I wish there was something other then Excel that I can sort the prod database.
<snip>
When you open the file exported from the database in Notepad, are those odd characters there?
I ask because if the MySQL isn't setup properly, it could be MySQL changing the characters, not Excel.
This happened to me and we had to change the character set for MySQL.
Offline
No . . . this happens when I check the database after I make my sorting changes in Excel.
thanks,
Daniel
Offline
Okay, one more clarification.
When you open the modified Excel file in Notepad are the odd characters there?
This is after you sort and save and BEFORE you upload to the database.
Offline
Oh, the fun of data sharing...
I was in contact with original poster. It appears the MySQL upload was doing the corrupting as well as Excel using the back/front tics ("smart quotes").
I advised to search-n-replace those ticks with the straight ones.
If cells contain too much info in Excel, you'd have to import the column to Word to search-n-replace.
I also advised to use collation for the MySQL db and tables if you use anything more than standard alpha-numeric symbols (such as those back tics and things like ®, ™, é, etc.). I have a client who is notorious for copying-n-pasting from Word and other programs that convert characters. We had to find a solution because the client had a habit of how he copied and he couldn't (wouldn't) break the habit.
I'm uncertain how CCP6 handles these non-standard chars when you input them, but this collation worked for me.
It took us a long time to sort out these phenomena. I hope this might help you save some time.
Offline
I have a problem whem I download a csv file from raw admin prod using a mac it will not open in excel?
Offline
When Excel opens it will be looking for "All Readable Documents" in the Enable filed, you will need to select "All Documents" for this field. When you save the file for importing into ccp you will need to save it in the CSV(Windows) formate.
John
Offline
Thanks John, I have opened it in all readable doc's but only one part of the file id readable .It picks up on the same product every time. Only giving approx. 4 lines and one column across. I have even installed a new version of mac office, thought it might make a difference.
Offline
Try changing the extension on the file to .txt by renaming it and then opening it in excel, which should cause you to have to select how excel will open it, like coma seperated etc...
John
Offline
I would use open office and the scalc application which is exactly like excel.
I have the exact same problem and message displayed when I try to save off the csv file afte editing.
I run a windows based system and have used excel in vaious flavours from office xp through to office 2007 and still cannot get it to save off correctly.
The only way I can get around this is to use the above program scalc with open office...This now works flawlessly.
Offline