on â2012 May 30 1:28 AM
Hi,
I tried to import flat .csv file from HANA studio. I follow http://scn.sap.com/docs/DOC-27960
I have HANA Studio with 1.0.29 and HANA Database with 1.0.26.
See the below error:
My Log File:
<status>ERROR</status>
<info>Data Load - Batch Information</info>
<message>
<status>ERROR</status>
<info>Batch from Record 1 to 3401 Failed: [301]: unique constraint violated(input position 482)</info>
<error>com.sap.db.jdbc.exceptions.BatchUpdateExceptionSapDB: [301]: unique constraint violated(input position 482)
<br/> at com.sap.db.jdbc.CallableStatementSapDB.executeBatch(CallableStatementSapDB.java:681)
<br/> at com.sap.db.jdbc.trace.PreparedStatement.executeBatch(PreparedStatement.java:615)
<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.populate.PopulateSQLTable.populateTable(PopulateSQLTable.java:89)
<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.job.FileUploaderJob.uploadFlatFile(FileUploaderJob.java:186)
<br/> at com.sap.ndb.studio.bi.filedataupload.deploy.job.FileUploaderJob.run(FileUploaderJob.java:59)
<br/> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
<br/></error>
</message>
I am new to HANA Studio and with HANA Database. Can anyone help?
Thanks for your time.
Regards,
Hardik
Request clarification before answering.
Hello Hardik,
Problem might happen when the length of inserted record is larger than the length mentioned for the particular column.
Please check the datatype and their length too..
Regards,
neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Hardik,
I just have the same problem. I tried to import a csv-flatfile with a document number and line item positions and some other columns with amounts and dates.. The problem is, that I get the same error due to non uniquness.
It is correct that some document numbers occur more than one time due to the numer ober contained line items. But taking both columns as key field they are unique.
Does anybody has an idea, how to import such kind of data?
@Hardik: How did you solve the problem?
Thanks for your support and kind regards
Falk
Rama, Harfik,
thanks a lot. It was something different to the issue I posted here. The problem was, that I had 3 lines where for line 3 column 4 was empty whereas for the other lines the column was filled. So I decided not to take this column as key column for what HANA told me that there are some non unique entries.
I added the columnb to the key but due to the NOTNULL prerequisite I had the next problem. The only way to solve it was to give the column a default value of 0 which is ok, but not the way I expected.
Is there any possibility to import data as posted below. These 3 lines exist in the database table, but there seems to be no way, to get them into HANA.
document | line item | amount | repetition
-----------------------------------------------------------
10000001 | 1 | 100,00 |
10000001 | 1 | 100,00 | 1
10000001 | 1 | 100,00 | 2
Thank you very much for helping on this issue.
Best regards,
Falk
| User | Count |
|---|---|
| 12 | |
| 9 | |
| 7 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.