"Internal Error -5002" every order
On every order submitted from web tools, either thru the administrative screen or by the customer, is giving this error:
-5002:Internal error (-5002) occurred
at NetPoint.SynchSBO.SBOObjects.SBODocument.NP_2_SBO(Documents& document, NPOrder order)
at NetPoint.SynchSBO.SBOObjects.SBOOrder.NetPointToSBO(NPQueueObject qData)
at NetPoint.SynchSBO.SynchObjectBase.Synch()
I searched the forums to see if that error number was asked previously, didn't find any posts about this specific error. The error only gives that number and doesn't say anything about what could cause it, so I don't have any leads to go off of Every order gets this sync error; the sync error repeats each time sync runs.
Any suggestions?
Hi Jason
Something with the forum search makes it so that searching for "-5002" returns nothing while searching for "5002" returns this
[https://forums.sdn.sap.com/search.jspa?threadID=&q=5002&objID=f252&dateRange=all&numResults=15&rankBy=10001|https://forums.sdn.sap.com/search.jspa?threadID=&q=5002&objID=f252&dateRange=all&numResults=15&rankBy=10001]
Similar Messages
-
Why do I get "Internal Error (-5002) occurred" when doing external recon via SDK ?
I can reconcile an invoice and matching incoming payment as below:
Table OJDT is:
BatchNum
TransId
BtfStatus
TransType
BaseRef
RefDate
Memo
Ref1
Ref2
CreatedBy
LocTotal
FcTotal
SysTotal
TransCode
OrignCurr
TransRate
BtfLine
TransCurr
Project
DueDate
TaxDate
PCAddition
FinncPriod
DataSource
UpdateDate
CreateDate
UserSign
UserSign2
RefndRprt
LogInstanc
ObjType
Indicator
AdjTran
RevSource
StornoDate
StornoToTr
AutoStorno
Corisptivi
VatDate
StampTax
Series
Number
AutoVAT
DocSeries
FolioPref
FolioNum
CreateTime
BlockDunn
ReportEU
Report347
Printed
DocType
AttNum
GenRegNo
RG23APart2
RG23CPart2
MatType
Creator
Approver
Location
SeqCode
Serial
SeriesStr
SubStr
AutoWT
WTSum
WTSumSC
WTSumFC
WTApplied
WTAppliedS
WTAppliedF
BaseAmnt
BaseAmntSC
BaseAmntFC
BaseVtAt
BaseVtAtSC
BaseVtAtFC
VersionNum
BaseTrans
ResidenNum
OperatCode
Ref3
SSIExmpt
SignMsg
SignDigest
CertifNum
KeyVersion
CUP
CIG
SupplCode
SPSrcType
SPSrcID
SPSrcDLN
DeferedTax
AgrNo
SeqNum
ECDPosTyp
RptPeriod
RptMonth
U_BType
U_CLIST
NULL
3285
O
13
1328
2014-08-10 00:00:00.000
A/R Invoices - AFR100
1328
1328
900.000000
900.000000
900.000000
NULL
NULL
0.000000
NULL
USD
NULL
2014-08-10 00:00:00.000
2014-08-10 00:00:00.000
N
104
I
2014-08-10 00:00:00.000
2014-08-10 00:00:00.000
1
1
N
0
30
NULL
N
N
NULL
NULL
N
N
NULL
N
17
3285
N
4
NULL
NULL
944
N
N
N
N
NULL
0
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
9.02.003.11
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
N
NULL
NULL
N
NULL
NULL
NULL
NULL
NULL
3286
O
24
1375
2014-08-10 00:00:00.000
Incoming Payments - AFR100
1375
1375
900.000000
900.000000
900.000000
NULL
NULL
0.000000
NULL
USD
NULL
2014-08-10 00:00:00.000
2014-08-10 00:00:00.000
N
104
I
2014-08-10 00:00:00.000
2014-08-10 00:00:00.000
1
1
N
0
30
NULL
N
N
NULL
NULL
N
N
NULL
N
17
3286
N
15
NULL
NULL
945
N
N
N
N
NULL
0
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
9.02.003.11
NULL
1
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
NULL
N
NULL
NULL
N
NULL
NULL
NULL
NULL
Table JDT1:
TransId
Line_ID
Account
Debit
Credit
SYSCred
SYSDeb
FCDebit
FCCredit
FCCurrency
DueDate
SourceID
SourceLine
ShortName
IntrnMatch
ExtrMatch
ContraAct
LineMemo
Ref3Line
TransType
RefDate
Ref2Date
Ref1
Ref2
CreatedBy
BaseRef
Project
TransCode
ProfitCode
TaxDate
SystemRate
MthDate
ToMthSum
UserSign
BatchNum
FinncPriod
RelTransId
RelLineID
RelType
LogInstanc
VatGroup
BaseSum
VatRate
Indicator
AdjTran
RevSource
ObjType
VatDate
PaymentRef
SYSBaseSum
MultMatch
VatLine
VatAmount
SYSVatSum
Closed
GrossValue
CheckAbs
LineType
DebCred
SequenceNr
StornoAcc
BalDueDeb
BalDueCred
BalFcDeb
BalFcCred
BalScDeb
BalScCred
IsNet
DunWizBlck
DunnLevel
DunDate
TaxType
TaxPostAcc
StaCode
StaType
TaxCode
ValidFrom
GrossValFc
LvlUpdDate
OcrCode2
OcrCode3
OcrCode4
OcrCode5
MIEntry
MIVEntry
ClsInTP
CenVatCom
MatType
PstngType
ValidFrom2
ValidFrom3
ValidFrom4
ValidFrom5
Location
WTaxCode
EquVatRate
EquVatSum
SYSEquSum
TotalVat
SYSTVat
WTLiable
WTLine
WTApplied
WTAppliedS
WTAppliedF
WTSum
WTSumFC
WTSumSC
PayBlock
PayBlckRef
LicTradNum
InterimTyp
DprId
MatchRef
Ordered
CUP
CIG
BPLId
BPLName
VatRegNum
SLEDGERF
U_CLIST
3285
0
100200200100000
900.000000
0.000000
0.000000
900.000000
900.000000
0.000000
USD
2014-08-10 00:00:00.000
1328
1
AFR100
0
0
400100100300000
A/R Invoices - AFR100
1
13
2014-08-10 00:00:00.000
NULL
1328
1328
1328
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
N
N
30
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
3
D
0
NULL
900.000000
0.000000
900.000000
0.000000
900.000000
0.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3285
1
200100200900000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
USD
2014-08-10 00:00:00.000
1328
-2
200100200900000
0
0
AFR100
A/R Invoices - AFR100
13
2014-08-10 00:00:00.000
NULL
1328
1328
1328
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
X0
900.000000
0.000000
N
N
30
NULL
900.000000
0
Y
0.000000
0.000000
N
0.000000
NULL
3
C
0
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3285
2
400100100300000
0.000000
900.000000
900.000000
0.000000
0.000000
900.000000
USD
2014-08-10 00:00:00.000
NULL
NULL
400100100300000
0
0
AFR100
A/R Invoices - AFR100
13
2014-08-10 00:00:00.000
NULL
1328
1328
1328
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
N
N
30
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
3
C
0
NULL
0.000000
900.000000
0.000000
900.000000
0.000000
900.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3285
3
100200100100200
0.000000
891.710000
891.710000
0.000000
0.000000
891.710000
USD
2014-08-10 00:00:00.000
NULL
NULL
100200100100200
0
0
AFR100
A/R Invoices - AFR100
13
2014-08-10 00:00:00.000
NULL
1328
1328
1328
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
N
N
30
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
3
C
0
NULL
0.000000
891.710000
0.000000
891.710000
0.000000
891.710000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3285
4
500100100700000
891.710000
0.000000
0.000000
891.710000
891.710000
0.000000
USD
2014-08-10 00:00:00.000
NULL
NULL
500100100700000
0
0
AFR100
A/R Invoices - AFR100
13
2014-08-10 00:00:00.000
NULL
1328
1328
1328
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
N
N
30
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
3
D
0
NULL
891.710000
0.000000
891.710000
0.000000
891.710000
0.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3286
0
100200500100500
900.000000
0.000000
0.000000
900.000000
900.000000
0.000000
USD
2014-08-10 00:00:00.000
1375
-1
100200500100500
0
0
AFR100
Incoming Payments - AFR100
NULL
24
2014-08-10 00:00:00.000
NULL
1375
1375
1375
NULL
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
NULL
N
N
30
NULL
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
0
D
0
NULL
900.000000
0.000000
900.000000
0.000000
900.000000
0.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
NULL
NULL
NULL
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
3286
1
100200200100000
0.000000
900.000000
900.000000
0.000000
0.000000
900.000000
USD
2014-08-10 00:00:00.000
NULL
-99
AFR100
0
0
100200500100500
Incoming Payments - AFR100
1375
24
2014-08-10 00:00:00.000
NULL
1375
1375
1375
NULL
NULL
2014-08-10 00:00:00.000
0.000000
NULL
0.000000
1
NULL
104
-1
-1
N
0
NULL
0.000000
0.000000
NULL
N
N
30
NULL
NULL
0.000000
0
N
0.000000
0.000000
N
0.000000
NULL
0
C
0
NULL
0.000000
900.000000
0.000000
900.000000
0.000000
900.000000
Y
N
0
NULL
0
N
NULL
NULL
NULL
1900-01-01 00:00:00.000
0.000000
NULL
NULL
NULL
NULL
NULL
0
0
0
-1
-1
0
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
1900-01-01 00:00:00.000
NULL
NULL
0.000000
0.000000
0.000000
0.000000
0.000000
N
N
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
N
NULL
NULL
0
NULL
NULL
N
NULL
NULL
NULL
NULL
NULL
NULL
NULL
But when I try the same in SDK/DI (oCmpSrv previously set), I get "Internal Error (-5002) occurred":
Try
Dim ExtReconSvc As SAPbobsCOM.ExternalReconciliationsService = oCmpSrv.GetBusinessService(SAPbobsCOM.ServiceTypes.ExternalReconciliationsService)
Dim ExtReconciliation As SAPbobsCOM.ExternalReconciliation = ExtReconSvc.GetDataInterface(SAPbobsCOM.ExternalReconciliationsServiceDataInterfaces.ersExternalReconciliation)
ExtReconciliation.ReconciliationAccountType = SAPbobsCOM.ReconciliationAccountTypeEnum.rat_BusinessPartner
Dim jeLine1 As SAPbobsCOM.ReconciliationJournalEntryLine = ExtReconciliation.ReconciliationJournalEntryLines.Add()
jeLine1.TransactionNumber = "3285"
jeLine1.LineNumber = 0
Dim jeLine2 As SAPbobsCOM.ReconciliationJournalEntryLine = ExtReconciliation.ReconciliationJournalEntryLines.Add()
jeLine2.TransactionNumber = "3286"
jeLine2.LineNumber = 1
ExtReconSvc.Reconcile(ExtReconciliation)
Catch ex As Exception
MsgBox(ex.Message)
End Try
I do not understand what I am doing wrong and I have no idea what this error means.
Thanks in advance for your help.Sorry Images were very poor in original post.
-
Internal Error (-5002) on adding Additional Expenses in a sales-document
Hi All,
I try to add an additional expense in a sales-document. I receice an internal error (-5002) What is the problem ?
I want to transfer the additional expense from a sales-order to my target delivery note.
See my example in C#:
oDlvNote.CardCode = cuno;
oDlvNote.DocDueDate = oDate;
string queryvx2 = "Select ExpnsCode, LineTotal, Comments,
DocEntry, LineNum From " + tablenameexp + " Where DocEntry
= " + origornov;
using (System.Data.SqlClient.SqlDataReader sqlReadervx2 =
SwissAddonFramework.B1Connector.GetB1Connector().ExecuteQuery(queryvx2))
while (sqlReadervx2.Read())
expcode = sqlReadervx2.GetInt32(0);
linetotexp =
Decimal.ToDouble((Decimal)sqlReadervx2.GetSqlDecimal(1));
remarksexp = sqlReadervx2.GetString(2);
docentryexp = sqlReadervx2.GetInt32(3);
linenumexp = sqlReadervx2.GetInt32(4);
oDlvNote.Expenses.BaseDocEntry = docentryexp;
oDlvNote.Expenses.BaseDocLine = linenumexp;
oDlvNote.Expenses.BaseDocType = objectnr;
oDlvNote.Expenses.ExpenseCode = expcode;
oDlvNote.Expenses.LineTotal = linetotexp;
oDlvNote.Expenses.Remarks = remarksexp;
---> oDlvNote.Expenses.Add();
oDlvNote.Lines.ItemCode = Artikel;
Regards,
RolandHi Roland,
I think it's the same issue as here:
-5002,if you reference production in a row,so all rows should be refer prod
Regards,
Frank
PS: Expenses are a "lines" type oject - just like Document_Lines - which are handled in the TB1300
Message was edited by:
Frank Moebius -
"Internal error (-5002) occurred" On Pick List Update Picked Quantity
Hi Experts,
I have an SDK program that simply tries to update the Picked Quantity in SAP. Previously it has been working fine, until I try to use the same logic for items managed by Batch or Serial Number.
In this scenario, I have created a PickList with only 1 row, the item is managed by Serial Number.
I try to simplify the code as below.
Dim oBaseDocument As SAPbobsCOM.PickLists
oBaseDocument = oComp.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPickLists)
BaseDocument.GetByKey(12345)
oBaseDocument.Lines.SetCurrentLine(0)
oBaseDocument.Lines.PickedQuantity += 1
oBaseDocument.Lines.BinAllocations.Add()
oBaseDocument.Lines.BinAllocations.SetCurrentLine(0)
oBaseDocument.Lines.BinAllocations.BinAbsEntry = CInt(sBinAbsEntry)
oBaseDocument.Lines.BinAllocations.Quantity += dXML_Quantity
oBaseDocument.Lines.SerialNumbers.InternalSerialNumber = sXML_BatchSerialNo ' <--- ***
lRet = oBaseDocument.Update
I have added the *** line for handling the Serial Number, but when it hit the Update command, the SDK returns "Internal error (-5002) occurred".
I'm not sure what does it means.
Anyway I tried to remove the *** line and it works fine for item not managed by Batch or Serial, but the issue will remains for the Items managed by Serial or Batch.
Please advise whether I missed anything in this code.
Thank you in advance.
Best Regards,
KrismaHi Krisma,
I haven't done this thing practically but error -5002 will occur, if there is any Invalid Object.
You can check it accordingly.
Hope it helps.
Thanks & Regards
Ankit Chauhan -
Internal Error (-5002) occurred
Hi,
I got the error : Internal Error (-5002) occurred when adding a new A/R invoice
I would like so much to know what exactly causes the error.
Is there any way to pin point what is it ?
Or I'm stuck alone with this not so friendly message ?
I've eliminated everything suspected to be a problem.
There's a lot of user defined field. Is there something I should know about them ?
Is there any trick to find out where the problem is ?
The code is working for SBODemo_US but when I try with the Customer's database which is BIG and have a lot of UDF, I got this.
Since its INTERNAL ERROR, I don't really know where the problem can be !
Thx you for your helpsThis was due to setting the ExpensesCode when no expenses existed
I had to eliminate possible problem line by line. A pain in the you know what... -
Internal error (-5002) occured during sap B1 version updation
Dear Experts
Internal error (-5002) occured during sap B1 version updation from SAP B1 2007B to SAP B1 8.8
Please help
S K JanaHello
You may take a look into the upgrade log file:
C:Program FilesSAPSAP Business OneLog directory,
filename should be
B1UpgradePid[xxxx]_[YYYMMHH.....].txt
You can find information inside !
If the upgrade failed, please check this file, look for notes, or report the issue to GSC.
Regards
János -
Getting Error- Internal error (-5002).
Hi
While trying to add Invoice through DIAPI, i am getting the above mentioned Error -> Internal error (-5002). I am using SAP 8.8 version.
Please help me to solve the issue..
Thanking you in Advance...
HariWe have an add-on in SAP used for Project Management. As a part of that add-on, we create A/R Invoices, A/P Invoices, and Journal Entries through the DI. This application works perfectly in SAP 2007. We are in the process of converting the application to SAP 8.8 and are encountering the same error message when we try to post any document to SAP through the DI. We put together a small sample application that tried to create an A/R Invoice passing just the minimum requirements (CardCode on header, ItemCode on line) and even that test is encountering the -5002 error on attempt to Add document.
We are attempting to determine if the issue is on our Server or if the issue is in the DI. We are aware of issues in the SAP 88 DI that don't work the way they did in the SAP 2007 DI (Dataflush, which SAP has acknowledged will be re-fixed in a higher Patch level than we are running (5) but we aren't sure if anyone else has experienced Document Posting issues. -
Creating CreditNote throw Internal error -5002
Hi experts,
I have a problem creating CreditNote via DI.
thorw error: "Returncode: -5002:: Se produjo un error interno (-5002)" (internal error)
Anybody could help me? Its extrange this error because the same code had work fine times ago
My code is:
oAbono.CardCode = oDev.CardCode
oAbono.DocType = SAPbobsCOM.BoDocumentTypes.dDocument_Items
oAbono.DocObjectCode = SAPbobsCOM.BoObjectTypes.oInvoices
oAbono.DocumentSubType = SAPbobsCOM.BoDocumentSubType.bod_None
oAbono.DocDate = oDev.DocDate
oAbono.SalesPersonCode = oDev.SalesPersonCode
'amm 20081014 forzar % a cero oAbono.DiscountPercent = oDev.DiscountPercent
oAbono.Comments = "Viene del albarán: " + oDev.DocNum.ToString
oAbono.UserFields.Fields.Item("U_FGIMAR").Value = oDev.UserFields.Fields.Item("U_FGIMAR").Value
oAbono.UserFields.Fields.Item("U_FGIDEMAR").Value = oDev.UserFields.Fields.Item("U_FGIDEMAR").Value
oAbono.UserFields.Fields.Item("U_FGIName2").Value = oDev.UserFields.Fields.Item("U_FGIName2").Value
strProducto = "Select [U_FGIVIAB] as Via, [U_FGICONB] as Cond from [@FGIPAR]"
orecordset.DoQuery(strProducto)
oAbono.PaymentMethod = orecordset.Fields.Item("Via").Value
oAbono.PaymentGroupCode = orecordset.Fields.Item("Cond").Value
oAbono.HandWritten = SAPbobsCOM.BoYesNoEnum.tNO
'Linea de factura
oAbono.Lines.SetCurrentLine(0)
strProducto = "Select [U_FGIPRD] as Prod, [U_FGIPRD1] as Prod1,[U_FGIPRD2] as Prod2, [U_FGIPRD3] as Prod3 from [@FGIPAR]"
orecordset.DoQuery(strProducto)
If oDev.UserFields.Fields.Item("U_FGIMAR").Value = "101" Then
oAbono.Lines.ItemCode = orecordset.Fields.Item("Prod").Value.ToString
End If
If oDev.UserFields.Fields.Item("U_FGIMAR").Value = "103" Then
oAbono.Lines.ItemCode = orecordset.Fields.Item("Prod1").Value.ToString
End If
If oDev.UserFields.Fields.Item("U_FGIMAR").Value = "104" Then
oAbono.Lines.ItemCode = orecordset.Fields.Item("Prod2").Value.ToString
End If
If oDev.UserFields.Fields.Item("U_FGIMAR").Value = "102" Then
oAbono.Lines.ItemCode = orecordset.Fields.Item("Prod3").Value.ToString
End If
strIva = "Select [U_FGIIVAR] as Iva from [@FGIPAR]"
orecordset.DoQuery(strIva)
oAbono.Lines.VatGroup = orecordset.Fields.Item("Iva").Value.ToString
' Para los albaranes tomamos el total del albarán.
oAbono.Lines.Quantity = 1
Dim precio As Double
precio = (oDev.DocTotal - oDev.VatSum)
Dim neto As Double
neto = precio
oAbono.Lines.Price = CDbl(neto)
lRetCode = oAbono.Add()
If lRetCode <> 0 Then
vCompany.GetLastError(lErrCode, sErrMsg)
GuardarLog("InsertarOfertaEspecialAbono: Failedu2026; Returncode: " + CStr(lErrCode) + ":: " + sErrMsg)
Return False
End IfSolved problem!.
The Origin of then problem is a PaymentMethod.
My AddOn set PaymentMethod ='C' and this paymentMethod is not set in BP Card.
I hope this trhead would be useful for the future for another person
Regards -
Internal error 5002 while DI api stock transfer ?
Hi Expert,
I am Getting the error Code -5002 While DI API Stock transfer Add Method.
but One thing this error does not occur in demo Company , But Occur in the Company that i have Created ...
Do some Specific Functional set required or other issue in it .
Regards,
Mayank ShahHi Mayank,
I haven't done this thing practically but error -5002 will occur, if there is any Invalid Object.
You can check it accordingly.
Hope it helps.
Thanks & Regards
Ankit Chauhan -
Copy Express Fails with "Internal Error (-5002) Occurred"
Hello experts:
I have SAP B1 Version 8.8, PL16.
I have two users I want to add from the old database to the new database. It works fine for one and the second one has a failure with the above error statement. I cannot figure out why the two users are creating different results. All I am doing is adding two users...
EDIT: I did see that the successful user which was brought over is a Superuser and the other one was not - the only difference between them...
Of course I have searched the forum and -5002 seems to have to do with DTW, ,but nothing on Copy Express...anyone know why this is happening???
What great error messages we have - they make so much sense!!!
Many Thanks in Advance and Regards - Zal
Edited by: Zal Parchem on Mar 25, 2011 5:04 PMHello Julie...thanks for doing that. I did the exact same thing and it just ended up "wasting" away with no response from SAP. They could not figure out themselves...and they moved the priority down to "low" (which is the kiss of death in any inquiry)...
So, I think it ends up as this whole conversation has already centered around - namely, error messages and absolutely no explanation as to what those error messages mean. LOL - like I could have ever gotten away with this while I was in development: throw out an error message and not give any of the Users exactly what the error messages mean or what they need to do to resolve the situation!!! Sloppy, sloppy, sloppy is the bottom line...
I have used Copy Express since this and have had similar experiences with error messages - it just gets down to "do as much as you can with Copy Express and then manually enter the information" - what a waste of time, especially when you consider this could be such a great tool with the proliferation of integrated systems!!!
Gook luck finding out and hopefully something comes of it...
Regards - Zal -
DTW error - internal error -5002 occuredApplication-defined 65171
hi
trying to import orders. i have 4 in a file. 3 work fine. the 4th doesn't and gets above error.
i have looked at the file column by column. all the same columns are filled in i am able to enter the order manually. this error is useless. i have no idea which column is the error
i keep trying to remove data and rerun and have been doing this for hours/days with no luck.
i don't see anything different with the data that works and doesn't except different customers items etc.All 65171 errors are somehow linked to field format. Check if you have comma in the file or not first. Try using Tab Delimited Text format so that problem might be minimized.
Thanks,
Gordon -
I always get this error when i want to create a delivery note document after a order document.
but, it is funny only when i want to add a special item, an item for which i didn't have had a goods receipt, because it isn't an inventory item.
code:
while (reader.Read())
oDelivery.Lines.ItemCode = reader[0].ToString();
oDelivery.Lines.Price = Convert.ToDouble(reader[1].ToString());
oDelivery.Lines.VatGroup = reader[2].ToString();
oDelivery.Lines.BaseEntry = oOrder.DocEntry;
oDelivery.Lines.BaseLine = Convert.ToInt32(reader[3].ToString());
oOrder.Lines.SetCurrentLine(Convert.ToInt32(reader[3].ToString()));
oOrder.Lines.LineStatus = BoStatus.bost_Close;
oDelivery.Lines.Quantity = Convert.ToDouble(reader[4].ToString());
oDelivery.Lines.Add();
when i use this loop, then i get the error message after oDeliver.add()
what could it be?Philipp,
German:
Hallo Landsmann
was mir an dem ganzen nicht gefällt ist das Du
oDelivery.Lines.Add(); zum Schluß hast.
das heisst das Du zu letzte ja Praktisch eine letzte leere Zeile hast.
ich hatte damit oft probleme.
besser Du machst einen abfrage im kopf und schaust nach
if zeile > 1 then
oDelivery.Lines.Add();
end if
damit wird bei der ersten zeile nicht hinzugefügt und es gibt keine letzte leere zeile.
nur ein Tipp ...
könnte helfen
English:
i just wrote that i don't like oDelivery.Lines.Add(); at the end - causes an empty line
lg David -
While creating Goods Receipt for multiple serial numbers it is generating an internal error
Error:Internal error (-5002) occurred [ 131-183]
we are using version SAP B1 9.0 PL 4
The code which we are using.
Dim oPDN As SAPbobsCOM.Documents
oPDN = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oPurchaseDeliveryNotes)
Dim serno As String = "SH-A1,SH-A2"
Dim sernoval As String() = serno.Split(",")
Dim mnfser As String = "SH-B1,SH-B2"
Dim mnfserval As String() = mnfser.Split(",")
For k = 0 To sernoval.Length - 1
oPDN.Lines.SerialNumbers.InternalSerialNumber = sernoval(k).Trim
oPDN.Lines.SerialNumbers.ManufacturerSerialNumber = mnfserval(k).Trim
oPDN.Lines.SerialNumbers.Quantity = linedetails(iRowNo).Quantity
Next
oPDN.CardCode = "C232323"
oPDN.Lines.ItemCode = "A00004"
'oGR.Lines.LineNum = 0
oPDN.Lines.BaseLine = 1
oPDN.Lines.BaseEntry = 202
'oGR.Lines.BaseRef = 203
oPDN.Lines.BaseType = 20
oPDN.Lines.Quantity = 1
oPDN.Lines.UnitPrice = 2
oPDN.Lines.WarehouseCode = '01'
oPDN.Lines.Add()
lRetCode = oPDN.AddHi Vasanth,
I'm not really fluent in VB, but I think that a SerialNumbers.Add() and SerialNumbers.SetCurrentLine() are missing before the Next
Regards,
Eric -
Hi,
I am trying to upload Item Master via DTW and I am getting an error -5002.
It says:
Internal Error (-5002) occuredApplication-defined or Object-defined error65171
What does this error mean and how to solve it?
I am using DTW v2005.0.21
PrajwalHi,
Please check the following thread:
https://forums.sdn.sap.com/click.jspa?searchID=18809637&messageID=5991141
Regards,
Ladislav
SAP Business One Forum Team -
Inventory Revaluation - Price Change (Error (-5002) in DTW)
Hi All ,
I want to do the Inventory Revaluation of FIFO Item through DTW.
There are set of three Template (OMRV - Doc Header , MRV1 - Doc Lines , MRV2 - FIFO Layers)
Here comes a error : Internal Error (-5002) occurred Application defined or Object Defined error65171
Please suggest !
Thanks
AshishHi Ashish.......
Please check the Format Cell of the Price Column and it should be Text.
Most of the time the problem because of Format Cell........
Regards,
Rahul
Maybe you are looking for
-
i dont have any icons except computers and settings. how do i find istore with all my previous purchased content?
-
Distiller error when trying to save book as pdf
I haven't used FrameMaker since about version 5 or 6, but recently I have picked up a few client jobs requiring RoboHelp and FrameMaker. I tearfully parted with the funds for TS 4, crossing my fingers that the investment would pay itself off. I have
-
Can I use my IPad2 in Shanghai China
We are traveling to Shanghai China in late November. We purchased an AT&T IPad2 32GB 3G to aid in reducing luggage weight and bulk. We will be there from November 20th to March end. We discussed this trip with the Apple sales person and he suggested
-
Repair Flickr tool in iPhoto 09
Awhile back, I was getting frustrated with the Flickr upload tool in iPhoto 09 and deleted it by following the advice of someone in the forums. I think I deleted a .plist file or something like that, but honestly, I can't remember. Right now, there i
-
E7 and Internet Browser Issues
Hi, Can anyone tell me if there is a way to stop the built in browser on E7 from using mobile versions of websites like facebook, google and ebay. While some sites offer a link at the bottom to change to normal view, others do not and it would be nic