Problem with csv
I am trying to migrate storage for hyper-v vm's to a new csv. When I try to move any VM's storage to the new target I get the following error..
an error occurred while moving the virtual machine storage 0x80071008 invalid parameter.
I have already unmounted the iso on the VM
Hi,
Please try to disable ODX feature then try the move again. Then please install the Hotfix
KB2796995.
KB2796995:
Offloaded Data Transfers fail on a computer that is running Windows 8 or Windows Server 2012
http://support.microsoft.com/kb/2796995/en-us
Hope this helps.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place.
Similar Messages
-
Problem with CSV file and Ostermiller library
Hello, I'm using Ostermiller library to generate file with csv format.
The problem is that this library seems to have a bug when it comes to data including the character carriage return.
For example I try to record a file with the following data:
Field1 = Text1
Field2 = This is
a long text including
carriage return
characters
Theoritically the file should looks like this:
Text1,"This is
a long text including
carriage return
characters"
But the library creates the following:
Text1, This is\ra long text including\rcarriage return\rcharacters
The \r you can see in not 0x0D but 0x5C 0x72 !!!!!!
This is not a correct CSV format and then I cannot reopen the file correctly with Excel.
Did you already see this problem with this library?
Any idea?Even when i use ExcelCSVPrinter the text appears as -
5,1,First aid course,234,,"Boeing Everett Plant \nRoom No 108",2007-11-26,02:15:00,,04:15:00,Scheduler S.,Resourcing,,hiii abc
when I open this text in notepad. It formats properly when I open in excel as follows
5,1,First aid course,234,,"Boeing Everett Plant
Room No 108",2007-11-26,02:15:00,,04:15:00,Scheduler S.,Resourcing,,hiii abc
IS there something else that I need to do? -
Hi all,
When I import a csv file, numbers puts spaces between all of the characters, and consequently doesn't recognise numbers as numbers. I know you can get rid of these by the Find and search method, but it's a bit clunky, and it takes all of the spaces out of my titles. Is there an easy way to ensure numbers are recognised as numbers?
Additional information: the csv file is created in Java, using a file output/ data output stream.
Any help would be appreciated.As I guessed, the problem is the csv file. It is built as an UTF 16 one so tyhere is a nil byte between every characters.
Here is a quick and dirty script cleaning the files.
--=====
on run
my commun(choose file with prompt "Select a csv file" of type {"public.csv", "public.comma-separated-values-text"} without invisible)
end run
--=====
on open sel
set un_fichier to first item of sel
tell application "System Events"
set type_identifier to type identifier of un_fichier
end tell
if type_identifier is in {"public.csv", "public.comma-separated-values-text"} then my commun(un_fichier)
end open
--=====
on commun(le_fichier)
set le_texte to read le_fichier
set le_texte to my supprime(le_texte, ASCII character (0))
set eof of le_fichier to 0
write le_texte to le_fichier
end commun
--=====
removes every occurences of d in text t
on supprime(t, d)
local oTIDs, l
set oTIDs to AppleScript's text item delimiters
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
set t to l as text
set AppleScript's text item delimiters to oTIDs
return t
end supprime
--=====
Yvan KOENIG (VALLAURIS, France) lundi 3 janvier 2011 19:41:11 -
BI 7 Web Templates: Problems with csv-export
Hi all,
I am aware that a csv-export out of a web template is associated with excel, meaning that the export in csv opens in excel.
Nevertheless my problem is, that in the course of the export process several blank columns are inserted.
So when I afterwards open the file with the "windows editor" for example I have a result like
PLZ;;;45133 where I expected
PLZ;45133
Has anyone an idea?
Best regards
MarkHello,
Is there a hierarchy involved?
If yes, then the blank spaces are inserted due to the hierarchy. When the hierarchy is drilled down, the blank spaces are inserted to show the hierarchy structure. Unfortunately, this is standard and cannot be changed using standard BW functionality.
Thanks,
Michael -
Report - Problems with CSV export
Hi all,
I've tried to export a report as csv-file, but I need special formatting (every column has a given length). I found an example that's creating a csv in a before header process, using this code:
declare
date_from DATE;
date_to DATE;
begin
date_from := TO_DATE(:P1_DATE_FROM, 'DD-MON-YYYY');
date_to := TO_DATE(:P1_DATE_TO, 'DD-MON-YYYY');
owa_util.mime_header( 'application/excel', FALSE );
htp.p('Content-Disposition: attachment; filename=hsfvkr.csv');
owa_util.http_header_close;
for x in ( SELECT LPAD(VERTR, 8, 0) VERTR,
LPAD(KONTO, 10, 0) KONTO,
RPAD(NAME_1, 32, ' ') NAME,
RPAD(ORT, 32, ' ') ORT,
AUF_ART,
RPAD(AUFNR, 8, ' ') AUFNR,
RPAD(RG_NR, 8, 0) RG_NR,
TO_CHAR(RG_DAT, 'DDMMYY') RG_DATE,
MENGE,
RPAD(IDENTNR, 22, ' ') IDENTNR,
RPAD(VAR, 6, ' ') VAR,
RPAD(BEN, 30, ' ') BEN,
DECODE(NVL(LENGTH(ABMESSUNG), 0), 0, RPAD(' ', 30, ' '),
RPAD(ABMESSUNG, 30, ' ')) ABMESSUNG,
VKPREIS,
PWERT_ARAB,
ZNR
FROM EXPORT_CSV_HSFVKR
WHERE VERTR = :P1_VERTRETER
AND RG_DAT >= date_from
AND RG_DAT <= date_to )
loop
htp.p( x.VERTR || ';' ||
x.KONTO || ';' ||
x.NAME || ';' ||
x.ORT || ';' ||
x.AUF_ART || ';' ||
x.AUFNR || ';' ||
x.RG_NR || ';' ||
x.RG_DATE || ';' ||
x.MENGE || ';' ||
x.IDENTNR || ';' ||
x.VAR || ';' ||
x.BEN || ';' ||
x.ABMESSUNG || ';' ||
x.VKPREIS || ';' ||
x.PWERT_ARAB || ';' ||
x.ZNR || CHR(13) );
end loop;
htmldb_application.g_unrecoverable_error := true;
end;The export is working fine, but opening the file with a hex editor there are some strange signs at the start of the file (FF FE - ÿþ) and after every signs there's a 00 written.
Does anybody know what to do that 00 isn't written after every sign???
So it's looking quite good in Excel our customer can't import the csv because of the additional signs.
Thanks
chrissy
chrissyI did something similar to what you are trying to achive but had the following lines different.
I don't know it will be of nay help, but you can try it.
begin
-- Set the MIME type
owa_util.mime_header( 'application/octet', FALSE );
-- Set the name of the file
htp.p('Content-Disposition: attachment; filename="tes.csv"');
-- Close the HTTP Header
owa_util.http_header_close;
-- Loop through all rows in for test view
I also used chr(10) which is LF for end of line instead of CR. -
I have recived via an email attachment a .xlsx (Exel) file which is also zipped. I can not open it. I also can never get .csv files open. How do I overcome these two problems?
Thanks,
sorsinidrag it to the Desktop. double-click it to unzip it.
-
Hi
I have a field called payee1 which has to be 40 In length.
Now I have added blanks/space after i get the field to make it 40 before I call the 'SAP_CONVERT_TO_CSV_FORMAT'. but then my temp table itab1 shows the same filed with no space and I end up with the exact field length in the csv and also I have payee2 which most of the time don't have any records but my csv should show it with 40 character space right. it doesn't.
here is my code
PARAMETERS: OUTFILE LIKE dxfile-filename
DEFAULT 'C:\Apositivepay.txt',
RUNDATE LIKE PAYR-LAUFD,
Bank LIKE T012K-HBKID. "List of Possible Banks
type-pools:TRUXS.
DATA: BEGIN OF OUTPUT_REC OCCURS 0, "Output file for USBANK
ACCT(12), "bank account no
Payee1(40) type c, "payee 1
Payee2(40) type c, "payee 2
END OF OUTPUT_REC.
data: itab1 type TRUXS_T_TEXT_DATA.
data: v_outputfile type string.
SELECT * FROM PAYR WHERE HBKID = BANK
AND RZAWE IN T_TYPE AND LAUFD = RUNDATE.
MOVE: PAYR-ZNME1 TO OUTPUT_REC-PAYEE1.
PERFORM PAD_FIELD_ALPHA_40 USING OUTPUT_REC-PAYEE1.
MOVE: PAYR-ZNME2 TO OUTPUT_REC-PAYEE2.
PERFORM PAD_FIELD_ALPHA_40 USING OUTPUT_REC-PAYEE2.
v_outputfile = OUTFILE.
CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = ','
TABLES
I_TAB_SAP_DATA = OUTPUT_REC
CHANGING
I_TAB_CONVERTED_DATA = itab1
EXCEPTIONS
CONVERSION_FAILED = 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.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filename = v_outputfile
TABLES
DATA_TAB = itab1
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_WRITE_ERROR = 2
INVALID_FILESIZE = 3
INVALID_TABLE_WIDTH = 4
INVALID_TYPE = 5
NO_BATCH = 6
UNKNOWN_ERROR = 7
OTHERS = 8.
*& Form PAD_FIELD_ALPHA_40
FORM PAD_FIELD_ALPHA_40 USING P_NUM.
DATA: L TYPE I, J TYPE I.
L = STRLEN( P_NUM ).
J = 40 - L.
DO J TIMES.
SHIFT P_NUM RIGHT.
ENDDO.
WHILE SY-SUBRC <> 0.
REPLACE ' ' WITH ' ' INTO P_NUM.
ENDWHILE.
ENDFORM. " PAD_FIELDCSV files does not take space into consideration.
-
Hi,
I need to download the contents of my internal table in .csv format file.
So, I am separating the contents of the internal table with ',' (comma) and storing it in another internal table t_download.
DATA: BEGIN OF t_download OCCURS 100,
rec(800),
END OF t_download.
Now I download the contents using the FM GUI_DOWNLOAD.
The file should contain 19 records, but it downloads only 13.
If I separate the columns with '|' and then download, I get all 19 records downloaded.
Please let me know if I am doing something wrong.
Regards.Hi,
Pls chk below link..
Download CSV file
This shud answer your question.
Regds,
Lalit -
I've got a form that collects addresses, and then puts them
in a .csv file.
One of the problems I'm having is that some of the addresses
are longer and pieces of them end up going in different columns.
Is there a way around this ? Making max lengths, or putting
them in a DB instead of a csv file?
Your help is appreciated
-MKHave a read of this:
http://en.wikipedia.org/wiki/Comma-separated_values
And this:
http://www.creativyst.com/Doc/Articles/CSV/CSV01.htm
They explain how to compose a CSV properly.
Adam -
I am not able to get the updated data in a CSV file through my DataServiceClient after building my DataService Project.
The client picks the old value from the jar file which I have to rebuild after an update to the CSV file..
Is there any way I can get the updated data in CSV without having to rebuild my DataService Project?You can host your CSV file outside of the DSP application. You can access it by using file://<url-path> or http://<url-path>
-
Problem with .csv download
when i download the .csv then first column is of
div tag and last column is closing Div tag
I dont want that ,can any one help me,
thanks in advance
Avinash
null
Message was edited by:
user650064Hi
In the report attributes, under Layout and Pagination, set the Enable Partial Page Refresh to No.
Regards
Paul -
Problems With Data Alignment when spooling to a CSV file
Dear members,
I am spooling data to a csv file. My data contains 3 columns
For example :
col1 col2 col3
USD,10000033020000000000000,-1144206.34
The 2nd column is alphanumeric, it contains some rows which have only numbers and some which have numbers and alphabets.
The 3rd column contains only numbers with positive or negative values.
I am facing problem with alignment. when i open the spooled csv file then i find that the 3rd column is aligned to right .
In the 2nd column, rows which have only numbers are right justified and rows which have alpha numeric data are left justified.
I tried using the JUSTIFY function in sql plus but still it is not working for me.
Can any body give your opinion on how to control the alignment in spooled csv files.
Your responce is highly appreciated.
Here is my code :
WHENEVER SQLERROR CONTINUE
SET TIMING off
set feedback off
set heading off
set termout OFF
set pagesize 0
set linesize 200
set verify off
set trimspool ON
SET NEWPAGE NONE
col to_char(glcd.segment1||glcd.segment2||glcd.segment3||glcd.segment4||glcd.segment5||glcd.segment6) ALIAS CONCATENATED_SEGMENTS
col CONCATENATED_SEGMENTS justify left
col to_char(decode(glbal.currency_code,glsob.currency_code,
(begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr),
(begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq))) alias Total_Functional_Currency
col Total_Functional_Currency justify left
COlUMN V_INSTANCE NEW_VALUE V_inst noprint
select trim(lower(instance_name)) V_INSTANCE
from v$instance;
column clogname new_value logname
select '/d01/oracle/'|| '&&V_inst' ||'out/outbound/KEMET_BALANCE_FILE_EXTRACT' clogname from dual;
spool &&logname..csv
SELECT glsob.currency_code ||','||
to_char(glcd.segment1||glcd.segment2||glcd.segment3||glcd.segment4||glcd.segment5||glcd.segment6) ||','||
to_char(decode(glbal.currency_code,glsob.currency_code,
(begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr),
(begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq)))
from gl_balances glbal , gl_code_combinations glcd , gl_sets_of_books glsob
where period_name = '&1' /* Period Name */
and glbal.translated_flag IS NULL
and glbal.code_combination_id = glcd.code_combination_id
and glbal.set_of_books_id = glsob.set_of_books_id
and glbal.actual_flag = 'A'
and glsob.short_name in ('KEC-BOOKS' , 'KUE' , 'KEU','KEMS', 'KEAL' , 'KEAL-TW' , 'KEAL-SZ' , 'KEAM')
and glcd.segment1 != '05'
and decode(glbal.currency_code , glsob.currency_code , (begin_balance_dr - begin_balance_cr) + (period_net_dr -period_net_cr) ,
(begin_balance_dr_beq - begin_balance_cr_beq) + (period_net_dr_beq -period_net_cr_beq)) != 0
and glbal.template_id IS NULL
ORDER BY glcd.segment1 || glcd.segment2 || glcd.segment3 || glcd.segment4 || glcd.segment5 || glcd.segment6
spool off
SET TIMING on
set termout on
set feedback on
set heading on
set pagesize 35
set linesize 100
set echo on
set verify on
Thanks
Sandeepi think you do not have to worry about your code when you say that the plain texts created are ok when opened on the notepad. it is on the excel that you will need some adjustments. not sure about this but you might want to read about the applying styles in the excel by going through it's help menu.
-
Problem with number-fields in csv-Export-Files
Hello,
the export with the csv option works fine and our users like this export-function.
But Unfortunatelly we have some problems with the exported number fields. In my region I defined the field with a format mask.
On the screen it looks fine but when I change to csv the values are exported as text-values.
So in excel the columns are shown with left alignment.
When I try to change the format in excel to number, excel change the column type but not the value inside.
On this account we cannot use the sum-function and the display of the value is wrong (alignment).
Which possibilities do I have to resolve that problem?
Thanks in advance
UlrikeI have the same issue - Anyone any ideas on how to export currency values in a report to excel as numbers?
-
Problem with FileSystem (CSV) to B1 QUTN scenario
Hi Experts,
I have a problem with FileSystem to B1 QUTN scenario. I did everything exactly like in a tutorial. After I copy a csv file into "In" folder I get Failure message in a Message Log. When I open that message I can see that sender Object has wrong column name:
- <b1im:Payload ObjectTypeId="Z.F.AnySystem_WEB_B1QUTN" ObjectRole="S">
- <file LocalObjectType="WebB1QutnFile" extension="csv" filename="WebB1QutnFile" filespec="c:\b1isn\QUTN\in\WebB1QutnFile.csv" encoding="ISO-8859-1" delchar=";" wrapchar="" xmlID="FirstTag" xmlpar="" csvID="FirstLine" csvpar="" txtID="" txtpar="" xpath="" offsetdef="" pltype="csv" ruledoc="/com.sap.b1i.datasync.directory/Ext.META.File/0010000109.regex.rules.xml">
- <row>
<col>WebB1QutnFile</col>
</row>
- <row>
<col>OADAMS</col>
<col />
<col />
<col />
</row>
- <row>
<col />
<col>001-0099</col>
<col>3.000000</col>
<col>3.150000</col>
</row>
- <row>
<col />
<col>001-0099</col>
<col>4.000000</col>
<col>1999</col>
</row>
</file>
</b1im:Payload>
My CSV file:
WebB1QutnFile
OADAMS;;;
;001-0099;3.000000;3.150000
;001-0099;4.000000;1999
I changed FileInbound.xml to:
<?xml version="1.0" encoding="UTF-8"?>
<FileConfiguration xmlns="" direction="inbound">
<SysId Id="0010000109">
<pload/>
<xml_object_identification>FirstTag</xml_object_identification>
<xml_object_identification_par/>
<csv_object_identification>FirstLine</csv_object_identification>
<csv_object_identification_par/>
<txt_object_identification/>
<txt_object_identification_par/>
<character_encoding>ISO-8859-1</character_encoding>
<delimiter>,</delimiter>
<wrapper/>
<xpath/>
<CSV>
<ObjectType id="Z.F.AnySystem_WEB_B1QUTN">
<field>Customer</field>
<field>Item</field>
<field>Quantity</field>
<field>Price</field>
</ObjectType>
</CSV>
<OFFSET/>
</SysId>
</FileConfiguration>
can anyone tell me what is wrong?
Regards
SzymonHi Szymon,
this was not easy to see. In the FileInbound.xml for the tag ObjectType please change "id" into "Id":
<CSV>
<ObjectType Id="Z.F.AnySystem_WEB_B1QUTN">
<field>Customer</field>
<field>Item</field>
<field>Quantity</field>
<field>Price</field>
</ObjectType>
</CSV>
Now the columns should get their names as expected.
Best regards
Bastian -
Problems with importing text messages from PC Suit...
Problems with importing text messages from PC Suit 7.1.18.0 to my Nokia 5800
I am trying to import a csv file that contains text messages (Note that this file was created using PC Suit 7.1.18.0) to a subfolder that I have created to My Folders but PC Suits only imports the text messages to the Draft folder. Note that initially it shows that the messages are import in the correct folder but after a refresh it shows them in the Draft Folder. Is their any setting that I should change in the PC Suit or the phone? My computer runs on Windows XP Service Pack 3 and the Nokia 5800 was upgraded to the latest firmware v20.0.012
Thanks for your helpMost phones only allows importing of draft and archived box for SMS.
To do a restoring, you need to backup the SMS as a .nbu file using PC Suite and restore later.
If you got an SD card, you can also do a backup on the SD Card (backup.arc) then restore later (reset and restore: backup.arc and mmc).
What's the law of the jungle?
Maybe you are looking for
-
How do I recover data from icloud back to my iphone 5?
I am presenly going round in circles, not a clue what to look for! I can see my watsapp chat and pictures are stored in icloud, but do not know how to restore them back to my phone as all it keeps doing is the last small amout of backup - not all my
-
If anyone else is struggling with this installation, heres a workaround that Got things going for me. Redhat 6.0 Oracle 8.1.5 Webdb 2.2 The database was up and working fine. Not as many problems as earlier versions but there was still much grief gett
-
IPod HD Lag times, this is crazy
I've recently upgraded from a 4GB Silver iPod mini, a HD based iPod and I've never had a problem with the lag times between choosing songs or skipping back/forward through songs. But over the past 2 weeks of owning my iPod 5G 30GB I've become more an
-
Help on assets (FI-AA) reporting fit/gap
Hello, I've a few reporting requirements on which I would appreciate your help to assess if is there any r/3 standard report or BI business content that can fit (or can be enhanced to fit) and deliver the info needed. The reporting requirements are t
-
I have a Power Mac G5 1.8GHZ (Single), with installed Leopard a few months back and no issues during or following the install. I also have a MacBook 2GHz Core 2 Duo that I use on a day-to-day basis so the G5 hasn't been used frequently since the Leop