Help needed for file processing using FTP
Hi All,
I am new to ODI tool and currently we are implementing one project in ODI. Could you please, any one help me on the following requirement... how to implement it?
Scenario:
i) I need to pick a file from remote host 'outbox' dir using FTP process, and place into local 'temp' dir. (I can do it with odiFTPGet tool)
ii) Change the file as per target business requirement.??? ( this step challenging me)
for ex:
if source file name : <project name>_<source ID>_<transaction name>_<unique id>.txt
target name should be : 1234_<transaction name>_<sysdate in yyyyMMddhhmmss>_<unique id>_2345.txt ( here 1234 and 2345 are hard coded values)
iii) Later move to local 'temp' to local 'outbox' dir. ( I can do it with odiFileMove tool)
iv) After successful process move the file from remote 'outbox' to remote 'archive' dir ??? (again this is challenging me).
For this my questions are:
1) How to get file name into a variable ( In one of the post , it says we need to create data model and data stores, and interface to get the file names into a file. apart from is there any easy way i can implement it in package it self?)
2) How to tokenize a long string ( i.e., need to tokenize the source file to get <unique id> and <transaction name> and map to target file name)
3) How to define implementation for Java in user function?? do we need to use class declarations and import statements?? I need a sample user function in Java.
4) How to move/rename a file in remote server?? ( need to move file from remote 'outbox' server to remote archive' dir)
5) If any step in package fails, How to get the error msg into a variable which i can use for sending mail and raise a ticket in remedy?? ( I will pass that variable to as content to mail and remedy ticket)
6) How to handle list type data (string list) by variables in ODI?? (As we can define single variable not as list.)
I am sorry to ask all my queries I a single post. But I need to solutions for all to implement this in my project.
Thanks in advance. Appreciate early response.
Regards,
Kiran.N
Can any one share your thoughts for my request.
Thanks in advance.
Regards,
Kiran
Similar Messages
-
Query help needed for querybuilder to use with lcm cli
Hi,
I had set up several queries to run with the lcm cli in order to back up personal folders, inboxes, etc. to lcmbiar files to use as backups. I have seen a few posts that are similar, but I have a specific question/concern.
I just recently had to reference one of these back ups only to find it was incomplete. Does the query used by the lcm cli also only pull the first 1000 rows? Is there a way to change this limit somwhere?
Also, since when importing this lcmbiar file for something 'generic' like 'all personal folders', pulls in WAY too much stuff, is there a better way to limit this? I am open to suggestions, but it would almost be better if I could create individual lcmbiar output files on a per user basis. This way, when/if I need to restore someone's personal folder contents, for example, I could find them by username and import just that lcmbiar file, as opposed to all 3000 of our users. I am not quite sure how to accomplish this...
Currently, with my limited windows scripting knowledge, I have set up a bat script to run each morning, that creates a 'runtime' properties file from a template, such that the lcmbiar file gets named uniquely for that day and its content. Then I call the lcm_cli using the proper command. The query within the properties file is currently very straightforward - select * from CI_INFOOBJECTS WHERE SI_ANCESTOR = 18.
To do what I want to do...
1) I'd first need a current list of usernames in a text file, that could be read (?) in and parsed to single out each user (remember we are talking about 3000) - not sure the best way to get this.
2) Then instead of just updating the the lcmbiar file name with a unique name as I do currently, I would also update the query (which would be different altogether): SELECT * from CI_INFOOBJECTS where SI_OWNER = '<username>' AND SI_ANCESTOR = 18.
In theory, that would grab everything owned by that user in their personal folder - right? and write it to its own lcmbiar file to a location I specify.
I just think chunking something like this is more effective and BO has no built in back up capability that already does this. We are on BO 4.0 SP7 right now, move to 4.1 SP4 over the summer.
Any thoughts on this would be much appreciated.
thanks,
MissyJust wanted to pass along that SAP Support pointed me to KBA 1969259 which had some good example queries in it (they were helping me with a concern I had over the lcmbiar file output, not with query design). I was able to tweak one of the sample queries in this KBA to give me more of what I was after...
SELECT TOP 10000 static, relationships, SI_PARENT_FOLDER_CUID, SI_OWNER, SI_PATH FROM CI_INFOOBJECTS,CI_APPOBJECTS,CI_SYSTEMOBJECTS WHERE (DESCENDENTS ("si_name='Folder Hierarchy'","si_name='<username>'"))
This exports inboxes, personal folders, categories, and roles, which is more than I was after, but still necessary to back up.. so in a way, it is actually better because I have one lcmbiar file per user - contains all their 'personal' objects.
So between narrowing down my set of users to only those who actually have saved things to their personal folder and now having a query that actually returns what I expect it to return, along with the help below for a job to clean up these excessive amounts of promotion jobs I am now creating... I am all set!
Hopefully this can help someone else too!
Thanks,
missy -
Help needed for file to file communication
Dear all I am working on file to file adapter in XI 3.0 . I tried to different waysof flat file location C:\ and C:/ I am not soure witch one is currect and any time i am getting NO MESSAGE FOUND ! error in SX_MONI.
and
Any one have step by step clear procedure for File to File Adapter SAP XI 3.0.
Thanking U,
<b>Murali</b>.Hi Murali,
first we need to uderstand how to do content conversion ( to convert flat files to xml format ) for which u can go through the following links :
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
/people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
http://help.sap.com/saphelp_nw04/helpdata/en/89/90fd3f0521c842e10000000a1550b0/frameset.htm
then file to file scenarios:
/people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
/people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
http://help.sap.com/saphelp_nw04/helpdata/en/43/25112ab6140b25e10000000a1553f6/frameset.htm
Configuring sender file adapter:
/people/sravya.talanki2/blog/2005/08/16/configuring-generic-sender-file-cc-adapter
/people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
Configuring receiver file adapter:
/people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
/people/jayakrishnan.nair/blog/2005/06/20/dynamic-file-name-using-xi-30-sp12-part--i
going through all the given links you will not have any problems doing a file to file scenario with any constraints.
Regards,
abhy -
Urgent help needed for XML Tags using XMLForest()
Folks
I need some urgent help regarding getting use defined tag in your
XML output.
For this I am using XMLElement and XMLForest which seems to work fine
when used at the SQL prompt but when used in a procedure throws and error
SQL> Select SYS_XMLAGG(XMLElement("SDI",
XMLForest(sdi_num)))
From sdi
where sdi_num = 22261;- WORKS FINE
But when used in a procedure,doesnt seem to work
Declare
queryCtx DBMS_XMLQuery.ctxType;
v_xml VARCHAR2(32767);
v_xmlClob CLOB;
BEGIN
v_xml:='Select SYS_XMLAGG(XMLElement("SDI",
XMLFOREST(sdi_num)))
From sdi
where sdi_num = 22261';
queryCtx :=DBMS_XMLQuery.newContext(v_xml);
v_xmlClob :=DBMS_XMLQuery.getXML(queryCtx);
display_xml(v_xmlClob);
End;
CREATE OR REPLACE PROCEDURE display_xml(result IN OUT NOCOPY CLOB)
AS
xmlstr varchar2(32767);
line varchar2(2000);
BEGIN
xmlstr:=dbms_lob.SUBSTR(result,32767);
LOOP
EXIT WHEN xmlstr is null;
line :=substr(xmlstr,1,instr(xmlstr,chr(10))-1);
dbms_output.put_line('.'||line);
xmlstr := substr(xmlstr,instr(xmlstr,chr(10))+1);
END LOOP;
end;
SQL> /
.<?xml version = '1.0'?>
.<ERROR>oracle.xml.sql.OracleXMLSQLException: Character ')' is not allowed in an
XML tag name.</ERROR>
PL/SQL procedure successfully completed.
SQL>HELP is appreciated as to where I am going wrong?Hi,
if you want to transform something to something else, you should declare, what is your source.
I would prefer to use plain XSL-Transformations, because you have a lot more options to transform your source and you can even better determine, how your output should looks like.
Kind regards,
Hendrik -
Help needed for report generation using java technologies
May i get some idea about report generation api available. some report generation tools that can be downloadble. can you please suggest how to use scheduling the printers or report generation by scheduling.
e.g. for one of my school project which generate reconciliation report (banking project) we add in a letterheader and the rest of the information presented below.
but there is some problem here.
either you "catch" no. x row where the printing will be trancated then prevented it from trancated by formatting your pages such that data will not be printed in that region. -
File missing (file\BCD error code 0Xc0000034 help need for work!
file missing (file\BCD error code 0Xc0000034 help need for work! what can i do?
have an p 2000 notebook pcHi bobkunkle, welcome to the HP Forums. I understand you cannot boot passed the error you are receiving.
What is the model or product number of your notebook? What version of Windows is installed?
Guide to finding your product number
Which Windows operating system am I running?
TwoPointOh
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos, Thumbs Up" on the bottom to say “Thanks” for helping! -
Steps for File Transfer through FTPS...!!!
Hi ,
Can anyone please tell the steps for file transfer with FTPS.
Does PI file adapter has bulilt in feauture to handle this? or
Do we need to deploy anything to handle this?
Do we need to install any certificates by requesting from partner or It will do the encryptions/authentications on its own?
Any additional Steps we need to mention in File receiver adapter while we send the file through FTPS?
File is going through port 1090(unsecure connection) but it is not going through port (990) which is a secure connection.
Please suggest me.
Thanks
KrupakarHi Shabarish,
We got the certificate from the partner and loaded into the trusted CA's. I tried running by giving
Connectivity Security as "FTPS for Control and Data Connection" and Command Order as "AUTH TLS,USER,PASS,PBSZ,PROT"
Ip: XXX.YY.YY.ZZZ
Port: 990
User and pwd.
and I am getting the same below error
Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error when getting an FTP connection from connection pool: com.sap.aii.af.service.util.concurrent.ResourcePoolException: Unable to create new pooled resource: iaik.security.ssl.SSLCertificateException: Peer certificate rejected by ChainVerifier
I tried by selecting different options like
1. Without selecting the X509 certificate for client authentication.
2. Keystore as TRUSTED\view\entry-cert
X509 certificate and private key as TRUSTED\view\entry-cert
3. Keystore as TRUSTED\view
X509 certificate and private key as TRUSTED\entry-cert
4.Keystore as "view"
X509 certificate and private key as "entry-cert"
Please help me in this.
Thanks
Krupakar -
I have been using lv_vfw.llb VI's for grabbing images from a CREATIVE WEB CAM ,i am able to get color images in the continues shot but when i try to snap a color image which i need for my processing i get only a monocrome image ,i have been trying to play around with the RGB weightings but i am unable to get a color iamge,it shall be of great help if you could help me in doing this as it is urgent for me.Thanks for your help.
vicky,
I am unfamiliar with the lv_vfw.llb, and have not used it before. However, I noticed that you stated that you are able to grab in color, just not snap in color. If this is the case, why not just perform a grab and then extract a single buffer from this grabbed data, which would likely be in color? This seems like a possible solution to the issue that you are seeing.
Other than that, I really don't know enough about the lv_vfw.llb to be of much help on this issue. Hopefully another member of this forum will be able to assist you with this software.
Regards,
Jed R.
Applications Engineer
National Instruments -
Port needed for File to File scenario
Hi,
I am new to XI, just got trained and I want to practice file to file scenario. I am able to access ID and IR.
I would like to know whether any port have to be enabled for this scenario????
I got list of ports from the basis people to enable the ports. could you tell me for which scenarios these ports have to be enabled:
Http Port 50000
ABAP Port 8000
Msg server port 3901
SDM Port 50018
File Sharing Port 445
P4 port 50004
Enqueue server port 3201
Dispatcher port 3200
Sql server Port 1433
Anymaterial to regarding port details would also be helpful.
Thanks in advance.
Regards,
KiruthigaHi Kiruthiga ,
I am new to XI, just got trained and I want to practice file to file scenario. I am able to access ID and IR.
I would like to know whether any port have to be enabled for this scenario????
--> Not required ..but you ask for FTP site if want to do file to file scenario using FTP . Default FTP port is 21 though ..
using got list of ports from the basis people to enable the ports.
---> tell them stop sending information which is not required..This is not the way of "Delivering. High Performance. "
could you tell me for which scenarios these ports have to be enabled:
Http Port 50000
ABAP Port 8000
Msg server port 3901
SDM Port 50018
File Sharing Port 445
P4 port 50004
Enqueue server port 3201
Dispatcher port 3200
Sql server Port 1433
Any material to regarding port details would also be helpful.
--> Friend not required...at this point. Though having knowledge is not a harm .
Regards, -
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re
Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
System: Windows 7
Adobe CS5
Printer: Epson Stylus Photo 1400
Paper: Inkjet matte presentation paper with slight luster
Installed latest patch for Adobe CS5
Epson driver up to date
After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
The files I am printing are photographs of dogs with lots of detail I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
When I change to these settings in printer window: Color Handling: Printer manages color. Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
Also I am confused as to what ICM color management system to use with this printer and CS5:
What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
Do I embed the ICM I choose into the new files I create?
Do I view all files in the CS5 workspace in this default ICM?
Do I set my monitor setting to the same ICM?
If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
Is using the same ICM for all devices what is called a consistent workflow?
I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
I hope this may help............... -
help needed for writing query
i have the following tables(with data) as mentioned below
FK*-foregin key (SUBJECTS)
FK**-foregin key (COMBINATION)
1)SUBJECTS(table name)
SUB_ID(NUMBER) SUB_CODE(VARCHAR2) SUB_NAME (VARCHAR2)
2 02 Computer Science
3 03 Physics
4 04 Chemistry
5 05 Mathematics
7 07 Commerce
8 08 Computer Applications
9 09 Biology
2)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2) SUB_ID1(NUMBER(FK*)) SUB_ID2(NUMBER(FK*)) SUB_ID3(NUMBER(FK*)) SUBJ_ID4(NUMBER(FK*))
383 S1 9 4 2 3
384 S2 4 2 5 3
---------I actually designed the ABOVE table also like this
3) a)COMBINATION
COMB_ID(NUMBER) COMB_NAME(VARCHAR2)
383 S1
384 S2
b)COMBINATION_DET
COMBDET_ID(NUMBER) COMB_ID(FK**) SUB_ID(FK*)
1 383 9
2 383 4
3 383 2
4 383 3
5 384 4
6 384 2
7 384 5
8 384 3
Business rule: a combination consists of a maximum of 4 subjects (must contain)
and the user is less relevant to a COMB_NAME(name of combinations) but user need
the subjects contained in combinations
i need the following output
COMB_ID COMB_NAME SUBJECT1 SUBJECT2 SUBJECT3 SUBJECT4
383 S1 Biology Chemistry Computer Science Physics
384 S2 Chemistry Computer Science Mathematics Physics
or even this is enough(what i actually needed)
COMB_ID subjects
383 Biology,Chemistry,Computer Science,Physics
384 Chemistry,Computer Science,Mathematics,Physics
you can use any of the COMBINATION table(either (2) or (3))
and i want to know
1)which design is good in this case
(i think SUB_ID1,SUB_ID2,SUB_ID3,SUB_ID4 is not a
good method to link with same table but if 4 subjects only(and must) comes
detail table is not neccessary )
now i am achieving the result by program-coding in C# after getting the rows from oracle
i am using oracle 9i (also ODP.NET)
i want to know how can i get the result in the stored procedure itsef.
2)how it could be designed in any other way.
any help/suggestion is welcome
thanks for your time --PradeeshWell I forgot the table-alias, here now with:
SELECT C.COMB_ID
, C.COMB_NAME
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID1) AS SUBJECT_NAME1
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID2) AS SUBJECT_NAME2
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID3) AS SUBJECT_NAME3
, (SELECT SUB_NAME
FROM SUBJECTS
WHERE SUB_ID = C.SUB_ID4) AS SUBJECT_NAME4
FROM COMBINATION C;
As you need exactly 4 subjects, the columns-solution is just fine I would say. -
When using iPhoto can I remove some of the default options such as faces or flagged etc. from the left bar. There are more bits than I need for my basic use.
Hello Susan,
Not sure if I have fully understood your question but have you tried ...
iPhoto > iPhoto help > browse help > view and organise. Perhaps this touches on some of your needs.
Usually, best results for questions come from posting to the forum directly related to the question, in this case iPhoto. That tends to find the gurus
Would you like me to ask the hosts to relocate your question? -
How to make a program for backgroung processing used servlet
how to make a program for backgroung processing used servlet
well i need the coding part written in servlet ,in which servlet is always ready for accepting a client request.
-
Error in Rcvr File Adapter using FTP ?
Hi @,
I am getting the follwoing error while trying to put file in the folder thru Rcvr File Adapter using FTP and it is giving me following error :
java.io.FileNotFoundException :(Permission Denied )
I have verified the permissions on the folder and it is having write permissions.
Please suggest Its urgent.
REgardshi amit,
can you
1. check whether the access to FTP is Authenticated, if so provide the username and password
2. try giving different file name at the receiver end
3. try normal ftp commands to access the folder
regards
Ramesh P -
Is Skip logic available for Payment processing using Paypal?
Is Skip logic available for Payment processing using Paypal? i.e. Conditionally i would like to enable paypal option based on user choice as either credit or check.
Yes, and it can be used to create a pay by check option.
Maybe you are looking for
-
Adobe send does it come with adobe acrobat xi standard
i have adobe acrobat XI standard - do i get to use adobe send with this version?
-
I want to add DataGrid in my custom component as a child component,
I want to add DataGrid in my custom component as a child component, can we ?? or should i generate HTML for table creation in my custom component's renderer ?
-
When I tried to login to em console unable to see the soa server up. Help
Please help me to resolve the issue. I am unable to see soa_server in up condition in em console. i followed the below steps. 1. started Admin server through startAdminServer wizard from start--> all programs 2. started Soa_server through c:\oracle\M
-
Photoshop CC will not open EOS 40D RAW files
I recently updated to Photoshop CC 2014 but cannot open Canon EOS 40D .CR2 RAW files. I can open and edit them in Lightroom but if I attempt to 'Edit in...' Photoshop from Lightroom, I get a message suggesting that I update to Photoshop Camera Raw pl
-
Error message in 7.01 upgrade patch install
When i try to install the 7.01 upgrade, I get an error message that says "Patch cannot be applied to this version of Adobe Presenter/" I uninstalled and reinstalled Presenter 7 but still no help. Adobe Chat help was an abysmal waste of time. I need