otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
 Follow New Posts:Twitter
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTM Wiki

OTM SIG
OTM Wiki
MavenWire


Data Loading Loading data into OTM / G-Log through CSVs, XML, and the UI.

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old June 25th, 2009, 14:57
Junior Member
 
Join Date: May 2009
Posts: 8
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
kabaliganesan is on a distinguished road
CSV File Upload Error

Hi All, we are working on service provider capacity management. We are able to get committed and usage values updated, whereas Finalize is not getting updated, even after the shipment is accepted and invoice is raised.

We were trying to update some data through CSV file to the table, 'COMMIT_USAGE' that updates the finalized commitment value.

We are unable to upload the data in CSV file.

Following error is displayed:
ORA-01861: literal does not match format string
or
ORA-01843: not a valid month

Note: We were having issues in date earlier

CSV file is attached for reference.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old June 26th, 2009, 02:39
Member
 
Join Date: Dec 2007
Posts: 85
Groans: 1
Groaned at 1 Time in 1 Post
Thanks: 5
Thanked 16 Times in 16 Posts
Rep Power: 3
james_foran is on a distinguished road
Re: CSV File Upload Error

If you are updating a date field, make sure the 3rd line of the CSV file contains the date format as follows:

EXEC SQL ALTER SESSION SET NLS_DATE_FORMAT = 'DD/MM/YYYY'

Line 1 must contain the table name
Line 2 must contain the column names, separated by a comma. Make sure there are no additinoal commas after the last column.

Always edit CSV files in a Text editor. Excel plays havoc with CSV files. Particullary with AGENT_ACTION_DETAILS and SAVED QUERY records where certain fields may contain a large amount of data.

I use the following SQL Script to extract AGENT_ACTION_DETAILS from the DB:

SELECT AD.AGENT_GID, AGENT_ACTION_GID, ACTION_FLOW, ACTION_SEQUENCE,'"'||replace(replace(replace(ACTIO N_PARAMETERS, chr(9), ' '), chr(10), ' '), chr(13), ' ')||'"' ACTION_PARAMETERS,DOMAIN_NAME, DATA_TYPE_ASSOCIATION_GID FROM AGENT_ACTION_DETAILS AD WHERE agent_gid in(
:agent_gid)

It removes all tabs and line returns.

I cannot see the file, so I hope this helps with your issue. If not, attache the file (or at least the first 4-5 lines), and I will have a look into this for you.

Cheers,
__________________
James Foran
Toll Solutions
http://www.tollgroup.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old June 29th, 2009, 06:31
Junior Member
 
Join Date: May 2009
Posts: 8
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 1
Thanked 0 Times in 0 Posts
Rep Power: 0
kabaliganesan is on a distinguished road
Re: CSV File Upload Error

Hi James,
Thanks for the response. We tried that... seems there is some other problem as well. Attaching the CSV file for reference.

Thanks in advance.
Attached Files
File Type: txt Test_Cap_Usage.txt (4.2 KB, 6 views)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old June 29th, 2009, 06:57
Member
 
Join Date: Dec 2007
Posts: 85
Groans: 1
Groaned at 1 Time in 1 Post
Thanks: 5
Thanked 16 Times in 16 Posts
Rep Power: 3
james_foran is on a distinguished road
Re: CSV File Upload Error

Hi,

This file contains a Date time value, but not translation.

Also, you cannot include null as a value. This should just be blank.

EG
Correct Line
test,,
incorrect line
test,null,

Dont forget to add line 3 data format
__________________
James Foran
Toll Solutions
http://www.tollgroup.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedding a file in an inbound xml nikesh mohanlal Integration and Data Mapping 0 December 15th, 2008 15:54
How to increase thread count in glog.properties file? tangfj Performance, Scalability and HA 3 April 23rd, 2008 21:21
relative path of an image file nikesh mohanlal Reports / BI / FTI and Other Analytics 3 March 20th, 2008 01:15
Updating finder_set.csv file nikesh mohanlal Data Loading 1 September 14th, 2007 18:54
Data upload error engyeowkee Data Loading 2 July 2nd, 2007 10:50



All times are GMT. The time now is 13:09.
Copyright © 2006-2009, Open Book Solutions LLC. All rights reserved.


Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40