Error SP2-0333: Illegal Spool File Name: (bad character: ' ')
Below is my spool file logic just to test outputting to a spool file with a date in the spool file. The date part works fine. I can see the date coming out in the error message. It doesn't like the spaces, but I am not in control of the folder names. Any ideas? I have tried putting single and double quotes around it to no avail. I also tried using the concatenation operator || to separate the path from the filename and that didn't work, either.
col sdate new_value sysdt
select to_char(sysdate,'YYYY-MM-DD') sdate from dual;
SPOOL \\Nsgnvl_files\rco\Linecost Audit\General NA Info\CLLI_Code_Discrepancy_Reports\&sysdt.SendToLCAnotInRepository.txt
SELECT TO_CHAR(sysdate) from dual;
spool off
Example :
SQL> set escape |
SQL> spool "c:\test| dir\foo"
SQL> select sysdate from dual;
SYSDATE
2007-09-27 16:31:30
SQL> spool off
SQL> exit
Disconnected from Oracle Database 10g Express Edition Release 10.2.0.1.0 - Prod
ction
C:\>cd test dir
C:\test dir>type foo.lst
SQL> select sysdate from dual;
SYSDATE
2007-09-27 16:31:30
SQL> spool off
C:\test dir>Message was edited by:
Paul M.
but I am not in control of the folder namesSorry, I didn't read carefully.....
Similar Messages
-
Replicat Error Illegal Tandem file name while reading definition file
Hi All,
I have problem while running replicat on the target db2 database i have source db is Oracle database .
** Running with the following parameters **
2012-06-06 16:38:59 INFO OGG-03035 Operating system character set identified as ISO-8859-1. Locale: en_US, LC_ALL:.
--checkparams
REPLICAT REP01
TARGETDB b88, USERID db2b88, PASSWORD ********
2012-06-06 16:38:59 INFO OGG-03036 Database character set identified as ISO-8859-1. Locale: en_US.
2012-06-06 16:38:59 INFO OGG-03037 Session character set identified as ISO-8859-1.
SOURCEDEFS ./dirdef/source_ora4.def
Source Context :
SourceModule : [er.init]
SourceID : [/scratch/aime1/adestore/views/aime1_staoi06/oggcore/OpenSys/src/app/er/init.cpp]
SourceFunction : [get_infile_params]
SourceLine : [1550]
2012-06-06 16:38:59 ERROR OGG-00303 Problem at line 27. Illegal Tandem file name: SAPSR3./1CN/CBPSAP001.
2012-06-06 16:38:59 ERROR OGG-01668 PROCESS ABENDING.I Have Replicat Parameter :
--checkparams
REPLICAT REP01
TARGETDB b88, USERID db2b88, PASSWORD *******
SOURCEDEFS ./dirdef/source_ora4.def
--DDLERROR DEFAULT IGNORE
HANDLECOLLISIONS
--assumetargetdefs
MAP SAPSR3.*, TARGET SAPSR3.*;how to clear this isue..?
thanks, a lot
Riyas
Edited by: riyas on 06-Jun-2012 03:29Do you mean like this
this is full my replicat params
--checkparams
REPLICAT REP01
TARGETDB b88, USERID db2b88, PASSWORD kagome31
SOURCEDEFS ./dirdef/source_ora4.def
--DDLERROR DEFAULT IGNORE
HANDLECOLLISIONS
--assumetargetdefs
--SOURCEDEFS ./dirdef/source_ora2.def
--SOURCEDEFS ./dirdef/test_db.def
--MAPEXCLUDE SAPSR3.PATCHHIST
MAP SAPSR3.*, TARGET SAPSR3.*;
--MAP DB.*, TARGET db2b88.*;Edited by: riyas on 06-Jun-2012 03:19 -
I get this message when I try to import some CD's to my library.
A window pops up and says
Error occurred while converting the file "name of song"
The file name was invalid or to long.
Anyone else ever get this message, and how can you import CD's???????I have had this exact same problem. I'm not sure how to fix it...
-
Error: Enter either the physical file name or the logical file name
Hi Expert,
I have error: Enter either the physical file name or the logical file name, when upload BP with external data transfer.
My Step:
1. Define Sender Structure
2. Define Transfer Rules
3. Start Transfer
When execute step 3, there's displaying error: Enter either the physical file name or the logical file name
Can you help my problem?
Any document/link for upload BP with external data transfer.
Thanks and Regards,Hi,
See thread: [CO-PA External Data Transfer|CO-PA External Data Transfer]
Regards
Leon -
Hi Experts,
I am trying to create a database in my local system, while creating i am getting error like below can anyone please help me on this.
Msg 5105, Level 16, State 2, Line 1
A file activation error occurred. The physical file name ' C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA\NewData\Demo_dynamic.mdf' may be incorrect. Diagnose and correct additional errors, and retry the operation.
Msg 1802, Level 16, State 1, Line 1
CREATE DATABASE failed. Some file names listed could not be created. Check related errors.
Awaiting for the response......!!
Niraj SevalkarI have created earlier database in 'C:\Program Files\Microsoft SQL Server\MSSQL10_50.MSSQLSERVER\MSSQL\DATA'
but now i have created one newdata folder and trying to create in it also i have checked the path what have you suggested above and the NewData folder is existed please check below snapshot
Both folders files and NewData folder which don't have any files
Niraj Sevalkar -
Error of "Could not save (file name) because write access was not granted
Error of "Could not save (file name) because write access was not granted. The users are pulling the files from a Mountain Lion server. They all have read\write access. If they try to save the file in the same directory they get that error but they can save it anywhere else on the sharepoint. If they save it in another directory then reopen it make a change and do a save as they can save it back to the original directory. Has anyone else come across this same issues
It is an enterprise solution. I just do not see why you cant save directly to the server. It seems to get weird errors. Some Adobe stuff saves fine on the server and some of it doesnt. It seems Adobe related. The permissions on the server are set correctly so it isnt a permission error
-
Date and time in spool file name
Hi,
can anyone show me how i can write the code below so that the spool file will automatically take the system time and date?
thanks again.
set term off;
set echo off;
set heading off;
set linesize 1500;
set pagesize 9999;
set feedback off;
spool /home/oracle/ATM_Upload/files/CRD000119MMDDYYHHMISS.DAT;
SELECT rec_ind||source_type||bbdsa_code||seq_num||dt_ti_ext||ver_num
as atm_header
FROM atm_dc_hd;
spool off;Hi,
I do something similar to this in a file called ed.sql which I use in SQL*Plus to give me a history of SQL*Plus buffers in separate files which follow the naming convention $DATABASE_$SID_$TIMESTAMP.sql. I use it from SQL*Plus when editing, rather than typing "ed" I type "@ed" and it does the naming for me:
-- Turn off terminal output
set termout off
-- Save current buffer to a temp file
save tmp.txt replace
-- Set editfile name to $DATABASE_$SID_$TIMESTAMP.sql
column fname new_value fname
column sid new_value sid
select trim(sid) sid
from v$mystat
where rownum = 1;
select global_name||'_&sid'||'_'||to_char(sysdate, 'YYYYMMDDHH24MISS')||'.sql' fname
from global_name;
set editfile '&fname'
-- Retrieve our initial buffer
get tmp.txt
-- Turn terminal output back on
set termout on
-- Fire up the editor
edYou could probably adapt this in the following way for your needs:
column fname new_value fname
select 'CRD000119'||to_char(sysdate, 'MMDDYYHH24MISS')||'.dat' fname
from dual;
spool '&fname'I don't know how you get the 'CRD' part of the filename but you may be able to generate that too using the above as a guide.
cheers,
Anthony -
I am getting and error message saying a duplicate file name was specified
Help I am trying to sync new songs onto my Iphone and keep getting an error message telling me "the iphone can not be synched. a duplicate file name was specified" how can i fix this,
I have a 27" iMac with the latest version of iTunes. I tried restoring my iPod and even removing and re-installing iTunes. What eventually worked for me was plugging into my PC and restoring/reformatting it to work with my PC. I don't know why it wouldn't work with my iMac, but now it seems to be working.
-
Error occured while importing xsd.file(Name contains invalid characters: -
Hello,
i muss import xsd.file. while importing this error occured:
İFMEXTDEF CCTS_CCT_SchemaModule-2.0 | http://example.org/XXX/XXX/OUT/NOZ (SC_NOZ V001 of example.org):
Name contains invalid characters: - .
Only a(A)-z(Z), 0-9, and "_" are permitted
This xsdfile name is CCTS_CCT_SchemaModule-2.0 but PI doesn't accept "-". But i muss use this file because this file is standart. What can i do for this?
Thanks
Nurhan
Edited by: Nurhan on Oct 18, 2011 11:22 AMHI,
PI doestnt support special characters like '-'. first you need to change the file name as you specify '-'. to remove that and you have to give '_'. then uyou have to impot >XSD file into ESR under ExternalDefination.
i hope this will help you.
regards,
ganesh. -
Error 1325 (not valid short file name) during JRE setup
Attempting to setup tle latest version of JRE on Windows XP Pro (either with online or offline setup), after configuration check, an error message box appears, saying
"Documenti is not a valid short file name"
The related error code is 1325.
What may be the cause of this issue?
Thanks in advance :-)Sorry for the inconvenience, but I've posted this message in a wrong section... can you delete it, please?
-
I keep getting error message (cannot save as "file name" because of a program error)
I opened a pdf in photoshop and when I need to save it back as a pdf i get this error (cannot save as "file name" because of a program error). I need to save it specifically as PDF/X-1a:2001 but the only pdf options that will work are "highest quality print" and "smallest file size". None of the others work. I'm running Photoshop CS5 on a PC laptop and I tried it on my desktop and also a mac running CS 5.5 and always get the same error. I think the problem might be with the custom color settings I have but it works fine on my work computer with the same color settings. What could be going on?
Yes, it's probably related to your color settings in some way. Why you are doing it in the first place...? Since they are ISO standards there is simply no liberty in choosing arbitrary settings for PDF/X, especially the archicval flavors... So in conclusion you will have to make your color settings compliant. The crash itself is probably a bug in the PDF libraries and it may work at your office because there you may use a different version of Acrobat/ Adobe Reader and the associated PDF libraries which do not have this bug. Still, the initial issue remains: You need to work within the spec, not against it.
Mylenium -
Putting date and time in a spool file name for output
I have bee trying to find this answer but don't know where to look: I want to take all or part of the date and/or time to create a unique filename on the fly for a spool file. Can someone point me in the right direction? I am using SQL*Plus.
undefine curDateCol
column curDateCol noprint new_value curDateCol
select to_char(sysdate,'YYYYMMDDHH24MISS') curDateCol from dual;
undefine fileName
define fileName=/myFileName_&&curDateCol..csv
prompt creating &&fileName ...
set echo off
set termout off
set showmode off
spool &&fileNamehth -
File name limit/character case
Good morning to all! Is there truly a 25 character FILE name
limit for RH? I've been advised by Adobe that there is...but this
is truly news to me after 10 years of working with RH. Its very
painful to fit names into that limit when you have over 1000 topics
in a project! But I renamed everything...carefully using
MixedCharacterCase to try to establish order. Saving often! But
then when I had to reimport files after rebuilding the .cpd file
the MixedCharacterCase had turned to mixedcharactercase for many
files. Ugh! Truly unreadable!
So...is 25 characters truly a requirement? And...how to you
force RH to remember the MixedCharacterCase for the File name?
Help!...and THANK YOU!!!!Hi Peter. Yes you did. But since I called Adobe and asked for
help and they SWORE that the 25 character limit was in fact law...I
decided I needed to try it to make sure it was not the solution I
was seeking. If I say No to their suggestions...I'm concerned that
they will tell me that they can't help me...and I absolutely,
positively need help with this project. 4-8 minutes to save a
single image name, 5+ minutes to import a simply HTML
file...ugh...life is miserable. So...I gave this a try.
But when I rebuilt the .cpd file using the .hhk file and it
lost 90% of the project even with those cute unreadable short file
names I knew I was in trouble. So I decided to ask this group
formally if 25 was really the limit, get the concensus and then
respectfully ask Adobe to rethink this 'solution'. I'm in the 24
response time window with them now. This is just no longer much fun
for this project and its business critical. You know it well...
I was not doubting your first answer...I was grasping at
straws and now I need to be able to quote this group that they have
an error in their Technical documentation.
What Fun - not!!! -
I am running a weekly procedure that spools out to a specificied file but is currently overwriting the pre-exsisting stored file. How do I assign a date time stamp to the spool command to create a new file each time I run the procedure?
That worked great. Now what about....
I run this report for the last month with output by week, here is my current code:
SELECT COUNT(FACILITYID) "Two Weeks ago", DESCRIPTION
FROM place p, report r
WHERE p.CONTROLNUMBER = r.SUBLINK AND
TRUNC(r.movedtoproduction) >= (TRUNC(SYSDATE )-14) AND
TRUNC(r.movedtoproduction) <= (TRUNC (SYSDATE)-08)
AND ((p.facilityid <> ****))
AND ((p.facilityid <> ****))
AND ((p.facilityid <> ****))
GROUP BY p.DESCRIPTION
ORDER BY p.DESCRIPTION ASC;
I would like to change "Two Weeks Ago" to 'date periods for two weeks ago.
Thanks again. -
File Name from Character through hard return. Almost there.
Hi all! I have a script that is naming my files by the characters in two text frames.
It works... to a point.
For some reason it is duplicating the name.
This is the final result. > test-2-wealth-file-stuff,2-wealth-file-+-stuff.jpg
when it should be this. > test-2-wealth-file-stuff.jpg
for some reason it is adding > ,2-wealth-file-+-stuff
any idea why? Thanks in advance.
main ();
function main() {
var curDoc = app.activeDocument;
// loop through all pages
for ( var i = 0; i < curDoc.pages.length; i++ ) {
// the current page
var curPage = curDoc.pages[i];
var pName = curPage.name;
// controls the loop
var controller = true;
// all paragraphs on the current page
var allPages = (curPage.textFrames.everyItem().paragraphs[0]); {
pageName=allPages.characters.itemByRange(0,allPages.contents.toString().indexOf("^p") -1);
var paraName = "" + pageName.contents;
var paraString = "-" + paraName.replace( /\s+$/ , "" ).replace( /\s+/g , "-" ).toLowerCase().replace('+', '');
var folderPath = "~/-client/" ;
var appendix = paraString;
var filePath = folderPath + "/" + curDoc.name.replace(/\.indd$/,"") + appendix + ".jpg";
var myFile = File( filePath );
with ( app.jpegExportPreferences) {
jpegQuality = JPEGOptionsQuality.MAXIMUM; // low medium high maximum
exportResolution = 72;
jpegExportRange = ExportRangeOrAllPages.exportRange;
pageString = pName;
curDoc.exportFile( ExportFormat.jpg, myFile, false );
} // end for > pages
} // end for > mainHello cathykka,
sorry, if I misunderstood your post.
Quick & dirty
You could replace these lines:
// all paragraphs on the current page
var allPages = (curPage.textFrames.everyItem().paragraphs[0]); {
pageName=allPages.characters.itemByRange(0,allPages.contents.toString().indexOf("^p") -1);
var paraName = "" + pageName.contents;
with this:
// all paragraphs on the current page
var allPages = (curPage.textFrames[0].lines[0]); {
var paraName = allPages.contents;
There are some other things to do, but at first this should help.
If not, please upload an example idml.
Have fun
Maybe you are looking for
-
i broke my old computer and it had my music library and stuff on it and my iphone has some of the music on it but not all of it and i know how to transfer my purchasses from my phone but how do i get all the old stuff from my computer onto my new itu
-
Program ID in RFC destination-XI
Hi can any one tell me for RFC sender channel purpose i'm creating RFC destination in SM59. through sap help and some other weblogs i'm trying create Program iD,but i'm getting some doubts on this: 1. How do i know corrosponding programID for this re
-
Accessing a arraylist in javascript
Hi can anyone tell me how to access araraylist <table class="tableborder"> <tr class="subtablerow2"><td class="boldtext">Total Marks : <bean:write name="courseCriteriaForm" property="totalMarks"/> </td> <td class="boldtext">Passing Marks : <bean:writ
-
Hi All, I am using oracle 11.2.0.4 I m using this for learning purpose Below is my table and insert statement CREATE TABLE NUMBERS(NUM NUMBER); INSERT INTO NUMBERS VALUES(1); INSERT INTO NUMBERS VALUES(2); INSERT INTO NUMBERS VALUES(3); INSERT INTO N
-
Clarification on these comments on SDN about NUMBER RANGES
Hi, In a previous discussion here, it was argued that the u201CNumber Range is not generated for every process. Number Range is generated say in case of sales orderu201D I read that the Number range is to basically improve performance by assigning th