Getting error message when passing data into table: Primary Key
Getting an error in a process that is feeding the invoice creation in SAP, violation of PRIMARY KEY constraint 'INV1_Primary', cannot insert duplicate key in object 'INV1'. I assume this is due to duplicate key values being passed into the table INV1, however I get this error even when I am passing unique record combinations of the key fields docentry and linenum. This is on 2005A SP01.
Thanks
Hi Peter,
Could you provide a code sample of the routine that is causing the error please?
It sounds like a data corruption issue (though it could possibly be a bug in the DI API). I recommend you speak to SAP support. There is a utility that can validate the document numbering but you'll need to speak to SAP support before you run this as it can have other negative effects, depending on the state of your data. They may ask for a copy of your database to test.
Kind Regards,
Owen
Similar Messages
-
Error Message When Inserting Data Into Table
Hi,
I am trying to insert the following value into my customer table, however i get the following error on doing so.
ERROR: date format picture ends before converting entire input string
STATEMENT:
insert into phonecall (start_date_time)
values(10-JAN-2006 11:53:09)
any ideas as to what might be wrong with my insert statement to bring up this error ??
start_date_time is a DATE field by the way.Or
SQL> alter session set nls_date_format='DD-MM-YYYY HH24:MI:SS';
Session altered.
SQL> create table aa (test date)
2 /
Table created.
SQL> insert into aa values ('11-12-2006 12:11:22')
2 /
1 row created.
SQL> select * from aa ;
TEST
11-12-2006 12:11:22
SQL> -
Keep getting error message when sending data to printer
i keep getting an error message when trying to print. window says "sending data to printer" but nothing happens and i get an error message.
anyone else experience this and how did you solve the problem?Hi psknv3,
Welcome to Apple Support Communities.
What error message are you seeing when the printing issue occurs? The article linked below provides a lot of great information and general troubleshooting suggestions that may resolve the issue.
Troubleshooting printer issues in OS X
http://support.apple.com/kb/TS3147
I hope this helps.
-Jason -
Error Message when entering data into a table from an array
When i use the following:
stmt.executeUpdate("INSERT INTO Car " + "VALUES (" + temp + ", " + carData[0] + ", " + carData[1] + ", " + carData[2] + ", " + carData[3] + ", " + carData[4] + ", " + carData[5] + ", " + carData[6] + ", " + carData[7] + ", " + carData[8] + ", " + carData[10] + ", " + carData[11] + ", " + carData[12] + ", " + carData[9] + ", " + carData[13] + ", " + carData[14] + ", " + carData[15] + ", " + carData[16] + ", " + carData[17] + ", " + carData[18] + ", " + carData[19] + ", " + carData[20]+")");
i get the following error message:
SQLException: [Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression 'Audi A2 (Standard & SE)'.
where: 'Audi A2 (Standard & SE)' is the value stored in carData[4].
Can anyone help?You need to enclose carData[0],carData[1] etc in single quotes, if they are String(s). Otherwise you can use PreparedStatement.
PreparedStatement ps = con.prepareStatement("Insert into car values(22 questions marks)");
ps.setInt(1,temp);
for(int i=0;i<21;i++) ps.setString(i+2,carData[ i ]);
int count=ps.executeUpdate();
Sudha -
I am getting error messages when keying entries into SAP in transaction cod
I am getting error messages when keying entries into SAP in transaction code F-02. It will tell me that an asset doesn't exist in the company code I am posting to when the asset does exist. For example in the parked document 101079622 it tells me that asset WV0707711 doesnt' exist in CoCode . But what is keyed in the document is WV07077 1 1.
And when i look in Transaction AS03 for this asset number it does indeed exist in Co Code. Also if you take these assets out and park it and then go into Transaction FBV2 and add the asset back into the document it will add it and then post to it. This happens often and is very time consuming. I need to know how to fix this without all this additional effortHi,
it is urgent can any one help on this.
Thanks,
Sridhar Reddy.G -
in SSRS 2008 2 years ago created Commission with sub reports added, it was working fine, some how started to get error
message when we entered some invoice # see below screen shot of error message
but same time if I enter different invoice # it process the report without any error message , donot understand the problem
what's causing this issue, I have looked each sub report,
can some one suggest any idea,
I have spent hrs to figure it out, no luck so far.
thanks in advance
see the 2nd screen shot with report process
any help will be greatly appreciatedHi Wendy
thanks for your reply
I tried creating new report , I have 1 main report and 3 sub report on this
on main report when I enter some invoice# and accountnum data shows up with no problem,
but same time if I enter different invoice# and accountnum , there is no data return on same query, I have checked my query so many times, donot understand this issue, what's causing this problem, since all the data pulling from same tables, why its
not pulling for some invoices,
other strange thing , I created this report , year ago, there was no problem until now,
all of the sudden this problem just shows up,'
I am not that expert in sql , can I really use advise
see below by query , if you can tell me what's wrong with my query I will be really greatfull I have spend so much time to figure it out, but so far no luck
SELECT VENDTRANS.DATAAREAID, SALESTABLE.SALESID, VENDTRANS.VOUCHER, SALESTABLE.SALESTYPE, SALESTABLE.SALESSTATUS, VENDTRANS.TRANSDATE,
CUSTINVOICEJOUR.INVOICEAMOUNT, VENDTRANS.INVOICE, VENDTRANS.PAYMMODE, VENDTRANS.ACCOUNTNUM, VENDTRANS.TRANSTYPE,
VENDTRANS.LASTSETTLEVOUCHER, VENDTRANS.TXT, CUSTINVOICEJOUR.INVOICEACCOUNT, CUSTINVOICEJOUR.INVOICINGNAME,
VENDTRANS.LASTSETTLEDATE, LEDGERJOURNALTRANS.ACCOUNTTYPE, LEDGERJOURNALTRANS.AMOUNTCURCREDIT, LEDGERJOURNALTRANS.LINENUM,
CUSTINVOICETRANS.INVOICEDATE
FROM SALESTABLE INNER JOIN
CUSTINVOICETRANS ON SALESTABLE.DATAAREAID = CUSTINVOICETRANS.DATAAREAID AND SALESTABLE.SALESID = CUSTINVOICETRANS.SALESID
INNER JOIN
CUSTINVOICEJOUR ON CUSTINVOICETRANS.INVOICEID = CUSTINVOICEJOUR.INVOICEID AND CUSTINVOICETRANS.SALESID = CUSTINVOICEJOUR.SALESID
AND
CUSTINVOICETRANS.INVOICEDATE = CUSTINVOICEJOUR.INVOICEDATE INNER JOIN
VENDTRANS ON CUSTINVOICETRANS.INVOICEID = VENDTRANS.INVOICE AND CUSTINVOICETRANS.DATAAREAID = VENDTRANS.DATAAREAID
AND
CUSTINVOICEJOUR.DATAAREAID = VENDTRANS.DATAAREAID AND CUSTINVOICEJOUR.INVOICEDATE = VENDTRANS.TRANSDATE INNER JOIN
LEDGERJOURNALTRANS ON VENDTRANS.DATAAREAID = LEDGERJOURNALTRANS.DATAAREAID AND
VENDTRANS.ACCOUNTNUM = LEDGERJOURNALTRANS.ACCOUNTNUM AND CUSTINVOICETRANS.LINENUM = LEDGERJOURNALTRANS.LINENUM AND
VENDTRANS.INVOICE = LEDGERJOURNALTRANS.INVOICE AND VENDTRANS.VOUCHER = LEDGERJOURNALTRANS.VOUCHER AND
VENDTRANS.PAYMMODE = LEDGERJOURNALTRANS.PAYMMODE AND VENDTRANS.TRANSDATE = LEDGERJOURNALTRANS.TRANSDATE
WHERE (VENDTRANS.DATAAREAID = N'AR1') AND (SALESTABLE.SALESTYPE = 3) AND (SALESTABLE.SALESSTATUS = 3) AND (VENDTRANS.ACCOUNTNUM = @Accountnum)
AND (VENDTRANS.INVOICE = @Invoice) AND (LEDGERJOURNALTRANS.ACCOUNTTYPE = 2) -
I keep getting error messages when I try to activate iMessage on my iPad since installing iOS7. Anyone else having this issue or a solution. I can obviously sign in with the same Apple ID information/password as I have done here and I am connecting with Wifi now and in all other apps.
After looking at some other posts I signed into iTunes and edited my password with my Mac. Then I powered off and restarted my iPad and all is good now.
-
Getting error message when i am trying to update the excel file using script task in ssis package
Hi Guys,
I am getting error message when I am trying to update the excel. Please find the error messages as below
Error at Update File [Update File]: Failed to compiled scripts contained in the package. Open the package in SSIS Designer and resolve the compilation errors.
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Application' is not defined., ScriptMain.vb, 32, 32
Error at Update File [Update File]: BC30002 - Type 'Microsoft.Office.Interop.Excel.Workbook' is not defined., ScriptMain.vb, 33, 25
Error at Update File [Update File]: The binary code for the script is not found. Please open the script in the designer by clicking Edit Script button and make sure it builds successfully.
Warning at Update File [Update File]: Found SQL Server Integration Services 2008 Script Task "ST_050fcae972904039b4f0fe59b7528ece" that requires migration!
and the code that I am using is
Dell - Internal Use - Confidential
' Microsoft SQL Server Integration Services Script Task
' Write scripts using Microsoft Visual Basic
' The ScriptMain class is the entry point of the Script Task.
Imports System
Imports System.Data
Imports System.Math
Imports Microsoft.SqlServer.Dts.Runtime
Imports Microsoft.Office.Interop.Excel
<System.AddIn.AddIn("ScriptMain", Version:="1.0", Publisher:="",
Description:="")> _
<System.CLSCompliantAttribute(False)> _
Partial
Public Class ScriptMain
Inherits Microsoft.SqlServer.Dts.Tasks.ScriptTask.VSTARTScriptObjectModelBase
Enum ScriptResults
Success = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Success
Failure = Microsoft.SqlServer.Dts.Runtime.DTSExecResult.Failure
End Enum
Public Sub Main()
Dts.TaskResult = ScriptResults.Success
'Dim proc As System.Diagnostics.Process
'kill all instances of excel
'For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
' proc.Kill()
'Next
Dim excelnacomm As
New Microsoft.Office.Interop.Excel.Application
Dim wbnacomm As Microsoft.Office.Interop.Excel.Workbook
wbnacomm = excelnacomm.Workbooks.Open("http://test.xlsx")(renamed
the excel)
wbnacomm.RefreshAll()
wbnacomm.Save()
wbnacomm.Close()
excelnacomm.Quit()
Runtime.InteropServices.Marshal.ReleaseComObject(excelnacomm)
End Sub
End
Class
Please let me know what could be the reason
Smash126Download:
Microsoft Office 2010: Primary Interop Assemblies Redistributable
How to: Add or Remove References By Using the Add Reference Dialog Box / How to:
Add and Remove References in Visual Studio (C#)
Olaf Helper
[ Blog] [ Xing] [ MVP] -
Error message when importing data using Import and export wizard
Getting below error message when importing data using IMPORT and EXPORT WIZARD
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
<dir>
<dir>
Messages
Error 0xc0202009: Data Flow Task 1: SSIS Error Code DTS_E_OLEDBERROR. An OLE DB error has occurred. Error code: 0x80004005.
An OLE DB record is available. Source: "Microsoft SQL Server Native Client 11.0" Hresult: 0x80004005 Description: "Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'.
Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting autogrowth on for existing files in the filegroup.".
(SQL Server Import and Export Wizard)
Error 0xc0209029: Data Flow Task 1: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The "Destination - Buyer_.Inputs[Destination Input]" failed because error code 0xC020907B occurred, and the error row disposition on "Destination
- Buyer_First_Qtr.Inputs[Destination Input]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Error 0xc0047022: Data Flow Task 1: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Destination - Buyer" (28) failed with error code 0xC0209029 while processing input "Destination Input" (41). The
identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information
about the failure.
(SQL Server Import and Export Wizard)
Error 0xc02020c4: Data Flow Task 1: The attempt to add a row to the Data Flow task buffer failed with error code 0xC0047020.
(SQL Server Import and Export Wizard)
</dir>
</dir>
Error 0xc0047038: Data Flow Task 1: SSIS Error Code DTS_E_PRIMEOUTPUTFAILED. The PrimeOutput method on Source - Buyer_First_Qtr returned error code 0xC02020C4. The component returned a failure code when the pipeline engine called PrimeOutput().
The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing. There may be error messages posted before this with more information about the failure.
(SQL Server Import and Export Wizard)
Smash126Hi Smash126,
Based on the error message” Could not allocate a new page for database REPORTING' because of insufficient disk space in filegroup 'PRIMARY'. Create the necessary space by dropping objects in the filegroup, adding additional files to the filegroup, or setting
autogrowth on for existing files in the filegroup”, we can know that the issue is caused by the there is no sufficient disk space in filegroup 'PRIMARY' for the ‘REPORTING’ database.
To fix this issue, we can add additional files to the filegroup by add a new file to the PRIMARY filegroup on Files page, or setting Autogrowth on for existing files in the filegroup to increase the necessary space.
The following document about Add Data or Log Files to a Database is for your reference:
http://msdn.microsoft.com/en-us/library/ms189253.aspx
If there are any other questions, please feel free to ask.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
HT5731 Have 55GB available, but get error message when trying to download movie to add storage
Have 55GB available, but get error message when trying to download movie to add storage
Go to Settings>General>Usage>Storage. Let all of the apps load in the window. You can see how much storage you have used and how much you have left. You will need about twice the size of the download of free storage in order to be able to download the movie. Also, the iOS will not let you use every bit of available storage on the device.
You can delete content in there if needed, but if you sync with iTunes it's a good idea to transfer purchased into iTunes and backup your iPad before you delete content. If you use iCloud only, backup with iCloud before you delete any content.
How to transfer purchases into your iTunes library
http://support.apple.com/kb/HT1848
How to backup and restore from a backup
http://support.apple.com/kb/HT1766 -
Deleted items from Ipod Nano to make room for new. Emptied trash. Still getting error message when I try to copy items from ITunes to Ipod. What should I do now?
If you delete songs (and other items) from the main iTunes library, yes, you need to empty the Trash because iTunes puts the song files into the Trash. When deleting items from an iPod, the items are not being deleted from the main iTunes library, so nothing should end up in the Trash.
Hopefully, you are not deleting items from your main iTunes library, just to sync those deletions from the iPod. If you are, there is a better way. You can post back if you want more info... -
While trying to sync my IPAD with ITUNES, my IPAD when into recovery mode and I keep getting error messages when I try to recover it.
What might these error messages say?
-
Keep getting error message when trying to sign in to make a Genius Bar Reservation
Keep getting error message when trying to sign in to make a Genius Bar Reservation
Make the reservation by phone.
-
I get error message when I try to load lightroom 5 -unable to laod application correctly (oxooooo7b)
what can I doSearch here or Google ... https://helpx.adobe.com/lightroom/kb/error-unable-start-correctly-0xc00007b.html
-
I get error message when trying to add key tags
I get error message when trying to add key tags
You should always backup your iPad before ever doing anything major that coould result in a catastrophic loss is something goes wrong. You can then usually restore from the backup when your iPad has recovered.
You should also be sure to have transfered any new purchases directly to your iPad to the iTunes app on your computer on a regular basis.
Maybe you are looking for
-
Dbms authentication in OBIEE 11.1.1.7.1
Hi all, I have a problem with configuring dbms authentication in obiee 11.1.1.7.1. I followed the document below, and made all the steps. Using Alternative Authentication Providers - 11g Release 1 (11.1.1) Now, my problem is none of my dbms users can
-
HT201317 Problem Photostream Ipad 3
When I make a photo on my Ipad 3 it comes in my photo album, but not in my fotostream map. Pictures made with my iphone 4 goes to the photostream map, but not to the ipad photostream map via Icloud. If I open the picture app. (standard) on the ipad,
-
help
-
Hello i lost my itunes library how do i recover it thank you
hello i lost my itunes library on my mac how do i recover it thank you
-
Hi, I get short dump "DUMP X000" while deleting the request from DTP. Thanks.