Error opening KM file with special character

I'm using the following code to get the url to an file stored in KM, but when some file has the  ( or )character in the name, an error occurs saying that the file doesn't exist in KM. The file name look like this  (CDU001-C010) Delegar WorkFlow.doc.gif.
IUriReference uriRef;
IURLGeneratorService ugs;
ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
uriRef = ugs.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).appendPath(resource.getRID().toExternalForm());
retorno = uriRef.toExternalForm();
thanks.

231

Similar Messages

  • Error opeing KM file with special character

    I'm using the following code to get the url to an file stored in KM, but when some file has the [[ or ]]character in the name, an error occurs saying that the file doesn't exist in KM. The file name look like this [[CDU001-C010]] Delegar WorkFlow.doc.gif.
    IUriReference uriRef;
    IURLGeneratorService ugs;
    ugs = (IURLGeneratorService) ResourceFactory.getInstance().getServiceFactory().getService(IServiceTypesConst.URLGENERATOR_SERVICE);
    uriRef = ugs.getRelativeUri(PathKey.CONTENT_ACCESS_PATH).appendPath(resource.getRID().toExternalForm());
    retorno = uriRef.toExternalForm();
    thanks.
    Edited by: fabio saito on May 18, 2009 6:31 PM
    Edited by: fabio saito on May 18, 2009 6:32 PM
    Edited by: fabio saito on May 18, 2009 6:32 PM

    231

  • When  I am uploading  file with special character it gives error

    Hi All,
      I am uplloading one file with special character then it gives error. Please let me know solutions on this is soon as possible.
    Thanks,
    Madhav

    hi are you looking for the file to be transferred with the special character then declare it wil the char field...and send it..
    or the special charactera are coming unnecessary use the command ............replace all occurances  to avoid this..

  • Error: Invalid dimension member with special character / in BPC NW 7.5 SP7

    Hi experts,
    We are encountering the following problem in our Financial Planning application.
    We are migrating our existing BPC solution from one server to another through backup and restore. The existing solution was on BPC NW 7.5 SP 5. The profit_centre dimension in the existing solutions has several member ids with special character '/' (forward slash). The dimension never threw an error when processed in the existing solution and there is planning transactional data against these member ids.
    While the entire configration , appset , files were successfully restored through UJBR on the new system (BPC 7.5 SP7) through UJBR (backup and restore), the masterdata could not be restored only for this Profit_centre (masterdata for other dimensions were processed successfullu). All the member ids with / are rejected for this dimension. The same error is thrown if processed through the admin client from the member sheet. 
    Error: Dimension member PC_FF/WS/NT is an invalid member ID
              Error in Admin module
    Is there any setting which need to be made to allow / character in member ids? Any suggestion to get around this problem would be much appreciated.
    Thanks
    Abhiman

    Hi Abhiman,
    Yes, you need to maintain the transformation file to correct all dimension member IDs. Can you please refer to the following link with a similar issue:
    conversion file formula not working
    Hope this helps.
    Rgds,
    Poonam

  • Deleting file with special character in name gets error -43

    In my Trash folder there is a .html file with a name containing special characters (oriental) left over from when I uninstalled Adobe CS2. When I try to change the file name to delete the special characters so I can trash the file, I get error -43, and the name won't change. Therefore I can't get the file deleted from the computer because I can't get rid of the special characters.
    Is there another way to accomplish the same thing?

    I presume you are referring to the notorious Vietnamese file. Others have had success getting rid of it wuth these instructions .
     

  • Problem reading csv file with special character

    Hai all,
    i have the following problem reading a csv file.
    442050-Operations Tilburg algemeen     Huis in  t Veld, EAM (Lisette)     Gebruikersaccount     461041     Peildatum: 4-5-2010     AA461041                    1     85,92
    when reading this line with FM GUI_UPLOAD this line is split up in two lines in data_tab of the FM,
    it is split up at this character 
    Line 1
    442050-Operations Tilburg algemeen     Huis in
    Line 2
    t Veld, EAM (Lisette)     Gebruikersaccount     461041     Peildatum: 4-5-2010     AA461041                    1     85,92
    Anyone have a idea how to get this in one line in my interbal table??
    Greetz Richard

    Hi Greetz Richard
      Problably character  contains same binary code as line feed + carriage return.
      You can use statement below as workaround.
    OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING UNICODE
    In this case your system must support Unicode encoding
    Kind regards

  • Upload file with special character in ECC 6.0?

    Dear All,
    Does anyone know that in ECC6.0 unicode environment, can we upload special character like
    eg ¢, ©, É. It's ok in 4.6c version but not in ECC 6.0. Any idea ?
    Thanks

    HI,
    Try using
    open dataset <DSN> for output in legacy text mode.
    and also in transfer statement pass the actual structure rather than a flat structure, while executing transfer statement for legacy mode the field lengths are taken into consideration and there is no spill over of spaces to the next field
    say if you have a structure:
    data: begin of wa_output,
    name(20),
    email(30),
    end of wa_output.
    and a flat structure
    data: w_out(50).
    then in transfer statement use wa_output rather then w_out.

  • Uploading file with special character like ( # , $ or any other special ch)

    Hi All,
    This perform statements then uploads the file from UNIX. Because of the special character in the file this  program fails.
    Please let me resulation as soon as possible .
    Thanks,
    Madhav

    Hi
    Good
    Check the below sdn post on special character.
    https://forums.sdn.sap.com/profile.jspa?userID=3649609
    Thanks
    mrutyun^

  • Can't save file with special character

    I'm trying to download a file using this
    do shell script "curl -L " & DLLink & " -o " & destFile
    destFile is defined with this
    set destFile to POSIX path of ((choose folder) as text) & file_name as text
    file_name contains "(" and ")"
    AppleScript gives me this error
    error "sh: -c: line 0: syntax error near unexpected token `('
    Thanks in advance
    Best Regards

    You could try using Applescripts 'quoted form of' and let Applescript figure it out.
    ie:
    do shell script "curl -L " & DLLink & " -o " & quoted form of destFile
    see Technical Note TN2065, do shell script in AppleScript.

  • Error opening .indd files with CS6 AND CC - deadline looming, what is the fix?

    I just got a new Macbook Pro and upgraded to CS6 two weeks ago. I was having problems opening files:
    So I asked IT to upgrade me to CC.
    Guess what? Still get the error message. I was editing this file yesterday without issue.
    My deadline is now. WTH is going on???

    Well, he's not working in the file now so there's no .idlk file for anything in the folder.

  • Error opening JAR files with double-click

    I have this problem while trying to execute a JAR file by double-clicking in Windows Vista Home: the JAR file never opens and it appears the following in the command line:
    Exception in thread "main" java.lang.NoClassDefFoundError: C:\PATH_TO_FILE\JAR_FILE_NAME/jar
    Caused by: java.lang.ClassNotFoundException: C:\PATH_TO_FILE\JAR_FILE_NAME.jar
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)the strange thing is that I have the environmental variable CLASSPATH set to ".;" and while running from the command line as java -jar C:\PATH_TO_FILE\JAR_FILE_NAME.jar I have no problems...
    Any idea?? Thanks in advance!

    This was getting so frustrating I turned off FileVault and the problem went away. That's too bad, but there it is.

  • Error in opening a file with name in chinese characters with Runtime.exec

    The issue at hand is when I try to open a file with file name containing chinese characters in a localized environment in Windows through the following java code:
    Runtime.exec("rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}");
    the following error is thrown by windows.
    Cannot open file "C:\??.txt".
    with the exception
    java.io.IOException: CreateProcess: [Ljava.lang.String;@f5da06 error=2
            at java.lang.Win32Process.create(Native Method)
            at java.lang.Win32Process.<init>(Win32Process.java:66)
            at java.lang.Runtime.execInternal(Native Method)
            at java.lang.Runtime.exec(Runtime.java:566)
            at java.lang.Runtime.exec(Runtime.java:428)
            at java.lang.Runtime.exec(Runtime.java:364)
            at java.lang.Runtime.exec(Runtime.java:326)
            at Launcher.main(Launcher.java:26)
    When I try to use the same command (shown below) from the Windows Run command, the file opens sucessfully
    rundll32 SHELL32.DLL,ShellExec_RunDLL {File_With_FileName_containing_Chinese_character}
    Please suggest.
    Thanks in advance

    This may be a file association problem.  To solve that:
    In Windows 7:
    1. Right-click the file,
    2. Select "Open With" 
    select [Your Program Here]
    3. Check always use this program. 
    In Windows XP:
    1. Locate the file as you have described above
    2. Right click the file
    3. Select Open with from the pop-up menu
    4. Click Choose default program…
    5. Select Excel in the Recommended Programs box
    6. Check Always use the selected program to open this kind of file
    7. Click on OK.
    1.  Make Excel not available from Office 2007 listed under Programs and Features in Control Panel.
    2. Take a registry backup using the steps given here
    3. In the registry editor window expand HKEY_CLASSES_ROOT and navigate to .xls right and delete it.
    4. Exit Registry Editor
    5. Undo Step 1 to make Excel available.
    6.  Restart the computer and verify it the issue is fixed.
    If this answer solves your problem, please check Mark as Answered. If this answer helps, please click the Vote as Helpful button. Cheers, Shane Devenshire

  • Cs4 opens cs3 files with errors

    Here's a big heads up for anyone considering upgrading to cs4 - don't!  I've been working on a cs3 project and decided to upgrade to cs4 for the extras in the 3D toolset.  All the Adobe propoganda implies this can be achieved no problem, as did soemone on telephone tech support.  Perhaps I didn't clearly ask 'can I open my cs3 file in cs4'.  I can BUT the clips are very much 'out of synch.  I'll lick my wounds and go back to finishing in cs3 but don't purchase cs4 if you think you can seamless import your sc3 project.  Because it seems you very much can not!

    Dennis,
    Many thanks.
    Date: Thu, 11 Feb 2010 05:21:44 -0700
    From: [email protected]
    To: [removed]
    Subject: Premiere Pro cs4 opens cs3 files with errors
    Jarrod,
    As I've stated here in this forum, we're trying to transition Adobe technical support to a new organization and providing the best support we can to our customers.  That being said, it is a long and sometimes painful process, which is why I am here on the forums at times to lend some support.  This doesn't help you and you might not even care so...
    Here's a couple of suggestions:
    1. make sure your software is updated (Premiere Pro 4.2.1) by going to help>updates
    2. clear your prefs - http://blogs.adobe.com/genesisproject/2009/11/having_weird_behavior_with_an.html
    3. try importing (ctrl-I) a CS3 project into CS4
    Try these things and let me know how you make out.  Also, it would be very helpful if you told us about your system and the specs.  I've posted about the importance of 64-bit and lots of memory many times.  You can find one link here: http://blogs.adobe.com/genesisproject/2009/03/64_bit_os_and_adobe_products.html
    The future of Premiere Pro is 64-bit only: http://blogs.adobe.com/genesisproject/2009/10/its_official_64bit_is_the_futu.html
    Beyond that if you'd like me to look into your case, please post your case # here or in a private message to me and I'll gladly look at it.
    I sense your frustration and its understandable - give us a chance to help you.
    Dennis
    >

  • Error WUC-14 after open a File with CLIENT_TEXT_IO.FOPEN (Oracle 10g)

    Hi,
    the error WUC-14 occurs during open a file with forms10g.
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    Afterwards the error message it ist possible to write into the file and close it correctyl (without am error message - also the Information is correkt).
    During debugging the error occurs in the function GETPROPERTY (Webutil).
    the error occurs only sometimes.
    Can anybody help me to solve the problem ?
    best regards,
    Alexandra Schermann

    Hi Alexandra,
    You can catch the exception in Exceptions part and close the file. Something like,
    DECLARE
    F_VersandZahlen CLIENT_TEXT_IO.FILE_TYPE;
    BEGIN
    F_VersandZahlen := CLIENT_TEXT_IO.FOPEN (F_Dateiname,'w');
    <do your processing>
    EXCEPTION
      WHEN OTHERS THEN
       CLIENT_TEXT_IO.FCLOSE(F_VersandZahlen);
    END;-Arun

  • I cannot open files - they come up with an error opening this file - access denied.  Help!

    All my adobe files are now the same - they will not open at all - access denied with no reason other than an error!  Help!

    Hi - Strangely enough the files opened the very next time I tried!  It 
    must be my fickle computer!  My Adobe is quite new so I do not think it is 
    outdated.
    Thanks for the reply anyway - I will plough on.
    Cheers -Patti
    In a message dated 01/04/2015 09:57:13 GMT Daylight Time, 
    [email protected] writes:
    You  have been mentioned
    by  Anubha  Goel
    (https://forums.adobe.com/people/Anubha+Goel?et=notification.mention)  in Re: I cannot open files - they come up with an error 
    opening this file - access denied. Help! in Adobe Community - _View  Anubha
    Goel's reference to you_
    (https://forums.adobe.com/message/7394775?et=notification.mention#7394775)

Maybe you are looking for

  • How to create a custom ear file and deploy it onto a freshly created oc4j

    Hi, Wanted to know that how should i go about creating a custom EAR file or for that matter any application and deploy it onto a test oc4j instance created within the 10.1.3 Home of Oracle Apps R12. I believe in a standalone Application server instal

  • Keyboard x1 carbon - use of alt key

    I have a US keyboard.  I would like to be able to produce two symbols, the € and the £.  I have found that Alt 5 (but only the Alt key on the right of the spacebar) produces €, but have not found anything similar for the £.  My questions: 1) Can I pr

  • Empty attachment when message filtered to folder

    When my message is filtered to from inbox to other folder, attachment appears empty. I.e. when I click on attachment following alert appears: This attachment appears to be empty. Please check with the person who sent this. Often company firewalls or

  • Scheduling Stopped in Discoverer

    Hi, I have scheduled some reports in discoverer. Scheduling was working perfectly. But, the report which was running in scheduler has been stopped by killing the session. As the report was taking too much, we had killed the session. After killing the

  • Getting exception CX_DBA_ADBC while executing ST04

    While executing ST04 -> Performance -> Wait Event Analysis -> Filesystem Requests The following error comes Exception CX_DBA_ADBC in function unit C_GET_DB_ORA_FILESYSTEM_REQUES ( function group S_ORA_COCKPIT_5 include  line 0  ) The database is Orac