Error in Data uploading
Dear Friends,
Subseq. processing (messages) : Errors occurred
Activation of M records from DataStore object ZSD_OD04 terminated
Error when assigning SID: Action VAL_SID_CONVERT table 0BATCH
Value 'SAP01` ' (hex. '005300410050003000310060 ') of characteristic 0BATCH contains invalid charact
Please give me the solution as soon as possible
Mohan
Hi,
I encountered the same problem in the morning.
This error is due to invalid characters in the data.
1. select the request from the request tab of the ODS.
2. Then find the entry for that request from the NEW DATA tab in Contents tab .
This will give all the list of new entries along with the record number . Pls make a note of these record nos.
3. now delete that request .
4. go to reconsruction tab and select the request monitor .
here you can edit the psa data for the recorded error records .ie. remove the invalid characters
finally reconstruct./insert the data.
this will solve the issue.
Thanks
DJ
Similar Messages
-
Error in Data upload through Flat files in SAP BPC
Hi,
we are trying to upload data from flat files in SAP BPC but an error is coming viz Object reference not set to an instance of an object .Hi,
Can you please cross check the file structure and the transfer structure.
Cheers,
Malli.... -
Error in data upload : "Exceptions in Substep: Rules"
Hi friends,
Data is loaded upto PSA but from PSA to cube it shows "Exceptions in Substep: Rules" when i runs DTP. and it shows following abap code.
cube : zsd_c03
No of records : 10
data source: 2LIS_12_VCITM
========
if l_rc ne 0 and l_t006flag = ruom_c_t006_mode-t006_iobj. " conversion_not_found
uom_iobj( exporting i_objvers = i_objvers
i_uomnm = i_uomnm
i_input_value = i_input_value
i_unit_in = IS_UOM_val-unit_in
i_unit_out = IS_UOM_val-unit_out
is_uom_val = ls_uom_val
is_uom_prop = is_uom_prop
ir_msg = ir_msg
importing es_output = es_output
changing cs_buffer = cs_buffer ).
endif.
if l_rc ne 0.
Keine Mengenumrechnung möglich
message e065(rsuom) into l_dummy_msg.
->>>> raise exception type cx_rs_msg exporting msgid = sy-msgid msgno = sy-msgno msgty = sy-msgty msgv1 = sy-msgv1 msgv2 = sy-msgv2 msgv3 = sy-msgv3 msgv4 = sy-msgv4.
endif.
========
points will be assigned for the ans.
suyashHi Experts
I have received the error message at the step
RSDS Y_VIC_SAP_PRIM_CNTR_GRP ZISSCOM -> IOBJ YECTNRTPM
Error: Exceptions in Substep: Transformation Start
When i clicked on the red exclamation mark. i was taken into the following code. is this start routine and do we have any problem in this?
METHOD get_object_ref.
DATA:
l_cx_root TYPE REF TO cx_root,
l_seconds TYPE i,
lr_exe TYPE REF TO object,
ls_tranid TYPE ty_s_tranid,
lr_model TYPE REF TO cl_rstran_model,
l_uid TYPE rssguid25,
l_prog_class TYPE rssg_progclass,
l_progname TYPE sy-repid.
READ TABLE gt_r_tranid INTO ls_tranid
WITH KEY tranid = i_tranid.
IF sy-subrc <> 0.
TRY.
CALL METHOD cl_rstran_model=>factory
EXPORTING
i_tranid = i_tranid
i_with_cto_check = rs_c_false
i_with_authority = rs_c_false
RECEIVING
r_r_model = lr_model.
CATCH cx_rstran_exception INTO l_cx_root.
RAISE EXCEPTION TYPE cx_rs_error
EXPORTING
previous = l_cx_root.
ENDTRY.
IF rs_c_false = lr_model->check_expert( ).
l_prog_class = gc_tran_progclas.
ELSE.
l_prog_class = gc_tran_progclas_expert.
ENDIF.
*-- Get program_UID for TRANID
CALL METHOD lr_model->get_progid
IMPORTING
e_progid = l_uid.
CALL FUNCTION 'RSS_PROGRAM_GET_NAME'
EXPORTING
i_uni_idc25 = l_uid
i_program_class = l_prog_class
IMPORTING
e_program_name = l_progname
EXCEPTIONS
invalid_unique_id = 1
invalid_program_class = 2
template_not_found = 3
OTHERS = 4.
IF sy-subrc <> 0.
DATA: l_r_exception TYPE REF TO cx_rs_failed,
l_r_root TYPE REF TO cx_root.
CALL FUNCTION 'RS_SYMESSAGE_TO_EXCEPTION'
EXPORTING
i_exception = 'CX_RS_FAILED'
IMPORTING
e_r_exception = l_r_root.
l_r_exception ?= l_r_root.
RAISE EXCEPTION l_r_exception.
ENDIF.
l_seconds = 120.
CALL FUNCTION 'RSS_PROGRAM_GENERATE'
EXPORTING
i_uni_idc25 = l_uid
i_program_class = l_prog_class
I_CLIENT =
I_PROGRAM_TITLE =
I_MAX_GENSTATUS = '00'
I_TIMESTAMP =
I_FORCE_GENERATION = RSSG_C_FALSE
I_DEBUG_LEVEL =
I_NO_SYNTAX_CHECK = RSSG_C_FALSE
I_NO_PRETTY_PRINTER = RSSG_C_FALSE
i_db_commit = rssg_c_true
i_seconds_to_wait = l_seconds
I_NO_RDIR_CHECK = RSSG_C_FALSE
I_BUFFERED = RSSG_C_FALSE
i_use_metaclass = rssg_c_true
I_GENFLAG =
I_WITH_HEADER_COMMENT = RSSG_C_FALSE
I_PROGRAM_NAME =
I_FORCE_RELOAD = RSSG_C_FALSE
I_SCOPE = '2'
IMPORTING
E_PROGRAM_NAME =
E_PROGRAM_GENERATED =
E_ERROR_LINE =
E_ERROR_MESSAGE =
E_CLSNAME =
E_TEMPLATE =
EXCEPTIONS
invalid_program_class = 1
invalid_unique_id = 2
generation_error = 3
template_not_found = 4
template_syntax_error = 5
program_syntax_error = 6
foreign_lock = 7
system_failure = 8
internal_error = 9
load_program_invalid = 10.
IF sy-subrc <> 0.
RAISE EXCEPTION TYPE cx_rs_error.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
PERFORM get_runtime_ref IN PROGRAM (l_progname)
CHANGING lr_exe.
*-- Get ref to local runtime class
ls_tranid-tranid = i_tranid.
ls_tranid-ref = lr_exe.
APPEND ls_tranid TO gt_r_tranid.
ENDIF.
r_ref_runtime = ls_tranid-ref.
ENDMETHOD. -
Error in data upload from CRM to BI
Hi all,
Kindly help me with this error.
An exception occurred. This exception is dealt with in more detail below
. The exception, which is assigned to the class
'CX_SY_DYN_CALL_PARAM_NOT_FOUND', was neither
caught nor passed along using a RAISING clause, in the procedure
"SMOX3_GET_DATA" "(FUNCTION)" .
Data Source - 0CRM_LEAD_H. Error occured in RSA3 , in CRMHi Anup,
Check OSS Note 857278 - Generating DataSources with BWA adapters returns errors.
I am pasting the content of the note here:
Symptom
When you generate new fields from BWA DataSources, the system issues an error message:
"DataSource cannot be generated"
This affects the DataSources that use the CRM_BWA_GET_DATA_WITH_ARC extraction module:
0CRM_COMPLAINTS_I
0CRM_LEAD_ATTR
0CRM_LEAD_H
0CRM_LEAD_I
0CRM_OPPT_H
0CRM_OPPT_I
0CRM_QUOTATION_I
0CRM_QUOTA_ORDER_I
0CRM_SALES_ACT_1
0CRM_SALES_ACT_I
0CRM_SALES_CONTR_I
0CRM_SALES_ORDER_I
0CRM_SRV_CODES
0CRM_SRV_CONFIRM_H
0CRM_SRV_CONFIRM_I
0CRM_SRV_CONTRACT_H
0CRM_SRV_IBASE_TRAN
0CRM_SRV_PROCESS_H
0CRM_SRV_PROCESS_I
Other terms
EEW, CRM_BWA_GET_DATA_WITH_ARC, 0CRM_COMPLAINTS_I, 0CRM_LEAD_ATTR,
0CRM_LEAD_H, 0CRM_LEAD_I, 0CRM_OPPT_H, 0CRM_OPPT_I, 0CRM_QUOTATION_I, 0CRM_QUOTA_ORDER_I, 0CRM_SALES_ACT_1, 0CRM_SALES_ACT_I, 0CRM_SALES_CONTR_I, 0CRM_SALES_ORDER_I, 0CRM_SRV_CODES,
0CRM_SRV_CONFIRM_H, 0CRM_SRV_CONFIRM_I, 0CRM_SRV_CONTRACT_H, 0CRM_SRV_IBASE_TRAN, 0CRM_SRV_PROCESS_H, 0CRM_SRV_PROCESS_I
Reason and Prerequisites
To determine whether you had BWA or SAPI DataSources, only SMOX3_GET_DATA was checked for, since up to now the usage of CRM_BWA_GET_DATA_WITH_ARC was unknown.
Solution
Import Support Package 04 of SAP_ABA 7.0, Support Package 14 of SAP_ABA 6.40 or Support Package 54 of SAP_ABA 6.20 or implement the specified advance correction.
When you implement the advance correction for SAP_ABA 6.20, bear in mind that Note 605469 is a prerequisite for this release.
After you implement this note, also implement Note 996352, so that the system will use the correct extractor.
Bye
Dinesh -
SAPB1 error: (-10) There is not enough quantity available for batch '0301' [Message 29-53]
(There is no quantity in ware house for this item)
What about your opinion? And How to find it?
Thanks,
Surendra.
Edited by: surendra_1982 on Dec 21, 2011 10:23 AMHi Surendra.......
In order to issue the Qty from batches it is most important to have the stock in that Batch.
Please check Batch No. Transaction report for Batch No. 0301 for particular Warehouse........
Regards,
Rahul -
What will the error in calltransactionprogram in dat upload?
hi all
what will the error in calltransaction program in dat upload, when that flat file field are not match with the ,internel table fields. what are the common errors occured errors while data uploading by using calltransaction methodfor a transaction.if you declare internal table as like quantity field then you will get short dump so you have declare internal table field as like char type.
and if you mentioned wrong field name with respect screen field then you get valid error message state that
field name is not input field.
Thanks
Seshu -
Getting an error while using BAPI for data upload using FB50
Hi,
Can someone please help with the error below :
To Upload Data Using FB50 , am using 'BAPI_ACC_DOCUMENT_POST' FM
and passing values as
obj_type = REACI
obj_KEY = '$'
obj_sys = t000-logsys
getting errors errors in return as
'Error in document: REACI $ R3_AFRICA
G/L account 2511510 is not defined in chart of accounts CSGP(though the account exists in the COA)
Control indicators for controlling area EU01 do not exist'.(we have not input any indicators)
ThanksControl indicators for controlling area (t-code OKKP ) is a primary configuration before the company is set to production. Here we maintain which sub areas of controlling are activated. Have a look at those settings.
Check the validity of the accounts/cost element in the KA03 to ensure the cost element is valid on the date of transaction.
What is the error message number? -
Data upload error during uploading data in catalogs ( CCM 2.0 )
Hi ,
I am having problem during upload of data into catalogs of CCM 2.0. I think there is some problem with my file. When i click "Upload Schema" it just upload schema not the data. But if i am removing schema from file it is giving me error.
Kindly if anyone can send me sample file for data upload in CCM 2.0 or steps to upload data correctly.
Thanks & Regards,
KamalHi,
I don't understand very well, the standard characteristic for images is /CCM/PICTURE.
It's a complex characteristic composed by
/CCM/DESCRIPTION
/CCM/URL
/CCM/MIME_TYPE. (for example image/jpeg).
If your problems still exist, you can send me your file
Regards -
What are the general errors will come in data uploading
Hi Friends,
What are the general errors will come in data uploading
Thanks in AdvancePaul
It all depends on how we configure the system. Errors may be different for different scenerios like
User ALEROMOTE Loacked for master data's
Data Sourcs has to be replicated
Activation Failures
Error occures in data Selection Etc.
Do you have any specific error so that we can work on that.
Thanks
Sat -
Profit center and cost center master data upload errors
Hi Sapiens,
Could you please guide me to resolve the below errors in profit center and cost cost center master data upload through LSMW. i am usinng recording method for upload and getting below error while uploading the data from txt file.
1. Valid from and to dates are not converting in DDMMYYYY format, which field type we have to use in field mapping?
2. some of the fields data are overlapping when uploading the data.
3. How to create validation for empty cells data.
thank in advance.
regards,
jagadeesh.Hi
when you are using LSMW for uploading PC & CC, simple way to correct the Error's WHILE RECORDING The First record, while Creating LSMW, B very care full while entering the details ,bez wht ever Fields your updating ..the same Fields get updated While LSMW Processed.
As mentioned above update the vaild from and to date in wht ever format you want While recording, in the same format all the remaining records gets updated..
Hope the suggections will Help you in solving your Issues.
Thanks
Goutam
Edited by: Goutam78 on Apr 29, 2011 8:59 PM -
Capturing the details of data in which error occured during uploading
Hi, anyone tell me how to Capturing the details of data in which error occured during uploading the file using BDC in backgroung mode. Please do the needful
Thanks & Regards.
Aniruddhahi,
This declaration is used to capture the error msg. V is the std table that captures that.i have given a sample code with this..pls chk it out..
data: err type standard table of bdcmsgcoll with header line.
SAmple code:
report z_aru_bdc_new4
no standard page heading line-size 255.
include bdcrecx1.
Generated data section with specific formatting - DO NOT CHANGE ***
parameters: p_file like rlgrap-filename obligatory.
data: err type standard table of bdcmsgcoll with header line.
data: mess(200) type c.
data: begin of it_err occurs 0,
msg(200) type c,
end of it_err.
data: begin of record occurs 0,
data element:
viewname_001(030),
data element: VIM_LTD_NO
ltd_dta_no_002(001),
data element: ZEMPID3
zempid3_003(004),
data element: ZENAME3
zename3_008(040),
data element: ZEDEPID
zedepid_009(004),
data element:
zsalkey_010(005),
data element:
salary_011(013),
data element: ZENAME3
ZENAME3_008(040),
data element: ZEDEPID
ZEDEPID_009(004),
data element:
ZSALKEY_010(005),
data element:
SALARY_011(013),
end of record.
End generated data section ***
start-of-selection.
at selection-screen on value-request for p_file.
call function 'WS_FILENAME_GET'
exporting
DEF_FILENAME = ' '
DEF_PATH = ' '
mask = '.,..'
mode = 'O' " O -- open, S -- Save.
title = 'OPEN'
importing
filename = p_file
RC =
exceptions
inv_winsys = 1
no_batch = 2
selection_cancel = 3
selection_error = 4
others = 5.
start-of-selection.
call function 'UPLOAD'
exporting
CODEPAGE = ' '
filename = p_file
filetype = 'DAT'
ITEM = ' '
FILEMASK_MASK = ' '
FILEMASK_TEXT = ' '
FILETYPE_NO_CHANGE = ' '
FILEMASK_ALL = ' '
FILETYPE_NO_SHOW = ' '
LINE_EXIT = ' '
USER_FORM = ' '
USER_PROG = ' '
SILENT = 'S'
IMPORTING
FILESIZE =
CANCEL =
ACT_FILENAME =
ACT_FILETYPE =
tables
data_tab = record
exceptions
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
others = 7
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
*perform open_dataset using dataset.
*perform open_group.
delete record index 1.
loop at record.
*read dataset dataset into record.
*if sy-subrc <> 0. exit. endif.
perform bdc_dynpro using 'SAPMSVMA' '0100'.
perform bdc_field using 'BDC_CURSOR'
'VIEWNAME'.
perform bdc_field using 'BDC_OKCODE'
'=UPD'.
perform bdc_field using 'VIEWNAME'
record-viewname_001.
perform bdc_field using 'VIMDYNFLDS-LTD_DTA_NO'
record-ltd_dta_no_002.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=NEWL'.
perform bdc_dynpro using 'SAPLZSHAP' '0002'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-SALARY'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_field using 'ZEMPTAB1-ZEMPID3'
record-zempid3_003.
perform bdc_field using 'ZEMPTAB1-ZENAME3'
record-zename3_008.
perform bdc_field using 'ZEMPTAB1-ZEDEPID'
record-zedepid_009.
perform bdc_field using 'ZEMPTAB1-ZSALKEY'
record-zsalkey_010.
perform bdc_field using 'ZEMPTAB1-SALARY'
record-salary_011.
perform bdc_dynpro using 'SAPLZSHAP' '0002'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZENAME3'.
perform bdc_field using 'BDC_OKCODE'
'=UEBE'.
perform bdc_field using 'ZEMPTAB1-ZENAME3'
record-zename3_008.
perform bdc_field using 'ZEMPTAB1-ZEDEPID'
record-zedepid_009.
perform bdc_field using 'ZEMPTAB1-ZSALKEY'
record-zsalkey_010.
perform bdc_field using 'ZEMPTAB1-SALARY'
record-salary_011.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=SAVE'.
perform bdc_dynpro using 'SAPLZSHAP' '0001'.
perform bdc_field using 'BDC_CURSOR'
'ZEMPTAB1-ZEMPID3(01)'.
perform bdc_field using 'BDC_OKCODE'
'=BACK'.
perform bdc_dynpro using 'SAPMSVMA' '0100'.
perform bdc_field using 'BDC_OKCODE'
'/EBACK'.
perform bdc_field using 'BDC_CURSOR'
'VIEWNAME'.
perform bdc_transaction using 'SM30'.
*enddo.
*perform close_group.
*perform close_dataset using dataset.
endloop.
loop at it_err.
write : / it_err-msg.
endloop.
form error.
call function 'FORMAT_MESSAGE'
exporting
id = sy-msgid
lang = '-D'
no = sy-msgno
v1 = sy-msgv1
v2 = sy-msgv2
v3 = sy-msgv3
v4 = sy-msgv4
importing
msg = mess
exceptions
not_found = 1
others = 2
if sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
endif.
it_err-msg = mess.
append it_err.
clear it_err.
endform.
If it is session method u can find the session in SM35 from where u can get the error log.
Hope this helps u,
Regards,
Arunsri -
Hi Friends,
Could you help me out with this:
I am trying to utillize the Data upload feature in Oracle APEX 4.2.
Procedure:
Create New Page > Data upload
I am giving a transformation here which checks for existing data. If data exists, the transformation updates the table else inserts. I am using the Merge command to execute this:
I am using a "PL SQL Function" here,
BEGIN
MERGE INTO DEPT TARGET
USING (SELECT :DEPTNO DEPTNO, :DNAME,:LOC FROM DUAL) SOURCE
ON (TARGET.DEPTNO = SOURCE.DEPTNO)
WHEN MATCHED THEN
UPDATE SET TARGET.DNAME = SOURCE.DNAME, TARGET.LOC=SOURCE.LOC
WHEN NOT MATCHED THEN
INSERT (TARGET.DEPTNO, TARGET.DNAME, TARGET.LOC) VALUES(SOURCE.DEPTNO, SOURCE.DNAME,SOURCE.LOC);
END;
It is a simple DEPT table which as 3 columns(DEPTNo, DNAME, LOC)
But it always throws me an error like
Sequence Action DEPTNO DNAME LOC
1 FAILED 52 EMPLOYEE MUMBAI
2 FAILED 61 TEST TEST
What is that i am doing wrong here. I have tried this before and it used to work earlier. But unfortunately it is not working now.
Your help would be appreciable.
Thank you,
Srikumar S
Edited by: Srikumar S on Mar 6, 2013 6:12 AMDear Arun,
Thank you very much for your quick answer.
You solved my question!
Regards,
Alfio -
I am getting this error while file uploading
Hi!
I am getting this error while file uploading,I can't find any solution.
SRVE0026E: [Servlet Error]-[org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found]: javax.servlet.ServletException: org.apache.commons.fileupload.FileUpload: method setSizeMax(I)V not found
at com.honeywell.sdm.base.controller.SDMActionServlet.service(SDMActionServlet.java:75)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
Please help me.I have attached the bean,action ,jsp pages
uploadInfo.jsp
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<html:html>
<HEAD>
<script>
function submitting(){
document.uploadForm.operation.value = "uploadOrgAdj";
document.uploadForm.action = "/uploadRecAction.do";
document.uploadForm.submit();
</script>
</HEAD>
<body>
<html:form action="/uploadRecAction" method="post" enctype="multipart/form-data">
Select the .xls File to upload data
<html:file property="fileName"></html:file>
<html:hidden property="operation" value=""/>
<html:button property="btn" value="Submit" onclick="submitting()"></html:button>
</html:form>
</body>
</html:html>
uploadAdjForm :
import javax.servlet.http.HttpServletRequest;
import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;
import org.apache.struts.upload.FormFile;
public class uploadAdjForm extends ActionForm{
private FormFile fileName;
* @return
public FormFile getFileName() {
System.out.println("getFileName"+fileName);
return fileName;
* @param string
public void setFileName(FormFile string) {
System.out.println("setileNmame"+string);
fileName = string;
Action:
public class uploadFinancialAdjAction extends DispatchAction{
public org.apache.struts.action.ActionForward uploadOrgAdj(org.apache.struts.action.ActionMapping mapping, org.apache.struts.action.ActionForm form, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception {
String sForward = "UploadInfo";
HttpSession session = request.getSession();
String sStartIndex = null;
String sEndIndex = null;
try
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
System.out.println(UploadForm.getFileName().getContentType().toString());
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList(); fileName = businessManager.getOrgAdjDetails(file);
boolean isMultipart = FileUpload.isMultipartContent(request);
if(isMultipart){
// Create a new file upload handler
DiskFileUpload upload = new DiskFileUpload();
// Parse the request
List items = upload.parseRequest(request);
//Process the uploaded items
Iterator iter = items.iterator();
while (iter.hasNext()) {
FileItem item = (FileItem) iter.next();
if (item.isFormField()) {
//processFormField(item);
if(item.getFieldName().equalsIgnoreCase("txtStartIndex")){
sStartIndex = item.getString();
else if(item.getFieldName().equalsIgnoreCase("txtEndIndex")){
sEndIndex = item.getString();
uploadFinancialAdjForm UploadForm=(uploadFinancialAdjForm)form;
String file=UploadForm.getFileName().toString();
uploadFinancialAdjManager businessManager = new uploadFinancialAdjManager();
ArrayList fileName = new ArrayList();
fileName = businessManager.getOrgAdjDetails(file);
}else{
if(item.getName()!=null && !item.getName().toUpperCase().endsWith(".XLS")){
throw new Exception("Please browse an excel file and Upload");
session.setAttribute("fileItem",item);
}//end of while
session.setAttribute("startIndex",sStartIndex);
session.setAttribute("endIndex",sEndIndex);
request.setAttribute("FileUploadStatus","true");
else{
throw new Exception("Error:Form is not multipart");
catch(Exception e)
System.out.println(e);
return mapping.findForward(sForward);
}Plz answer for my question
-
Error message when uploading - need help to fix
I am getting this error message when uploading to ftp host:
Error:
Error uploading file master_a-master.css. Click Resume to try again. If this problem persists, try again later.
[421 Idle timeout (600 seconds): closing control connection]
how do I fix this?? have already tried to resume,,, tried from scratch. closed program and opened again. does this each time.Make sure you're doing everything recommended by BlackBerry:
www.blackberry.com/btsc/KB34045
If you're hitting reload and it isn't reloading the OS for you, perhaps try reloading a backup file you've created (hopefully you've done some backups).
Keep us up to date on your progress.
- If my response has helped you, please click "Options" beside my post and mark it as solved. Clicking the "thumbs up" icon near the bottom of my response would also be appreciated. -
Crystal Data Conversion Issue (Error converting data type varchar to datetime)
Hi,
I can run stored procedure without error in SQL Server using my personal credentials as well as database credentials.
I can also run Crystal Report after connecting to Stored procedure without error on my desktop using my personal credentials as well as database credentials.
But when I upload the crystal report in BOBJDEV and when I run using database credentials report fails saying that "Error in File ~tmp1d1480b8e70fd90.rpt: Unable to connect: incorrect log on parameters. Details: [Database Vendor Code: 18456 ]" but I can run the crystal report successfully on BOBJDEV using my personal credentials.
I googled (Data Conversion Error Message) about this issue & lot of people asked to do "Verify Database" in Crystal Report. So I did that, but when I do it I am getting a error message like this:
Error converting data type varchar to datetime.
Where do you think the error might be occurring? Did anyone faced this kind of issue before? If so, how to resolve it?
(FYI, I am using Crystal Reports 2008, & for stored procedure I have used SSMS 2012 )
Please help me with this issue.
Thanks & Regards.
Naveen.hello Naveen,
since the report works fine in the cr designer / desktop, we need to figure out where you should post this question.
by bobjdev do you mean businessobjects enterprise or crystal reports server? if so please post this question to the bi platform space.
-jamie
Maybe you are looking for
-
I have an iPhone 4s, not jailbroken. I was able to update to 5.0.1 when it came out last year. When 5.1.1 came out, I noticed that I never received the notification that a new update was available. I updated my 2 ipads and my wife's iphone 4. I
-
Error in VA01 - "Sales order cannot be processed. Check customer type."
Hi, While creating a Sales Order in VA01, I receive this error message - "Sales order cannot be processed. Check customer type." Could you please tell me what could be the reason for this. Thank you,
-
Sending IDOC-xml to R/3 system
Hi all I am doing a bypass File to Idoc scenario.we taking the input file as idoc xml and sending it to R/3 system for IDOC generation.Every thing is normal but in SXMB_MONI its showing Obligatory node E1EDP10 missing while that segment was pe
-
I've had a few files that were created in Illy CS3 that I've opened in CS4. When I go to edit some of the text, I get the attached error message. The text does indeed reflow, which I then fix to look the way it should. I save the file and close. When
-
Problems doing a 2nd sync on Classic 160gb
I have a ipod classic 160gb ipod, have rented a movie which is not automatically going onto my ipod. When the ipod i connected and the ipod summery page shows in itunes, i am able to click on movies and i get the two boxes showing "rented movies" and