Error in file to file using FCC
hey guys
i m doin File to file scenario using FCC and getting the followin error in message mapping when i load the payload from SXMB_MONI
23:43:10 Start of test
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
23:43:10 End of test
the payload is of the form
<?xml version="1.0" encoding="utf-8" ?>
- <ns:DT_sender xmlns:ns="http://thoughtbyte.com">
- <Recordset>
- <Row>
<Name><?xml version="1.0" encoding="utf-8" ?></Name>
</Row>
- <Row>
<Name>- <ns:DT_sender xmlns:ns="http://thoughtbyte.com"></Name>
</Row>
- <Row>
<Name>- <Recordset></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><?xml version="1.0" encoding="UTF-8"?></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><ns:MT_sender xmlns:ns="http://thoughtbyte.com"></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><Recordset></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><Row></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><Name>ewqe</Name></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><Age>das</Age></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name><Dept>fggfgf</Dept></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name></Row></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name></Recordset></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name>- <Row></Name>
</Row>
- <Row>
<Name><Name></ns:MT_sender></Name></Name>
</Row>
- <Row>
<Name></Row></Name>
</Row>
- <Row>
<Name></Recordset></Name>
</Row>
- <Row>
<Name></ns:DT_sender></Name>
</Row>
</Recordset>
</ns:DT_sender>
any idea where the error might be?
thanx
ahmad
hey guys
i m still getting the same error,even though i have changed the payload
<?xml version="1.0" encoding="utf-8" ?>
<ns:DT_sender xmlns:ns="http://thoughtbyte.com">
<Recordset>
<Row>
<?xml version="1.0" encoding="UTF-8"?>
</Row>
<Row>
<ns:MT_sender xmlns:ns="http://thoughtbyte.com">
</Row>
<Row>
<Recordset>
</Row>
<Row>
<Row>
</Row>
<Row>
<Name>dsfdf</Name>
</Row>
<Row>
<Age>ghhg</Age>
</Row>
<Row>
<Dept>gfgfg</Dept>
</Row>
<Row>
</Row>
</Row>
<Row>
</Recordset>
</Row>
<Row>
</ns:MT_sender>
</Row>
</Recordset>
</ns:DT_sender>
i didnt knew why i waz getting <name></name> so i manually deleted them and also deleted the "-" and the pasted this in the file to be picked,file is pickin up but not being delivered and the error is still the same
00:27:23 Start of test
Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
00:27:23 End of test
thanx
ahmad
Similar Messages
-
Ignore last lines in a file using FCC
Hello,
can we ignore last two line in a file, when we are using FCC.
in a file uploaded with some special char like $#@..... due to this mapping getting failed.
i want to ignore last two lines in a file.
Regards,
ChinnaHi Chinna,
you can also use replaceString funtion to remove all special character and then use result for date transformation like shown below.
Hope it will be helpful for you.
Regards
Jitender -
Hi All,
i done File to Fcc scenario,
my scenario is successful, i got black and white flag in moni and in communicaion channel monitoring no error is displayed in trace.
but in my output file olny first field of a record is getting displayed.
my receiver file Fcc parameters are
DATA.fieldFixedLengths
4,2,10,10,10,10,10,10,10,10,10,10
DATA.fieldNames
FIELD1,FIELD2,FIELD3,FIELD4,FIELD5,FIELD6,FIELD7,FIELD8,FIELD9,FIELD10.FIELD11,FIELD12
DATA.endSeperator 'nl'
need your sugessitions regarding this,
regards,
Ramesh B.Hi Santosh,
thank u for reply,
data.endSeparator = 'nl' i already mention
data.fieldSeparator = , hear i am not going for CSV file.so i think it is not necessary.
and previously i done File to Fcc scenario with this three FCC parameters
fieldNames
fieldLengths
endSeparator
with olny DATA as sub structure.
and its work fine.
Regards,
Pradeep A. -
Hi Experts,
i am doing file to file scenario using fcc.in that i want to send multiple records as an xml file and i have to display that records in the receiver side.
thnaks in advance
lokeshYou can set the parameter Recordsets per message to *, otherwise also it is set to * by default.
This link is for your reference to set all the parameters in FCC.
http://help.sap.com/saphelp_nw70/helpdata/EN/0b/9a50465ccf84479e39a6d50c90fb3f/frameset.htm -
Error transferring files using MicroPhoto Media Explo
Hello, I'm having a very frustrating issue. I just had the hard dri've replaced on my MicroPhoto 8, and now when I try to add files using MicroPhoto Media Explorer (as I have for the last 8 months), I get the message "files not transferred; unknown error."? Likewise, when I try to use that same software to rip a cd directly to the player, it acts like it's working, then I get an error message. I know there are other ways to accomplish this, but since I'm starting from scratch, I'd rather use the method that I find to be the fastest and that I'm most familiar with. I've reloaded the software onto my PC, I've rebooted, reformatted, and updated the firmware on the player. Has anyone had this problem, or have any suggestions? Thanks!
Error which pops up : "The destination you have specified does not exist. Might be an offline network location or empty cd or dvd drive. Check location and try again"
-
Error in sending file using FCC
Hi all,
i am doing the file content conversion scenario from saptechnicalcom
my message type is as follows:
MT_File_Cont_Conv
Record
Emp_Header
Key
Emp_Id
Emp_Name
File is not picked up by the sender file adapter and in RWB communication channel monitoring i am getting the following error:
Conversion initialization failed: java.lang.Exception: java.lang.Exception: java.lang.Exception: Error(s) in XML conversion parameters found: Mandatory parameter 'Emp_Header.keyFieldValue': no value found
anybody plz provide me some input to rectify this error
regards
sandeep sharma>
sandeep sharma wrote:
> hi
> FCC parameters are as follows
>
> Document Name: MT_File_Cont_Conv
> Recordset Name: Record
> Recordset Structure: Emp_Header,1
> Recordset sequence: Ascending
> Recordset per message: 1
> Key Field Name: Key
>
>
>
>
> Emp_Header.fieldFixedLengths 1,6,10
> Emp_Header.endSeparator 'nl'
> Emp_Header.fieldNames Key,Emp_Id,Emp_Name
> Emp_Header.keyFieldValue 1
> Emp_Header.keyFieldInStructure ignore
make sure there is no white space before or after
Emp_Header.keyFieldValue and also the value 1
Even a single whitespace can cause an issue -
Creating Error log files using UTL_FILE package on a remote machine
Database Version: 10g Release2
OS Platform: Sun Solaris
I have been asked to log errors to OS files rather than tables. So, i wanted to use UTL_FILE package. But the client doesn't want to store these files on the same server where the database is running(as specified in UTL_FILE_DIR). Is there a way i could get these files created on a remote machine(client).I believe what others are suggesting is that your stored procedure continues to log to a table and a separate process be created that runs on the machine you want the file to be created on which reads the log table and writes to a log file.
If that is not an option, can you expose the directory on the remote machine you want to write the file to as a file share that can be mounted by the database server? If you can, you could write errors there using UTL_FILE. However, it would probably be a bad idea. If you're logging an error already, that implies that something has gone wrong. Making an error logging process dependent on a remote server being available and properly mounted with appropriate privileges at the instant the error occurs just creates more sources of failure that would prevent you from logging an error, which would prevent you from being able to debug the problem or even know it existed without a report from a user.
Justin -
Header and filed vlues n the same row in reciver file using FCC
Hi,
I have a scenario ,where receiver file should contain only one row (the row contain all the filed values using end separator) .
and also need to display header (file should contain only one row including header and field values).
Now i am getting 2 rows , one row contain all header ( i did using name.headerfields-3) and the second row contain all the filed values.
please let me know is there a way i can combine both header and field values in one row using receiver FCC.
Regards
Surya
Edited by: SuryaPrakash Reddy on Oct 28, 2011 9:03 AMSuryaPrakash Reddy wrote:
I thought about this (put your header in first field of your target structure.),but i want do this as last option.
this is the best option you have here since from a standard configuration you will not be able to achieve this. -
Field names with spaces in target file using fcc
Hello Friends,
My target structure fields:
MT_Target
ItemNo, ItemName, ItemQuantity, AmountValue, TotalAmount
My requirement here is - In the target file - these fields should be generated with space. Shown as below:
Item No, Item Name, Item Quantity, Amount Value, Total Amount
How can i achieve this.
Thanx
S.if i understood u correctly u want to have a header line in ut target file same as that ur field names but with a space in between??
if yes the use :
NameA.addHeaderLine=3
NameA.headerLine =Item No, Item Name, Item Quantity, Amount Value, Total Amount
http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm -
Problem in Sender File Adapter using FCC with Variable structure
Hi Experts,
Hi Experts,
I have facing an issues while using FCC in Sender File adapter. Below are the configs for the same:-
Recordset structure required is ==HEADER,1,DATA,*,TRAILER,1
Recordset per message == *
Key Field Name == Key
(Sorry i dont know how to insert screen shot here..pls tell me how can i insert screen shots here on sdn)
HEADER.fieldSeparator ,
HEADER.endSeparator u2018nlu2019
HEADER.fieldNames Key,x,y,zu2026
HEADER.keyFieldValue 1
HEADER.keyFieldInStructure ignore
HEADER.fieldContentFormatting trim
HEADER.additionalLastFields ignore
HEADER.missingLastFields ignore
DATA.fieldSeparator
DATA.endSeparator
DATA.fieldNames
DATA.keyFieldValue
DATA.keyFieldInStructure
DATA.fieldContentFormatting
DATA.additionalLastFields
DATA.missingLastFields
Using same variables for Trailer record as well.
Source CSV file which i am picking:-
ADSE ,RASD,replan Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, S Top Up ,20080401 ,20080430 ,sdf , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,ded , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, Cash Award ,20070801 ,20070831 ,df , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,sf , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
BTRL , 5140,
When i tested the scenario and monitored it using MDT in CC monitoring tool its giving me below mentioned error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'http://myurlname/mdt/me...
However if i change the occurence of DATA as some specific value for eg 4 instead of * it works fine.
Kindly help me in solving this problem.
Thanks,
Aditya VermaHi Madan,
Thanks a lot for giving me the way to this. But when i tested this with the below file its giving me the same error. Please let me know if i need to do any changes to the parameters mentioned above:-
ADSE ,ASDA,Sha replan Fr ont Feed Contact ,2 0080509 0 8:43:25 ,
EMPL ,0011111, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000431250 ,2007 , , , , , ,20080414 18:07:35,
EMPL ,0222222, r Cash Award ,20070701 ,20070703 ,TPV , 00000000023509 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0233333, r Cash Award ,20070801 ,20070831 ,TPV , 00000000044057 ,2007 , , , , , ,20080414 18:10:56,
EMPL ,0244444, Cash Award ,20080101 ,20080111 ,TPV , 00000000026717 ,2007 , , , , , ,20080414 18:08:29,
EMPL ,0255555, Cash Award ,20080301 ,20080320 ,TPV , 00000000027870 ,2007 , , , , , ,20080414 18:08:25,
EMPL ,0266666, Cash Award ,20071001 ,20071020 ,TPV , 00000000020681 ,2007 , , , , , ,20080414 18:09:31,
EMPL ,0877777, Cash Top Up ,20080401 ,20080430 ,TPV , 00000000036000 ,2007 , , , , , ,20080414 18:07:05,
EMPL ,0888888, Leaver Cash Award ,20071201 ,20071231 ,TPV , 00000000157200 ,2007 , , , , , ,20080414 18:11:29,
EMPL ,0899999, S Leaver Cash Award ,20080301 ,20080331 ,TPV , 00000000153530 ,2007 , , , , , ,20080414 18:07:42,
EMPL ,0800000, S Leaver Cash Award ,20070701 ,20070731 ,TPV , 00000000012234 ,2007 , , , , , ,20080414 18:08:34,
BTRL , 5140,
This the original csv file which i'll get in live. Kindly suggest as ur solution worked with other file but not working with this scv file.
Thanks a lot,
Aditya. -
Error in Receiver File adapter - FCC
Got error message as "File Adapter Receiver Channel CC_OB_REQ: Not initialized - cannot proceed: null"
My requirement is to send IDOC to file which consists of 4 fields, My target message interface is
MT_REQ
FILE_STRUC
FILE_OP
AAA (Field1)
BBB(Field2)
CCC(Field3)
DDD(Field4)
Output file should contain the above 4 fields with fixed lengths 20,1,1,2
So I declared FCC in File Adapter as
I tried many options
RecordSet Structure: MT_REQ,FILE_STRUC,FILE_OP
FILE_STRUC.fieldSeparator - 'nl'
FILE_OP.fixedFieldLengths - 20,1,1,2
FILE_OP.fieldSeparator - 'nl'
FILE_OP.endSeparator - 'nl'.
Please let me know where is the problem?
Thanks in advance,
KrishnaHi Ramakrishana,
In FCC fixed length file format when your XML payload is goes to Adaptor engine, it should contain all fields in XML. Otherwise its throw error in FCC channel. Please check receiver payload at SXMB_MONI or message monitoring of Run time work bench. In that payload you will find that some of the fields is not generated in target payload.
Field in receiver payload is not generated means from sender payload corresponding field is not coming. As per my past experience this generally happens in IDOC sender.
solution:- In message mapping in every field from IDOC to file use mapWithDefault node function with null value. Due to this though if any field do not generates in IDOC, corresponding field will generate in File Payload and it will not throw error in FCC.
Regards,
Prashant -
My LR 4 suddenly no longer recognized my memory cards. I am using the same cards and cameras but consisitently get the error message:"files not imported because the files could not be read. they are jpg and nef files...I am stuck without my workhorse! Any advice is helpful. This has never happened in 6 years
answered in your other thread LR 4 suddenly no longer recognizes files.
-
Hi All,
upload failed your changes were saved but could not be uploaded because of an error. you may be able to upload this file using server web page. save a copy button.
This is the issue which I am facing while working with SharePoint 2010. In a sharePoint 2010 document library I am having an excel file and I am trying to open it from Windows 7 and is office 2010.
I cam e across few suggestion as mentined below but unable to find the location where to do
Go to Resource Policies > Web >
Rewriting > Custom Headers > (if 'Custom Headers' is not visible, click
Customize on the right top to enable the view).
Create a new policy with the Resource as <fully qualified domain name of the SharePoint server:*/*> (for example https://sharepoint.juniper.net:*/* ).
Create the action as Allow Custom Headers.
Apply the settings to the required roles.
Please suggest.Hi rkarteek
All things you have to do is as follows:
1. Open regedit.exe
2. Naviagate to following key:
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\14.0\Common\Internet]
3. Click Edit Menu -> New -> DWORD with name of "FSSHTTPOff"
(without quotes)
4. Click on "FSSHTTPOff" and enter value of 1
5.
Close any Office Applications and browser sessions
6. Try to reopen your document (no more read only or failure to upload)
have a nice day! -
Not able to extract performance data from .ETL file using xperf commands.
Xperf Commands:
xperf –i C:\TempFolder\Test.etl -o C:\TempFolder\BootData.csv –a process
Getting following error after executing above command:
"33288636 Events were lost
in this trace.
Data may be unreliable
This is usually caused
by insufficient disk bandwidth for ETW lo
gging.
Please try increasing the minimum
and maximum number of buffers
and/or
the buffer size.
Doubling these values would be a good first at
tempt.
Please note, though, that
this action increases the amount of me
mory
reserved
for ETW buffers, increasing memory pressure on your sce
nario.
See "xperf -help start"
for the associated command line options."
I changed page size file but its does not work for me.
Any one have idea, how to solve this problem and extract ETL file data.I want to mention one point here. I have total 4 machines out of these 3 machines above
commands working properly. Only one machine has this problem.<o:p></o:p>
Hi,
I consider that you can try to use xperf to collect the trace etl file and see if it can be extracted on this computer:
Refer to following articles:
start
http://msdn.microsoft.com/en-us/library/windows/hardware/hh162977.aspx
Using Xperf to take a Trace (updated)
http://blogs.msdn.com/b/pigscanfly/archive/2008/02/16/using-xperf-to-take-a-trace.aspx
Kate Li
TechNet Community Support -
Loading big XML files using JDBC gives errors
Hi,
I've created a XMLType table using binary storage, with the restriction that any document stored has a (any) schema:
CREATE TABLE XMLBIN OF XMLTYPE
XMLTYPE STORE AS BINARY XML
ALLOW ANYSCHEMA;Then I use JDBC to store a relatively large document using the following code:
Class.forName("oracle.jdbc.driver.OracleDriver").newInstance();
String connectionString = "jdbc:oracle:thin:@host:1521:sid";
File f = new File("c:\\temp\\big.xml");
Connection conn = DriverManager.getConnection(connectionString, "username", "password");
XMLType xml = XMLType.createXML(conn,new FileInputStream(f));
String statementText = "INSERT INTO xmlbin VALUES (?)";
OracleResultSet resultSet = null;
OracleCallableStatement statement = (OracleCallableStatement)conn.prepareCall(statementText);
statement.setObject(1,xml);
statement.execute();
statement.close();
conn.commit();
conn.close();Loading a file of 61Mb (real Mb, in non-IT Mb (where 1Mb seems to be 10^6) it is 63.9Mb) or less doesn't give any errors, loading a file bigger then that gives the following error:
java.sql.SQLRecoverableException: Io exception: Software caused connection abort: socket write error
at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:101)
at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:112)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:173)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:229)
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:458)
at oracle.jdbc.driver.T4CCallableStatement.executeForRows(T4CCallableStatement.java:960)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1222)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
at oracle.jdbc.driver.OraclePreparedStatement.execute(OraclePreparedStatement.java:3482)
at oracle.jdbc.driver.OracleCallableStatement.execute(OracleCallableStatement.java:3856)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.execute(OraclePreparedStatementWrapper.java:1373)
at jdbctest.Tester.main(Tester.java:60)A succesful insert of a 63Mb file takes about 23 seconds to execute. The 70Mb file fails already after a few seconds, so I'm ruling out any time outs.
I'm guessing there are some buffers that need to be enlarged, but don't have a clue which ones.
Anyone any idea what might cause the problem and how to resolve?
My server runs Oracle 11g Win32. The client is Windows running Sun Java 1.6, using ojdbc6.jar and Oracle 11g Client installed.
Cheers,
HaraldHi Mark,
The trace log in the OEM shows me:
Errors in file d:\oracle11g\app\helium\diag\rdbms\helium\helium\trace\helium_ora_6948.trc (incident=7510): ORA-07445: exception encountered: core dump [__intel_new_memcpy()+613] [ACCESS_VIOLATION] [ADDR:0x0] [PC:0x6104B045] [UNABLE_TO_WRITE] [] If needed I can post the full contents (if I find out how, am still a novice :-))
Cheers,
Harald
Maybe you are looking for
-
Can't get NVIDIA/Intel Optimus (Dell XPS 15) to work, startx fails.
I have an up to date Arch and am working from a clean install. I'm trying to run X using NVIDIA only, as outlined here: https://wiki.archlinux.org/index.php/NV … ing_nvidia . I don't want to use bumblebee unless this just can't work. The text that co
-
Hi I have a query regarding reading zip files created by the following class: class CreateZip extends Thread { CreateZip(Vector FileList) { try { File zipFile = new File("C:/test.zip"); if (zipFile.exists()) {
-
Hi Friends, I have one doubt on selection screen of logical database PNP. I enter the date in selection screen as 01.06.2006 to 31.12.2006 for both data selection and person selection. In the database table date(begda) is 01.01.2000. When i use provi
-
FSRM quota not showing correct usage
The quota management of FSRM doesn't show the correct quota details for drive C: It's used just to monitor the diskspace so no quotas have been enabled. Quota details shows limit 50 GB and and Available 18 GB But Volume details shows capacity 50 GB a
-
European Portuguese (pt-pt) in Acrobat XI Pro
Where can I get information on whether Acrobat XI Pro supports European Portuguese (interface, spelling dictionaty, hyphenation, read out loud function)? Thanks.