Issue with Dynamic file Naming
Hello Experts,
I am doing a scenario where in for one incoming field we are using dynamic configuratiion UDF for getting the filename.Now I am able to get the filename correctly.Now the issue is for the result output file I do not need this field . For Ex : The incoming field has some value say ABC_XYZ which I use and then concatenate it with time and date stamp in the UDF and then send it to the output.
Now at the result I dont need this field ABC_XYZ. The aim was to use it to generate only the file name with ABC_XYZ_date_time.
Please guide on the same as to how this field can be eliminated.Is it possible to do so in content conversion in file adapter using some Ignore thing. Please guide. Hope I have cleared my doubt.
Hi Amit,
You can create another segment with in the target message type and remove that in content conversion. You can use this blog as reference:
/people/sravya.talanki2/blog/2005/08/11/solution-to-the-problem-encountered-using-variable-substitution-with-xi-sp12
Else you can use shabarish weblog and can come up with the filename in your mapping and store it in FileName and then put in your receiver comm. channel as FileName which should take care of your issue.
Regards,
---Satish
Similar Messages
-
Dynamic file naming for two or more files in same mappin
Hello,
I am working with Dynamic file naming on receiver files...
Here two files are coming as output files...
I am using JAva UDF to handle the two file name....
But one one file is formed and another is missing as its 505 file aleady existing error is coming in Receivr Communication channel monitoring...
How to name different dynamic names for the two differenet filesHi Sunil,
Go thru this blog:
The specified item was not found.
Use this Variable Substitution method as an alternative option:
http://help.sap.com/saphelp_nw2004s/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/frameset.htm
SAP NetWeaver XI: Variable Substitution with Adapter-Specific Message Attributes via DynamicConfigurationBean
OR
The specified item was not found.
Regards,
Vinod. -
Dynamic file naming with File/FTP adapter
Hi all,
I have a requirement for writing files with names of the files based on a customer ID.... a dynamic name based on a value retrieved from the customer DB.
I have already tried using the dynamic file naming suggestion in the bpel dev guide, it does not work. I followed the instructions, the process fails to compile and throws "part" and "undefined variables" errors etc.
Has anyone succesfully used file/ftp adapter to write files with dynamic file names (using a varibale), not %SEQ% or %datetime% formats?
Thanks,
HasanYou can create a header variable that will allow you to set the outbound file name inside the process. This variable is a message type. From the type chooser select:
Message Types
Partner Links
Outbound Partner Link
Outbound wsdl
Message Types
Imported WSDL
fileAdapterOutboundHeader.wsdl
OutboundHeader_msg
This variable will have a part filename.
Set this part to whatever you wish your file to be named.
Select the invoke to your outbound file/ftp partnerlink. Move to the adapters tab and select the header variable you created as the Input Header Variable. -
A serious issue with excel file read in ODI
hi gurus,
Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
FullName = objArgs(I)
FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
Set objExcel = CreateObject("Excel.application")
set objExcelBook = objExcel.Workbooks.Open(FullName)
objExcel.application.visible=false
objExcel.application.displayalerts=false
objExcelBook.SaveAs FileName & "csv",23
objExcel.Application.Quit
objExcel.Quit
Set objExcel = Nothing
set objExcelBook = Nothing
Next
Now this script convert the xls file to csv with comma seprated values
e.g in excel sheet if data is ABC XYZ PQR
csv will come with ABC,XYZ,PQR
here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
but if i change 23 with 124 its not working i getting the error cannot save as...
can anyone tell me that what should be the correct code for pipe
so that the output is ABC|XYZ|PQR
AS WE CAN USE THE SCRIPTS IN TOOLS
Edited by: 789141 on Sep 14, 2010 11:33 PMI dont have the answer for your question but i have different approach in handling multiple Excel File.
Step 1. Copy a sample source Excel File and Call it Final.xls .
Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
Step 3. Do the Reversing and Map and test the Interface . Once its done.
Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
Step 7. Increment the Loop and copy your next File for Final and run the interface
Step 8 . Finally you will be able to read all the Excel File .
Step 9 . Delete the source file [ Optional ]
Hope this helps. -
Hi. I am having issues with copying files to my shared WB 2TB HDD connected to my airport extreme. Comes up with error 50. I am using a Macbook Pro to copy from so not sure what I am doing wrong. Can someone help? thanks Rory
These links might provide some information that may be of help.
http://support.apple.com/kb/TA20831
https://discussions.apple.com/message/2035035?messageID=2035035
I've encountered this error myself upon occasion. If I remember correctly, it was a permissions/ownership issue with the some of the files I was copying. -
I am having issues with Sidebar files not appearing from within InDesign CS5.5. They show up fine from other Adobe applications. Using OS10.6.8.
I would first of all trash the preference file for InDesign, make sure the application is closed then find the prefs in
/Users/USER NAME/Library/Preferences/Adobe InDesign and just throw the entire folder away, it will generate a new one after you launch InDesign again.
Now launch InDesign and see if the problems are resolved.
If not I would repair your permissions on your hard drive wih disk utility, and if that fails then di-install InDesign and re-install that single application.
Let me know if any of these suggestions work for you
I will be checking my email although you might have to wait for a response as I will be taking a microlight flight over the Victoria Falls tomorrow. Yay can hardly wait. -
Hi Experts,
I have an issue with Sender File FCC Adapter. The file being picked is of type TXT and it is tab seperated. The first line contains the field names and from next line onwards we have values for those fields.
The field names and field values are tab seperated. Even inserting a single letter in some field value manually disrupts the whole setup & alignment of the TXT file and the Sender File CC is unable to pick up the file from the shared folder. If the first file is errorenous and after that a correct TXT file is posted, it fails to pick up the correct file as it is trying to pick the errorenous file first.
The Error thrown is :
"Conversion of file content to XML failed at position 0: java.lang.Exception: ERROR converting document line no. 2 according to structure 'ABCD':java.lang.Exception: ERROR in configuration / structure 'ABCD.': More elements in file csv structure than field names specified!"
I have two questions:
1. Is there a way to handle such a scenario? For e.g., the errornous TXT file gets picked but throws error in PI.
2. Is there an alternative that the sender FCC channel picks up the correct files and filter out the errorneous ones ? ?
Thanks,
ArkeshHi Arkesh,
I think you are passing more number of fields than expected. Please check paramters defined and send the data accordingly.
In the processing parameters tab of sender file adapter, you have an option called Archive faulty source files, below to that you would have option to enter the " Directory for Archiving files with Errors".
I hope this helps you....
Thanks, -
Hi everyone.
I want to know how export oracle tables with dynamic file name on windows XP platform.
bye.You'd have to generate the export command-line or par file using a script -- Windows or SQL !
It would be easy to use SQL to generate the script.
So you could have a BATch file that
a. Calls the SQL to generate the export command-line or parfile
b. Executes the export
even possibly run in a loop.
Hemant K Chitale -
Issue with attachment file name
Hi All,
This is about an issue with attachment file name:
we have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
Regards
kiranwe have a scenario wherein we have payload with attachments ...(attachments can be any doc ,pdf) , problem is main document is comming with messageid.sap.com and thats normal but attachments are comming with file names for example something.pdf or something.doc or something.txt ...this is failing in adapter as it expects same name as u have in main document...anybody have any idea to get through this issue...
- <SAP:Payload xlink:href="cid:payload-4CED452F17C601BDE10080000A492050---sap.com">
<SAP:Name>1 .Header1.txt</SAP:Name>
Error we are getting is
Cannot cast 'Header' to boolean] in class com.sap.aii.mappingtool.flib7.NodeFunctions method createIf[Header, com.sap.aii.mappingtool.tf7.rt.Context---27a73bfa]
So we have to change the File name Header1.txt to something which we can cast to creatif....(we cannot tell the sendr to change the file name as its is set already)
Thanks for interste and assisting
Regards
Kiran -
Issue with corrupted file when dragging to timeline
Has anyone ever had an issue with a files audio becoming corrupted when moving the file from the editing window to the timeline. I am also seeing the my camtasia mp4 becomes blurry on the timeline but plays fine in the editing screen.
I had not problem with camtasia Mp4s previously and today I have had so many issues with premier proHi,
Even i faced this issue before...the problem with file adapter is the attribute nxsd:quotedBy takes " as default even if u dont mention it takes the same and now after the quotes it immediately expects | wch is not there in the data and it throws the error...now the fix for the problem is put some symbol for nxsd:quotedBy wch u never expect in the data some thing like less than or greater than symbol ....some thing like below
<element name="FieldTwo" type="string" nxsd:style="terminated"
nxsd:terminatedBy="|" nxsd:quotedBy="<"/> -
Dynamic file naming at Receiver
Hello Friends,
How to handle the dynamic file naming in XI at receiver side as file naming convention sequence to be incremented for every 1 hour...
my Client expecting to handle at mapping...How to do this...
Could any one give me the program if we need to do it in java...
and pls also give another approach if any
Setup dynamically ,>>naming convention sequence to be incremented for every 1 hour
You can set the file construction mode as "Add counter" in the receiver file adapter
Thanx
Aamir
Edited by: Aamir Suhail on Aug 15, 2008 7:57 AM -
Issues with RAW files from my 7D
I have Aperture 1.5.6 on my computer and the software updater says that is the current version. I shoot with a 20D and a 7D. I upload my raw files to Aperture and edit them from there and then process for a jpeg. However, every time I upload a raw file from my 7D I get the following message when I click on it to edit it: Unsupported Image format.
Any words of advice, other than just buy Aperture 3??I have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......
-
Issue with Dynamic Link with Premiere CC and After Effects
I'm having a strange and annoying issue with Dynamic linked clips in Premiere CC:
When I render or export my timeline the progress will stall when it hits a dynamic linked clip. It will stay stalled until I click the After Effects application and make it the active window. Once that happens the render/export resumes at normal speed.
This is annoying as I can't start a render and walk away or work on different windows, I have to babysit all the renders to make sure they go through.
Has anybody experienced this and know of any solutions?
I'm running the latest version of Premiere (7.2.1) and After Effects 12.2.0.52 on Mavericks 10.9.1 with a GTX 770 Video Card.Does it still pause if AE is closed completely? I often experience slower AME renders from Premiere over dynamic link material when AE is open. Closing AE speeds things up. Go figure.
-
Sharpening issues with RAW files
Hi,
I have downloaded lightroom 5 as a one month trial and have been playing with the program. I am not an experienced user and are wondering if I am doing something wrong, have wrong settings applied or if it is the known sharpening bug that messes with my photos. I know that sharpening and noise reduction includes a bug that does not let you export pictures 1/3 of original size with sharpening/noise intact. However, in my case, this also happens with RAW files. I do not crop or change size/resolution to any of the photos, but the sharpening is still not working. Photos look great in develop mode, but when I click on library mode to export them, all sharpening disappears!
Is this the same bug previously reportered "only for pictures 1/3 of original size", or do I have some strange settings applied?
I was loving lightroom 5 up until I noticed this, and now I am reluctant to buy the product...
I'd be greatful if anyone has any input on this!
Thanks in advanceI have Aperture 2.X and had zero issues with RAW files from a 7D, so I think the problem is you are on 1.X. Converting to DNG first was a good suggestion if you don't want to purchase 3.X. Yet another reason to hate proprietary raw image file formats.......
-
Transparency Issues with PSD files in FCP 7
I'm having some weird file layer transparency issues with FCP 7. I'm working on a project that's made up entirely of graphics drawn in Photoshop CS5. They Photoshop settings were done to match an HDTV 1080i (16:9) sequence in FCP. In FCP, the pixels were set to square, field dominance to none, frame rate to 29.97 and compressor is Apple ProRes 422.
I exported my PSD files out of Photoshop, with each layer being exported to its own file. In general, things were fine, but there were a few files where you could see the outline of the character against the background, but mind you that this is only visible once the video is rendered out in the FCP timeline. Nothing is visible in Photoshop, nor is it visible while viewing from the Browser in FCP. I told this to the artist and he went back and made corrections, making sure everything was on a transparent background, but the result was still the same - once I rendered the graphics out in FCP, these edge lines were visible.
I then went back into Photoshop, opened all the files that were giving me trouble, clicked on the "foreground color" and changed it to a color other than white, then back to white and hit ok. That seemed to work - even when rendered out, I was getting no artifacts, until I tried enlarging the graphics over 100%.
Also, with some of the same graphics, I was trying to layer them so that a guy was in the foreground with other people and a van behind him in the background. Once again, no problem in Photoshop, but once brought into FCP, the background people were actually being displayed over the main foreground character.
I'm pretty baffled - what to do? I'll attach a photo of the weird lines around the characters. It might be hard to see at this size, but if you download and enlarge it to 300% or so, you'll see what I mean.Just saw that Adam's original post was an older one. Will keep this here anyway to maybe help the most recent poster.
Sharon
Adam, did you try what David said about pointing to the root folder? Did that work?
When I copy the SD card, I name a new folder on my hard drive something specific, like Smith Wedding. Then I copy everything inside the SD card to that new folder. The first level inside my new folder now has folders for
AVF_INFO
PRIVATE
and on down from there. When you open Log and Transfer, point it to the Smith Wedding folder (of course whatever you have named yours).
ClipWrap2 also works great to convert the files beforehand if you want.
What camera are you using? I have the Sony NX30 and it was giving me fits because the .mts files don't ingest if the clips are longer than 11 min. My problem is that I'm still on FCP 6.0.6. I think 7.0.3 fixed that. But I did find enough work-arounds to keep the camera.
This is a link to the full discussion if you are interested.
https://discussions.apple.com/message/19085158#19085158
Sharon
Message was edited by: SSteele
Maybe you are looking for
-
How can I make sure the the modify date of files are not updated to the date the file was uploaded or downloaded. There are multiple people working on my sites and I am the only one that uses Dreamweaver. The problem this presents is when one of my
-
Date Validation problem in form with report
Hi, I am stuck on this date validation issue in a form with report that I am working on- I have an Active_date_start and an Active_date_end field. I want to validate the form in such a way that if the user enters the Active_date_end < active_date_sta
-
QUICK HELP :iExpense Approval Notification Customization
Hello Everyone, Need QUICK Responses. This is Urgent . Please help asap. REQUIREMENT : I have a requirement wherein I have to add a field "Project Number" on the Top of iExpense Approval notification Page along with the fileds like Expense Cost Cente
-
Simultaneous multiple networks under access connections?
I have two networks at home, one of which uses an ADSL internet connection the 2nd of which serves Network attached storage devices. Each network has a router. I want to use the wireless connection to connect to one network, and the ethernet con, for
-
Short, sharp noise from speakers when resuming from sleep
This doesn't happen all the time, but sometimes when I lift the lid on my MacBook and wake it up, I get this short, sharp 'SHHH' noise come from my speakers that lasts about a second or so just after the screen illuminates. It can sometimes happen a