Retrieve the complete filename picked up by file adapter
Hi all,
I would like to retrieve the complete filename which is picked up by a sender file adapter. I need to know the exact filename during runtime in order to group some messages within an BPM process. No workaround (e.g. set up multiple file adapters) could be used. Do I have a chance to realize this with a module for the file adapter or maybe a dispachter class? If yes - how?
Cheers, Katrin
Hi Katrin,
Check Oss note 639106.
In this note SAP has provided information on how to determine the currently processsed file.
Thanks
Lakshman
Similar Messages
-
Extract the uri filename of an attached file
Hi,
I am attaching a file by the click of a button. It is required to retrieve the filename of the attachment as a Text/ label.
can anybody help me out on these lines.
PrashAs documented in Converting Acrobat® JavaScript for Use in LiveCycle Designer Forms:
"All Acrobat Annot properties and methods can be used in LiveCycle Designer forms.
"Note: Only Static forms support the annotation layer; Dynamic forms do not."
You will need to know the number of the annotation on the page and then you can use the "contents" property to obtain the name of the file. -
I am trying to write a script that will execute a batch file on a remote Windows server.
This line below is basically what I'm trying to do and it works without error, however I would like to use a variable for the path\filename of the batch file.
invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "\\qsc-a-ice01\D$\Test\RunThis.bat" }
If I try to use a variable as in this example below I receive the error below. The error seems to indicate it's it expecting a "FilePath" parameter. Is this true? How would I change this script to make it work when substituting a variable.
$MyProcess = "\\qsc-a-ice01\D$\Test\RunThis.bat"
Write-Host $MyProcess
invoke-command -computername QSC-A-ICE01 -scriptblock {Start-Process "$MyProcess"}
This is the error text I receive when using a variable:
PS C:\Windows\system32> D:\Test\ThisWorks.ps1
\\qsc-a-ice01\D$\Test\RunThis.bat
Cannot validate argument on parameter 'FilePath'. The argument is null or empty. Supply an argument that is not null or
empty and then try the command again.
+ CategoryInfo : InvalidData: (:) [Start-Process], ParameterBindingValidationException
+ FullyQualifiedErrorId : ParameterArgumentValidationError,Microsoft.PowerShell.Commands.StartProcessCommand
+ PSComputerName : QSC-A-ICE01
PS C:\Windows\system32>Mike,
Thanks for providing the link, it was very informative. The link described how to use the args in a ScriptBlock and provided me with an explaination as to why it works the way it does on a remote server. This is my 1st post to the forum and I don't know
how the points system works yet.
I would like to split the points , but I don't see that this is possible.
You're very welcome, I'm glad that the information was helpful.
You can mark as many posts as answers as you'd like, there's not a restriction on only having a single answer per thread. You certainly don't have to though, David's answer is more than sufficient to help any future people who find this thread.
Also, on a side note, you may want to post in the thread below. Posting there will get your account verified so you'll be able to post links and images.
http://social.technet.microsoft.com/Forums/en-US/200c33c9-abe9-494a-953a-bf53fccb3c76/verify-your-account-11?forum=reportabug
(Future people - don't use that link.
Click here and look for the current thread as a sticky.)
Don't retire TechNet! -
(Don't give up yet - 12,575+ strong and growing) -
Get the filename after an outbound file adapter operation
Hello,
I am calling an outbound file adapter operation in BPEL (10.1.3.3) - using a filename mask with a sequence (i.e. po_%SEQ%.xml). I would like to provide the filename created at run-time (i.e. po_123.xml) to my BPEL process so I can send this in an e-mail. Is this possible?
Thanks in advance!
Rod
Message was edited by: Rod - fixed a typo
Rod TunnelsWell, I took a different approach - which looks like it will work. Instead of letting the adapter decide the filename - I'm generating that in BPEL and passing that to the adapter using the header variable. So ... nevermind. ;-)
-
How to retrieve the "date created" of a picture file?
Hi there
How can I retrieve the date of the creation of a file?
It's picture I have scanned, I need to authentify it's date of creation.
Finder doesn't do it
A utility in Photoshope CS3 ( XMP ) doesn't seem reliable.
Is there any way I can retrieve with a utility , the code of the file and its date of creation?
Much help appreciated
PS:I dont have Aperture ( I figured I could ask in this forum)
thanksFinder does do it. Select the file and choose File>>Get Info (command + i)
It will tell you the date created and the date last modified.
DLS -
Source Filename to XML with File Adapter
Hi,
I need to insert the filename in the XML structure when the file is read by File Sender Adapter (FTP).
Example
<document>
<filename>file_200602081000.dat</filename>
<record>
<row>
<line>Line 1</line>
<line>Line 2</line>
</row>
</record>
</document>
It's possible?Hi,
If you are using XI SP14, you have inbuilt options to retrieve the file name in the File Sender Adapter. Once you choose that option in the Adapter configuration , in Mapping you can access the file name.
For more info refer to /people/sap.user72/blog/2005/10/01/xi-new-features-in-sp14
Following link tells about Release Notes:
http://help.sap.com/saphelp_nw04/helpdata/en/43/161682de3c04bae10000000a11466f/frameset.htm
If XI is below SP14, then you need to use Module Processor to retrieve the File Name.
regards,
Moorthy -
FCC is not able to pick in sender file adapter
Hi Experts,
I have configured sender contentent conversion.
My structure is like :
H - H1,H2,H3
D - D1,D2,D3
P - P1,P2,P3
I configured as below:
Document name:MT
Document name:namespace
Recordset name:Recordset
Recordset structure:H,1,D,,P,
Recordset sequence:ascending
Recordsets per message:*
Keyfieldname:KF
Keyfieldtype:string(case-sensitive)
H.fieldNames - H1,KF,H3
H.fieldSeparator - ;
H.keyFieldValue - H
H.endSeparator - 'nl'
H.missingLastfields - ignore
H.additionalLastFields - ignore
I have provided the same for D and P.
When i tried to pick the file my file is not picking and in communication channel log i am getting the following error
Success Channel : Entire file content converted to XML format
Warning Channel : Empty document found. Proceed without sending message
Success Confirmation mode test found. File will be resent next time .
.Could any one please help me what might be the problem exactly.
Thanks in advance
Kalam.>>When i tried to pick the file my file is not picking and in communication channel log i am getting the following error
See, any file permission (777) is not set to execute .
If you have fcc configuraton errors, You will see in the communication channel.
Set File in Delete Mode (not in Test) in CC. Just to make sure the file is picked up or not.
Stop and activate the file adapter cc and see the behaviour -
File by File picking with Standard File Adapter with NFS Protocal !!
Hi Folks,
How to pick file by file with little gap in a file directory by Standard File Adapter. One interface, one communication channle.
Ex: XML_XXXXX_XXXX1.xml
XML_XXXXX_XXXX2.xml
XML_XXXXX_XXXX3.xml
First I need to pick one file XM_XXXXX_XXXX1.xml then wait for 2 minutes and pick another one in ascending order.
I have tried with Advance option "File size" and "Msec to wait before modification check" with 1200000 MS, but no use.
Please folks any one can help in this, which is very big help?
Kind Regards
Many Thanks in advance
SanHi
My BPM steps are as follows:
1. Receive step -- Asynch
2. Transformation -- split the message
3. Switch step -- Condition "ID != ' ' from transform message'
4. In side Switch Branch 1 -- Receiver determination - Receive acknowledgment - Application
5. Send 1 -- with Application Transport, Queue Name - 'XXX'
This XXX queue I have configured on ID with EOIO Service
6. block step - Send multiple messages to same receiver on top
I have send 2 different message to one receiver, the first message is only one , second message are multiple. I am splitting with transformation step
7. Sender -2 no acknowledgement active
8. stop
Can you please tell me where I am gonna wrong!!
I will apprecite for your efforts
Regards
San -
Number of files picked up by file adapter
Hi
I have a scenario in which - I have a large number of files at the same time - to be picked up by the file adapter - each file is very small in size - like a token file a few k in size.
If I have - say 1000 files present in the folder meeting the criteria to be picked up , will the comm.channel pick up all of the 1000 - or is there a limit - on the number of files picked up in each polling ? Where is this limit set - in the comm. channel definition or somewhere on the J2EE engine at a much higher level ?
Any correct answers will be instantly rewarded.you need to sizing our XI server
SAP XI sizing guide
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/72e2bb90-0301-0010-e883-c390ad8a975a
Check this -
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/150ac490-0201-0010-0cb3-dee8d5262778
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/72e2bb90-0301-0010-e883-c390ad8a975a -
How to use the option "Use FTP Proxy" within file adapter for FTP-Proxy
Hello there,
I'm currently dealing with a problem regarding PI 7.40 file adapter and our proxy server. We have installed our pi system within our LAN behind two DMZ's. So we need to use the ftp-proxy function. But when I try to send a file useing this communication channel I'll geht the following error:
If have asked my system colleagues and they told me to use the ftp-proxy string as used in filezilla:
Is there anyway to use this type of ftp-proxy string within the pi configuration:Hi Harrish,
I have already found this note but I also found the note
1803398 - File Adapter - FTP Proxy type USER@HOST:PORT support
But as I alread tried the solution I think it's not working
regards
Christian -
FIle not picked up by File Adapter
Dear all,
File adapeter is not picking the files from the source directory by the PI system.
We could see that the files are available in the source system, kindly suggest me in this regard.
Thanks for the support.
Best Regards,
Piyushapart from the above options you can try some of the below:
1. STOP and RESTART the channel. since some time the file chanel becomes isolated and the handshaking doesn't happen properly.
2. you should always give a "time out" in the sender channel.
3. check the folder RIGHTS, you can try making it 777 (full READ,WRITE and EXECUTE) for the time being. Later you can customize
your rights as per the requirement.
Edited by: SANJAY BADHAI on Nov 24, 2010 3:41 PM -
How to store the rejected messages in bpel using file adapter
Hi all,
I am using the file adpter to read the text file.In file some bad messages are there.
now i can read the correct data.but i can't view rejected messages.
if im not using "rejectedmessagehandler" , but it is stored in default directory.
In my application,correct messages are reading but bad messages are not stored in default directory.
pls can you help on that rejected messages storeHi
You have to define rejectedMessageHandlers in activation agent part of ur fileadpater in bpel.xml.
ex:
*<activationAgent*
className="oracle.tip.adapter.fw.agent.jca.JCAActivationAgent"
partnerLink="UrPartnerLinkName">
*<property name="rejectedMessageHandlers">*
file://YourFolderStructure (Where you want to save your rejected messages... Only folder structure)
*</property>*
*</activationAgent>*
If u have any rejected messages those will be written to a file named as INVALID_MSG_ + process-name + operation-name + current-time in the above structure
Regards
PavanKumar.M -
What is the port for FTPS communication in File Adapter
Hi All,
For FTP communication the port is 21, whats the port for FTPS communication.
XIerHi Xler
u can check on this:
Basic FTP Setup Instructions
refer this thread also
FTPS
Thanks !!! -
How to get the filename from J2SE File adapter
In our project scenario , we are using J2EE and J2SE engine both .J2EE for mapping and J2SE for Deliveying the message .
In one senario, routing will be based on the filename .
J2SE Sender File adapter --- XI Adapter --- XI pipe line
So the File reaching to XI pipelane via J2SE File adapter--> XI adapter.
When we are using the dynamic configurator in the XI to get the filename
we are not able to get the file name becasue it is coming to XI via
XI adapter.
How to get the filename ????Hope I am clear about the problem.hi,
try this
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
//obtengo la Key del FileName
DynamicConfigurationKey keyF = DynamicConfigurationKey.getName();
http://help.sap.com/javadocs/NW04/current/pi/com/sap/aii/mapping/api/DynamicConfigurationKey.html
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70c89607-e4d9-2910-7280-f6746e964516
/people/mohammed.zabiulla/blog/2008/03/26/have-you-ever-tried-to-determine-mail-cc-dynamically
Hope it helps
Thanks
Rodrigo
Edited by: Rodrigo Pertierra on Apr 11, 2008 9:31 AM -
How to increase the number of files picked up by File adaptor
Dear all,
Can any one tell me how to increase the number of files picked up by File adapter.
Pl post ASAP.
Useful answers will be appreciated accordingly.
Thanks,
SrinivasHi Srinivasa,
there is no parameter for number of files to be picked..............if you have too many source files and you want to get them processed quickly, then you can specify a very small polling interval, then XI will pick your source files quickly..........but it will cause heavy load on the XI system which can lead to blockage of messages in queues........
Regards,
Rajeev Gupta
Maybe you are looking for
-
We are trying to load data into FDM and resulting in error : An error occurred importing the file . The view log is as follows what am i missing ** Begin FDM Runtime Error Log Entry [2008-09-26-19:08:59] ** ERROR: Code................................
-
Check what oracle installed components are actually being used in database
I have been allotted a new database which I have to optimize. So I am thinking about removing some installed components which I think are not being used in any way in database (i.e procedures calls etc). I can see a whole lot of components like "SDO"
-
Can somebody tell me why my reminders no longer work correctly on 7.1 update on iPhone five every time I post a reminder it would delete the time and date of the reminder and my reminders do not go off.
-
Mac to VGA Monitor adapter settings needed
I recently moved the system to another location and the dip settings were inadvertently changed in the process. I had them written down, but I lost them in the move. Anyone know the settings or how to find them? I'm using a GEM model DE770 FA monitor
-
Will the new 3GHz iMac (24") with GeForce 8800 be good for Aperture v2?
hi all. I've just seen the specs on the new iMac and I'm interested. I was resigned to buying a Mac Pro but found it difficult to justify the cost because I'm not a professional photographer. the new iMac might be good enough at a much more justifiab