End of file / parsing error for EDI document

I have an issue where a Trading partner is sending extra non readable characters after the last segment terminator in a X12 EDI document. I know there is a property to strip the CR/LF characters and that does not help me.
Do I have any other options for preprocessing in B2B ?

Hi,
Try using the property oracle.tip.adapter.b2b.edi.enablePreprocess=true in the tip.properties file.
ALso could you please let me know the property which removes CRF/LF characters from the input file to B2B.
Thanks for your help.
Regards,
Dibya

Similar Messages

  • End of file 16072 error encore V 1.5.1.42735

    I've been at this awhile and usually don't have much trouble so this is beginning to make me a little cranky.  I used to get this error once in a while for the usual reasons (vid and audio not same length and mismatch on time/duration on animated buttons).  Latley it has started to come up on every single project and seems way random.
    Here is the typical scenario.  I Export a dozen or so movies from PPro 1.5 at MS DV AVI.  I import as timeline in Encore 1.5.1.  I use automatic transcode and  build the DVD as an image on my HD to test.  I get the end of file 16072 error.
    This is how a I trouble shoot.  I create a new Encore project called test.  I import the .m2v and the .wav files from the Transcodes folder of the Encore project one at a time.  In this way I avoid retranscoding the movie saving a little time. The test project has no menus or buttons and only one timeline set as first play.  I build a dvd image on my HD one at a time until I get the same error in the "test" project.  I then go back in PPro and work on the the Timeline that I exported the movie from.  Sometimes I can just delete the last clip from the timeline and the error goes away.  Then I edit the last clip back in, re-export and retest it.  Most of the time it is then OK.  If it is  I then bring it back into the Encore project I was working on in the first place and works.  Other times that does not work and I can keep going back one clip at a time until I find the problem or sometimes it is just quicker to re-edit the whole section of source material into a new timeline.
    The project I am working on right now started out as seven hours of DV.  I am working on the third DVD I created from it after editing down to about three hours of final footage broken up into about 36 timelines.  This last Encore project has 14 timelines and three of them produce the error when testing.  I just fixed one of them by deleting the last clip and testing.  The other two are next up but jeeze this is getting old.  No motion menus or animated buttons.  The problem is with the .avi as in the test project I use it is the only timeline and set to first play with no menus or buttons.
    I am looking for some informed advice from someone who has specific experience with this error and has whipped it.  I have read more than a few posts from people that have gotten this error and with most it is because the material they are working with has caused it with good reason.  That does not seem to be the case with my projects.  I edit the same way, export the same way from PPro.  I import in Encore and build basically the same project over and over.   Why would I get this seemingly random error.  Can I avoid it?
    I have the Adobe Video Collection Professional, paid a ton for it and it does everything I need.  I can't upgrade with out building an entirely new system to run the new software anyway and the money is not there for it.
    I have 39 hours of video I need to edit into hundreds of timelines and this error is eating me alive.  This latest project with 7 hours has had days added to it because of this error.  Please help me learn solve ar avoid it.
    Thanks in advance,
    Mark

    I wonder if there could be some slight Durational difference between the muxed streams, since the Audio is in Audio Units and the Video is in Timecode. Just a sliver of difference *could* yield a problem.
    I've read of similar with other muxed sources but never a definitive answer on why En does not pick up and correct this, or how it could occur with the Export from PrPro, or other NLE. Still, it does seem to happen on occasion.
    Also, I usually have a bit of Black Video at the Head, and then some at the Tail, so in PrPro, my Video Timeline is always a bit longer, than my Audio Timeline. As there is no Audio signal at the end, PrPro can deal with it perfectly. Will have to try some muxed sources (not my normal workflow) to see if there is something else afoot.
    Just thinking here,
    Hunt

  • We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    We are trying to do a Quick payment from payment workbench and getting 'FRM-41830: List of values contains no entries' error for payment document column/field. Payment document setup looks good. Not sure what the issue is.

    Already gone through following three notes but didn't found resolution.
    APXPAWKB: FRM-41830 When Clicking on Payment Document LOV (Doc ID 1081305.1)
    R12: APXPAWKB: Payment Document Lov Is Empty When Entering A Payment (Doc ID 857587.1)
    R12: Payment Workbench Error: FRM-41830 List Of Values Contains No Entries (APXPAWKB.FMB) (Doc ID 1323875.1)

  • "No connectivity with the server" error for one document but not the other, in the same document library

    We have a number of users all of a sudden getting "No connectivity with the server.  The file 'xxx' can't be opened because the server couldn't be contacted." errors trying to open MS Office docs (Word, Excel, etc.) in SharePoint with IE,
    just by clicking the link and selecting the "Read Only" option.  If they select the "Check Out and Edit" option, they can open the document no problem.  One of my customers gets the error on one document but not the other, in
    the same document library!  The older document (a weekly report) was copied and renamed as per standard procedure.  She can read the older document, but not the new one.
    It is definitely a profile issue, as other people have logged onto the machines of the users with problems and do not get the error.  We have also renamed people's c:\user profile folders and the corresponding Profilelist registry entry and the newly
    created profile does not experience the error for these people.  Renaming the profile back restores all their personal settings but the error reappears.  When we copied the old profile's folder structure into the new profile, many of the user settings
    were restored (but not all, like Dreamweaver settings) but the error did not appear.  We think that the system folders files (like AppData) weren't totally copied over so we're going to run another test using xcopy.  We are rebooting between
    logons to make sure all files are unlocked.
    The laptops and computers are mainly 32bit, Win7 Enterprise running IE9 and Office 2010 Professional Plus, but there's a few 64bit machines as well. The SharePoint farm has 1 WFE, 1 App Server running search and CA, and a shared database server running SQL
    2005 SP4.  SharePoint is 64bit MOSS 2007 with the latest CU.
    We've checked the logs on the client as well as on the server and there aren't any helpful entries.  We've also run Process Monitor, also with no helpful entries.  We're planning to run something like Fiddler next.
    It's not everyone, because there are many people are accessing the SharePoint system and the same files.  It is also not a permission thing, as we've tested by giving the users elevated permissions with no changes.  One person experiencing
    the errors is a Site Collection Admin.  That same person ran a test where I coped a simple Excel file into a Document Library which contained a problem file.  They were able to open it Read Only no problems that day, but the next day, the same
    file gave them an error.   In their case, they usually get a "xxx is not checked out" error and only occasionally get the "No connectivity with the server" error.
    We've tried lots of things including:
    Deleting IE cache
    Deleting SharePoint Drafts and webcache folder contents
    Running IE without add-ons
    Upgrading and Downgrading IE
    Uninstalling and re-installing IE
    Reinstalling our SSL certs
    Repairing Office
    Removing and then adding back in the Microsoft Office "Microsoft SharePoint Foundation Support" Office Tool 
    Deleting all HKLM and HKLU Office registry settings
    Toggling IE Compatibility Settings
    Toggling the IE Automatic Logon option
    Toggling the location of checked out files
    Adding the site in the trusted sites list
    Adding the site to the WebClient\Parameters registry locations
    Making sure the WebClient service is started
    Rebooting the machine (lol :)
    This is becoming a serious issue, not just because of the inconvenience for the users having to check out every document they want to read, but we have some files with macros that open up other documents to run which are now failing.  There aren't
    "check out" workarounds for some of those macros.
    We're planning to open a ticket with Microsoft, but I'm throwing it out here first in case someone has run into this before, or may have some suggestions on what to try next.  Thanks!
    -Richard.
    PS  I think this needs to be in the "General" forum instead?

    It took three days of dedicated troubleshooting, but I have found the cause of the errors, and a couple of fixes.  It helped tremendously that my own machine was throwing the error.  I have scheduled a couple of users to work with me to test the
    various fixes, to see which one works best, so the story isn't over yet.
    I had backed up my c:\users profile folder and HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList registry key so I could restore my profile after I was done.  I made a copy of the profile folder and was using that for awhile,
    but then made another copy where I had deleted a lot of content out of it so that the copies would go faster.  Since a newly created profile did not have errors, I was trying to copy back as much of the profile as possible to make it easier for our users
    to get back to work.  Instead of blowing away their profile and starting from scratch (which we know worked) I wanted to narrow down what was causing the error and just skip that from the restore.  The concept was to keep as much as the users profile
    in tact (application settings, etc.) not just restoring their desktop and My Documents folders.
    When we first tested a few weeks ago, simply copying the folder contents didn't reproduce the error.  I then tried xcopy, but got the "can't read file" error.  Then I tried robocopy, and ran into the "junction" problem. 
    I went back to xcopy, and found that placing the excludes.txt file in the windows/system32 folder eliminated the error.
    So the process went as follows: 
    Reboot and log into the machine as another user
    Delete the profile and associated registry key
    Reboot and log into the machine as the affected user, creating a new profile, and there is no error
    Reboot and log in as the other user
    xcopy the contents of the skinned-down backed-up profile to the newly created profile
    Reboot and log in as the affected user, and the error occurs
    Repeat the above, but add items in the excludes.txt file to see what, when eliminated, causes the error not to appear in the last step
    I eventually found that skipping the c:\users\<profile folder>\appdata\local\Microsoft\office\14.0 folder allowed the entire profile to be copied over without the error occurring.  That was strange, because we've cleaned out the cache folders
    before which didn't fix the issue. 
    So I went about it the opposite way, and tried to delete the 14.0 folder from the restored profile, and after reboot, the error still occurred.
    What eventually worked was deleting the 14.0 folder and copying over a 14.0 folder from a newly created profile!
    One way to do this was to:
    Reboot and log in as another user
    Rename the c:\users profile folder
    Rename the appropriate [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList] registry key
    Reboot and log in as the affected user, confirm that there is no error
    Reboot and log in as the other user
    Copy the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder to the other user's desktop
    Delete new profile folder, and rename the backup to be the production folder
    Delete the C:\Users\<profile folder>\AppData\Local\microsoft\Office\14.0 folder and then paste the 14.0 copy from the desktop
    Reboot and log in as the affected user, confirm that there is no error
    We've tried this on a couple machines and it works.  I had to run Windows Explorer as Administrator to access the other profile's folders.
    We've also successfully copied a 14.0 folder created by one profile on one affected computer over another profile's folder on another computer, eliminating the error, so we're trying that first, as that is fewer steps.
    We may attempt to script this, but the self-help instructions are only 5 lines long:
    Reboot and log into the affected computer with another account
    Go to <link to location of 14.0 folder on network> and copy the 14.0 folder
    Run Windows Explorer as Administrator
    Go to c:\users\<profile folder>\appdata\local\microsoft\office and delete the 14.0 folder, and paste the copied 14.0 folder (trying to overwrite it makes Win7 want to merge the folders)
    Reboot and log into your normal account, and confirm the error is gone
    I'll come back and report after we go into the field with this fix, but after the few tests, I am cautiously optimistic that this is it.

  • Help ! weblogic server 5.0.1 license file parse error

    I just get a weblogic server 5.0.1 evaluation version CD .After I install it on my machine(MY OS is win2000 ),I get the license key from the bea web site and copy it to "d:\weblogic\licenses" derectory ,but when I use
    "java utils.showLicenses -Dweblogic.system.home=d:\weblogic
    -classpath=d:\weblogic\classes ;d:\weblogic\licenses
    -Dweblogic.class.path=d:\weblogic\classes"
    to look the license ,it throw a exception ,like this:
    weblogic.common.LicenseException:weblogic.common.CorruptException: Error parsing XML license file
    this is my license key file :
    <!-- Keys for version 4.0 and later -->
    <WEBLOGIC-LICENSES>
    <LICENSE PRODUCT="WebLogic"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="60f3b77d6036b44cc968f1b0db87593b"
    />
    <LICENSE PRODUCT="WebLogic/SSL"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="a86b320c95ecd8d73108ac537288fa53"
    />
    <LICENSE PRODUCT="jdbcKona/MSSQLServer4"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="e658f24242058b9c72937929459e4e75"
    />
    <LICENSE PRODUCT="jdbcKona/Informix4"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="f90045487fd2c26bd5720e53599ab28a"
    />
    <LICENSE PRODUCT="jdbcKona/Oracle"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="d95225c8561ed63484bc561e0d864698"
    />
    <LICENSE PRODUCT="jdbcKona/Sybase"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="a47e9718bad8e2bf97ba6e58bb0810d4"
    />
    <LICENSE PRODUCT="jdbcKona/MSSQLServer"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="2f1664480679796de7a005a8fcc3089b"
    />
    </WEBLOGIC-LICENSES>
    can anyone tell me the cause ? thanks a lot !

    The license must be in your classpath.
    Thanks,
    Michael
    Michael Girdley
    BEA Systems Inc
    "fengyanb" <[email protected]> wrote in message
    news:39e3da22$[email protected]..
    >
    I just get a weblogic server 5.0.1 evaluation version CD .After I installit on my machine(MY OS is win2000 ),I get the license key from the bea web
    site and copy it to "d:\weblogic\licenses" derectory ,but when I use
    "java utils.showLicenses -Dweblogic.system.home=d:\weblogic
    -classpath=d:\weblogic\classes ;d:\weblogic\licenses
    -Dweblogic.class.path=d:\weblogic\classes"
    to look the license ,it throw a exception ,like this:
    weblogic.common.LicenseException:weblogic.common.CorruptException:Error parsing XML license file
    >
    this is my license key file :
    <!-- Keys for version 4.0 and later -->
    <WEBLOGIC-LICENSES>
    <LICENSE PRODUCT="WebLogic"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="60f3b77d6036b44cc968f1b0db87593b"
    />
    <LICENSE PRODUCT="WebLogic/SSL"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="a86b320c95ecd8d73108ac537288fa53"
    />
    <LICENSE PRODUCT="jdbcKona/MSSQLServer4"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="e658f24242058b9c72937929459e4e75"
    />
    <LICENSE PRODUCT="jdbcKona/Informix4"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="f90045487fd2c26bd5720e53599ab28a"
    />
    <LICENSE PRODUCT="jdbcKona/Oracle"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="d95225c8561ed63484bc561e0d864698"
    />
    <LICENSE PRODUCT="jdbcKona/Sybase"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="a47e9718bad8e2bf97ba6e58bb0810d4"
    />
    <LICENSE PRODUCT="jdbcKona/MSSQLServer"
    IP="any" UNITS="3" EXPIRATION="07-Nov-2000"
    KEY="2f1664480679796de7a005a8fcc3089b"
    />
    </WEBLOGIC-LICENSES>
    can anyone tell me the cause ? thanks a lot !

  • Before reaching the high unit,   'End of file reached' error pops up.

    Following is the <distributed-scheme> of my cache server.
    <distributed-scheme>
    <scheme-name>dom-dist</scheme-name>
    <service-name>DOM-CACHE</service-name>
    <backup-count>1</backup-count>
    <backing-map-scheme>
    <overflow-scheme>
    <scheme-name>dom-overflow</scheme-name>
    <front-scheme>
    <local-scheme>
    <scheme-ref>LocalSizeLimited-dom</scheme-ref>
    </local-scheme>
    </front-scheme>
    <back-scheme>
    <external-scheme>
    <eviction-policy>LFU</eviction-policy>
    <unit-calculator>BINARY</unit-calculator>
    *<high-units>8192</high-units>*
    <unit-factor>1048576</unit-factor>
    <lh-file-manager>
    <directory>/home/coherence/cachedata</directory>
    <file-name>{cache-name}.store</file-name>
    </lh-file-manager>
    </external-scheme>
    </back-scheme>
    </overflow-scheme>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <local-scheme>
    <scheme-name>LocalSizeLimited-dom</scheme-name>
    <eviction-policy>LRU</eviction-policy>
    <high-units>350</high-units>
    <unit-calculator>BINARY</unit-calculator>
    <unit-factor>1048576</unit-factor>
    </local-scheme>
    </distributed-scheme>
    +I could see the file {cache-name}.store is saved but before reaching the high unit (8192) following error pops up and then the node shutsdown.+
    Error:
    2009-07-28 08:41:42.253/52233.963 Oracle Coherence GE 3.6.1.0 <Error> (thread=DistributedCache:DOM-CACHE, member=2):
    (Wrapped) com.tangosol.io.lh.LHIOException: /home/coherence/cachedata/BIZ-DOM.store, Primary file, Reading, Group 886, Frame 886: End of file reached.
    at com.tangosol.io.lh.LHBinaryStore.load(LHBinaryStore.java:109)2009-07-28 08:41:42.254/52267.134 Oracle Coherence GE 3.6.1.0 <D5> (thread=Cluster, member=1): Member 2 joined Service DOM-CACHE with senior member 3
    2009-07-28 08:41:50.228/52275.108 Oracle Coherence GE 3.6.1.0 <Error> (thread=DistributedCache:DOM-CACHE, member=1):
    (Wrapped) com.tangosol.io.lh.LHIOException: /home/coherence/cachedata/BIZ-DOM.store, Primary file, Reading, Group 886, Frame 886: End of file reached.
    at com.tangosol.io.lh.LHBinaryStore.load(LHBinaryStore.java:109)
    Edited by: online247 on Jul 19, 2011 3:07 PM

    Hi Online247,
    Despite LH has been deprecated and overflow-scheme is not used by many people, using disk based overflow as shown at the URL below could be useful for what you are trying to achieve:
    http://hi.baidu.com/chenjf79/blog/item/42be1a2adf6d059c033bf691.html
    Hope it helps.
    -Cris

  • NQUDMLExec throws end of file reached error

    Hi,
    I have tried to execute the below command in windows command line .
    [code] nQUDMLExec -U user -P pass -I test.cfg -B test.rpd -O C:\test.rpd[/code]
    My test.cfg contains some db credentials as repositary variable.
    it throws the below error always:
    ---------------ERROR(s)---------------
    [nQSError: 28002] Near Line 12, Near <{>:  End of file has been reached.
    Please note that the test.cfg contains 12 lines totally. the error is reported in the last line always.
    Any thoughts on this?
    Thanks,
    Pandeeswaran

    28002 Near Line @1%d, Near <@2%ls>: End of file has been reached.
    Cause. The singly or doubly quoted string does not have a matching quote.
    Response. Add single or double quote at the end.

  • End of File reached error message when running report

    I am running this report in two different places.  On my own machine it seems to run fine however when I run it for a client on their server I get a message saying end of file reached and the report won't come up.  Any suggestions?

    Hi Jeff,
    In what context are you running the report?  Are you talking about refreshing the data?
    Is this in crystalreports.com or the CR designer or some custom built application? 
    This forum is specifically for the crystalreports.com, Information OnDemand, and Applications OnDemand web applications so this might be the wrong place for your question.  You might want to try the Crystal Reports Design or one of the Crystal Reports SDK forums instead.
    Cheers,
    Steve

  • Use of "Archive Source Files with Errors" for BIC module error

    Hi All,
    I have Edi file to Idoc scenario , where i am using SEEBURGER BICXIADAPTER.MODULE.
    My question is if the input file caught in error with BIC Module e.g
    "MP: exception caught with cause Error in BICMODULE-module:Temporary error: BIC XI Adapter call failed. Reason: SegmentDescription: checkAndResetChildrenCounter() not enough repetitions of the segment UNH found: 0 instead of 1 offset :80 DESCRIPTION: SegmentDescription Warning: Not enough repetitions of the segment UNH ([not specified]/[not specified])."
    can we move these errornous files to another directory using Processing parameter  "Archive Source Files with Errors" available with Sender File Adapter?
    In File Adpater my Module tab looks like :
    1     localejbs/CallBicXIRaBean     Local Enterprise Bean     bic
    2     localejbs/CallSapAdapter     Local Enterprise Bean     0
    In my scenario  , its not working..  do we have any other option to achive this?

    Hi Jyoti,
    I had a raised a similar case with SAP and came to know that archiving only works if the error raised by the module is so called "Permanent". However, bic doesn't raise permanent error due to which archiving of error files won't be possible. Seeburger haven't came up with a solution yet.
    Regards,
    Prateek

  • Source file read error for sqldeveloper

    While downloading SQLDeveloper, after almost 70%complete, i got an source file read error.
    i've tried again to download but the page hangs on the license agreement page after clicking I ACCEPT.
    Please resolve this issue.
    Thanks in Advance
    Using:
    MS Win XP Home
    Firefox 1.5.3
    Tony Garabedian

    sybrand_b wrote:
    Why are you assuming utl_file works with binary files? It doesn't!It does in 10g, where file open mode B was introduced. But even with R mode you should be able to open DOC file. You might (or might not) have problem reading it:
    SQL> declare
      2      fh UTL_FILE.FILE_TYPE;
      3      input_buffer varchar2(4000);
      4  begin
      5      fh := UTL_FILE.FOPEN('TEMP','Stats.doc','r');
      6      UTL_FILE.GET_LINE(fh,input_buffer,4000);
      7      DBMS_OUTPUT.PUT_LINE(input_buffer);
      8      UTL_FILE.FCLOSE(fh);
      9    exception
    10      when others then UTL_FILE.FCLOSE(fh);
    11  end;
    12  /
    ÐÏࡱᠠ              >  þÿ                 2          4      þÿÿÿ    1
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
    ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿì¥Á €    ð¿             ¸
    PL/SQL procedure successfully completed.
    SQL> SY.

  • File Import Error for mpeg-1?

    When attempting to add mpeg1 files to render queue, AME 5.0.1.0 displays a messagebox "File Import Error" "Error while decompressing the source file".
    These mpeg1s are direct from my Sony DSC-N2 point-&-shoot. GSpot identifies them as mpeg1 video codec & 32khz,64kbs,mono layer2 audio. VirtualDub has no problem with these files.
    Any ideas?  I'd upload them here but as uncompressed mpeg1s they're 41 & 19MB.

    Hi Peter,
    Thanks for posting the clip. I tested it and was able to reproduce your results.  In Adobe Media Encoder 5.0.1, installed as part of CS5 Design Premium on Windows 7 64-bit with QuickTime 7.6.9, encoding the file to F4V (or FLV or H.264) was very very slow.  It looks like AME is duplicating every frame many times over, which was confirmed when I stopped the encode and examined the partial file.
    The problem did not occur, however, on a similar computer with CS5 Production Premium installed.
    The reason, if I understand the inner workings of AME well (which I like to think that I do), has to do with which codecs are installed with AME, which is dependent on which Adobe products you have installed.  Only Production Premium, After Effects, and Premiere Pro include the MPEG codecs necessary for AME to decode MPEG files natively.  Design Premium, Flash, or any other Adobe product that installs AME do not install the MPEG codecs.
    In theory, AME shouldn't be able to read your MPEG file at all.  But when QuickTime is installed AME has a rule that allows it to ask QuickTime if it can decode certain types of files if AME can't decode them natively.  In this case, yes, QuickTime can read this MPEG file.  So it's actually QuickTime that is decoding the file for AME, and then AME takes those frames and encodes them to the output format.  If you didn't have QuickTime installed, AME would just produce an error when you tried to open the file.  (I confirmed this by uninstalling QuickTime; this is also why your previous bad QuickTime install was generating the error you first posted about.)
    The problem here seems to be that QuickTime and AME aren't talking together very well.  Either AME isn't requesting the frames correctly, or QuickTime isn't handing over the frames correctly.
    The best workaround for you will be to use a different program to transcode your MPEG files to a different format.  Either directly to F4V, or to an intermediate format (QuickTime, AVI, other) that you can then import into AME so it can properly transcode it.
    Or you can take Jim's suggestion and shoot with a camera that produces files that are more friendly to editing.  MPEG files are notoriously difficult to decode efficiently for editing, and the wide variety of implementations of the MPEG guidelines makes it nearly impossible for editing programs to be compatible with every single device that can write MPEG files.
    I do have some good news: this problem has already been resolved for a future release of AME; my test of an internal build did not reproduce the problem.
    -=TimK
    -=Adobe After Effects and Adobe Media Encoder QE

  • File format error for xml file

    Hi!
    We are trying to upgrade our SAP 4.6C to EHP4.
    While "configuration roadmapstep", system asks us the XML file we have
    produced via solman. When we enter the path of the file system gives theerror below:
    The selected configuration file
    ("E:\downloadupg\SMSDXML_FKQ_20100917142727.656.xml") is not useable.
    Reason: "File format error"
    We have tried the txt file instead of xml file. The result was same.
    You can find the details of our system.
    4.6D EX2 32 bit kernel
    windows 2003 64 bit OS
    sql 2005 64 bit database software
    We have to upgrade our system until that monday.
    Please help us as soon as possible.
    Best regards
    Noyan Durna

    Hello Noyan,
    first, the official information: please refer to note #1022704 - for source release 4.6, the TXT file has to be used instead of the XML file. Otherwise, 'File format error' will occur as in your case.
    But since you tried this option, you should turn your attention to the XML itself, which must contains entries that are not handled by function module OCS_GET_UPG_STACK_INFO in the 4.XX source systems. The function module only expects the entries [SPAM_CVERS], [PRDVERS] and [SWFEATURE].  Any other entries present on the file can cause an error. 
    Please check your file for other entries like [APP_SYSTEM], [SWFEATUREINC], [TECHUSAGES], [INITIAL_CVERS], [EXPORT_CVERS], and [DVD_SET]; this might be the cause of the error. 
    In order to workaround this, you can either edit the file and remove the invalid entries or recreate it (w/o this entries also).
    Best regards,
    Tomas Black

  • End of file reached error

    Coherence 3.5
    We are getting following exception -
    Caused by: com.tangosol.io.lh.LHIOException: /local/home/beuser/cachestore/lh03861950282677193497~, Primary file, Reading, Group 25253, Frame 25253: End of file reached. at com.tangosol.io.lh.LHSubs.ReadFrame(LHSubs.java:2173) at com.tangosol.io.lh.LHSubs.GetPrimaryFrame(LHSubs.java:1583) at com.tangosol.io.lh.LHSubs.SetupKeyId(LHSubs.java:997) at com.tangosol.io.lh.LHSubs.FindKeyId(LHSubs.java:915) at com.tangosol.io.lh.JLHFile.updateRecord(JLHFile.java:433) at com.tangosol.io.lh.JLHFile.writeRecord(JLHFile.java:616) at com.tangosol.io.lh.LHBinaryStore.store(LHBinaryStore.java:128) at com.tangosol.net.cache.SerializationMap.putAll(SerializationMap.java:201) at com.tangosol.net.cache.OverflowMap.putOne(OverflowMap.java:3086) at com.tangosol.net.cache.OverflowMap.processFrontEvent(OverflowMap.java:2592) at com.tangosol.net.cache.OverflowMap.processEvent(OverflowMap.java:2448) at com.tangosol.net.cache.OverflowMap.prepareStatus(OverflowMap.java:2191) at com.tangosol.net.cache.OverflowMap.processDeferredEvents(OverflowMap.java:2763) at com.tangosol.net.cache.OverflowMap.evict(OverflowMap.java:3121) at com.tangosol.net.cache.OverflowMap.size(OverflowMap.java:390) at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.DistributedCache.onSizeRequest(DistributedCache.CDB:24) ... 6 more
    Any pointers resolving this will be appreciated.
    Thanks.

    Here is the cache config -
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>RECORD</cache-name>
                   <scheme-name>example-distributed</scheme-name>
                   <init-params>
                        <init-param>
                             <param-name>cache-size-limit</param-name>
                             <param-value system-property="record.cache.size.limit">98566144</param-value>
                        </init-param>
                   </init-params>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>COUNTERS</cache-name>
                   <scheme-name>example-no-expiry</scheme-name>
                   <init-params>
                        <init-param>
                             <param-name>cache-unit-type</param-name>
                             <param-value system-property="counters.cache.unit.type">FIXED</param-value>
                        </init-param>
                        <init-param>
                             <param-name>cache-size-limit</param-name>
                             <param-value system-property="counters.cache.size.limit">100</param-value>
                        </init-param>
                   </init-params>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>RECORDKEYLIST</cache-name>
                   <scheme-name>example-distributed-with-backup</scheme-name>
                   <init-params>
                        <init-param>
                             <param-name>cache-size-limit</param-name>
                             <param-value system-property="recordkeylist.cache.size.limit">25165824</param-value>
                        </init-param>
                   </init-params>
              </cache-mapping>
              <cache-mapping>
                   <cache-name>RECORDITEM</cache-name>
                   <scheme-name>example-distributed-with-backup</scheme-name>
                   <init-params>
                        <init-param>
                             <param-name>cache-size-limit</param-name>
                             <param-value system-property="recorditem.cache.size.limit">25165824</param-value>
                        </init-param>
                   </init-params>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>
              <!--Distributed caching scheme.-->
              <distributed-scheme>
                   <scheme-name>example-distributed</scheme-name>
                   <service-name>DistributedCache</service-name>
                   <thread-count>12</thread-count>
                   <backup-count>0</backup-count>
                   <backing-map-scheme>
                        <overflow-scheme>
                             <scheme-ref>example-overflow</scheme-ref>
                        </overflow-scheme>
                   </backing-map-scheme>
                   <backup-storage>
                        <type>scheme</type>
                        <scheme-name>example-overflow</scheme-name>
                   </backup-storage>
                   <autostart>true</autostart>
              </distributed-scheme>
              <distributed-scheme>
                   <scheme-name>example-no-expiry</scheme-name>
                   <service-name>DistributedCache-no-expiry</service-name>
                   <thread-count>12</thread-count>
                   <backup-count>0</backup-count>
                   <backing-map-scheme>
                        <overflow-scheme>
                             <scheme-ref>example-overflow-no-expiry</scheme-ref>
                        </overflow-scheme>
                   </backing-map-scheme>
                   <backup-storage>
                        <type>scheme</type>
                        <scheme-name>example-overflow-no-expiry</scheme-name>
                   </backup-storage>
                   <autostart>true</autostart>
              </distributed-scheme>
              <distributed-scheme>
                   <scheme-name>example-distributed-with-backup</scheme-name>
                   <service-name>DistributedCache-with-backup</service-name>
                   <thread-count>12</thread-count>
                   <backup-count>1</backup-count>
                   <backing-map-scheme>
                        <overflow-scheme>
                             <scheme-ref>example-overflow-with-backup</scheme-ref>
                        </overflow-scheme>
                   </backing-map-scheme>
                   <backup-storage>
                        <type>scheme</type>
                        <scheme-name>example-overflow-with-backup</scheme-name>
                   </backup-storage>
                   <autostart>true</autostart>
              </distributed-scheme>
              <!--
                   Backing map scheme definition used by all the caches that require
                   size limitation and/or expiry eviction policies.
              -->
              <local-scheme>
                   <scheme-name>example-backing-map</scheme-name>
                   <eviction-policy>HYBRID</eviction-policy>
                   <unit-calculator>{cache-unit-type BINARY}</unit-calculator>
                   <high-units>{cache-size-limit 10}</high-units>
                   <expiry-delay>2h</expiry-delay>
                   <flush-delay>5m</flush-delay>
                   <cachestore-scheme></cachestore-scheme>
              </local-scheme>
              <local-scheme>
                   <scheme-name>example-backing-map-no-expiry</scheme-name>
                   <eviction-policy>HYBRID</eviction-policy>
                   <expiry-delay>0</expiry-delay> <!--A value of zero implies no expiry. -->
                   <cachestore-scheme></cachestore-scheme>
              </local-scheme>
              <local-scheme>
                   <scheme-name>example-backing-map-with-delay</scheme-name>
                   <eviction-policy>HYBRID</eviction-policy>
                   <unit-calculator>{cache-unit-type BINARY}</unit-calculator>
                   <high-units>{cache-size-limit 10}</high-units>
                   <expiry-delay>24h</expiry-delay>
                   <flush-delay>5m</flush-delay>
                   <cachestore-scheme></cachestore-scheme>
              </local-scheme>
              <!--
                   Overflow caching scheme with example eviction local cache in the
                   front-tier and the example LH-based cache in the back-tier.
              -->
              <overflow-scheme>
                   <scheme-name>example-overflow</scheme-name>
                   <front-scheme>
                        <local-scheme>
                             <scheme-ref>example-backing-map</scheme-ref>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <external-scheme>
                             <scheme-ref>example-lh</scheme-ref>
                        </external-scheme>
                   </back-scheme>
              </overflow-scheme>
              <overflow-scheme>
                   <scheme-name>example-overflow-no-expiry</scheme-name>
                   <front-scheme>
                        <local-scheme>
                             <scheme-ref>example-backing-map-no-expiry</scheme-ref>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <external-scheme>
                             <scheme-ref>example-lh</scheme-ref>
                        </external-scheme>
                   </back-scheme>
              </overflow-scheme>
              <overflow-scheme>
                   <scheme-name>example-overflow-with-backup</scheme-name>
                   <front-scheme>
                        <local-scheme>
                             <scheme-ref>example-backing-map-with-delay</scheme-ref>
                        </local-scheme>
                   </front-scheme>
                   <back-scheme>
                        <external-scheme>
                             <scheme-ref>example-lh</scheme-ref>
                        </external-scheme>
                   </back-scheme>
              </overflow-scheme>
              <!--External caching scheme using LH.-->
              <external-scheme>
                   <scheme-name>example-lh</scheme-name>
                   <lh-file-manager>
                        <directory>/local/home/beuser/cachestore</directory>
                   </lh-file-manager>
              </external-scheme>
         </caching-schemes>
    </cache-config>

  • SQL*Loader problem - not efficient, parsing error for big xml files

    Hi Experts,
    First of all, I would like to store xml files in object relation way. Therefore I created a schema and a table for it (see above).
    I wants to propagate it (by using generated xml files), hence I created a control file for sql loader (see above).
    I have two problems for it.
    1, It takes a lot of time. It means I can upload a ~80MB file in 2 hours and a half.
    2, At bigger files, I got the following error messages (OCI-31011: XML parsing failed OCI-19202: Error occurred in XML processing LPX-00243: element attribute value must be enclosed in quotes). It is quite interesting because my xml file is generated and I could generated and uploaded the first and second half of the file.
    Can you help me to solve these problems?
    Thanks,
    Adam
    Control file
    UNRECOVERABLE
    LOAD DATA
    CHARACTERSET UTF8
    INFILE *
    APPEND
    INTO TABLE coll_xml_objrel
    XMLTYPE(xml)
    FIELDS
    ident constant 2
    ,file_name filler char(100)
    ,xml LOBFILE (file_name) TERMINATED BY EOF
    BEGINDATA
    generated1000x10000.xml
    Sql Loader command
    sqlldr.exe username/password@//localhost:1521/SID control='loader.ctl' log='loadr.log' direct=true
    Schema
    <?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/shema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/shema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>
    Create table
    create table coll_xml_objrel
    ident Number(20) primary key,
    xml xmltype)
    Xmltype column xml
    store as object relational
    xmlschema "http://www.something.com/schema/simple_searches.xsd"
    Element "searches";

    Hi Odie_63,
    Thanks for your answer.
    I will post this question in the XML DB forum too (edit: I realized that you have done it. Thanks for it).
    1, Version: Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    2, see above
    3, I have registered my schema with using dbms_xmlschema.registerSchema function.
    Cheers,
    Adam
    XML generator:
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import javax.xml.stream.XMLOutputFactory;
    import javax.xml.stream.XMLStreamException;
    import javax.xml.stream.XMLStreamWriter;
    public class mainGenerator {
        public static void main(String[] args) throws FileNotFoundException, XMLStreamException {
            // TODO Auto-generated method stub
            final long numberOfSearches = 500;
            final long numberOfResults = 10000;
            XMLOutputFactory xof = XMLOutputFactory.newFactory();
            XMLStreamWriter writer = xof.createXMLStreamWriter(new FileOutputStream("C:\\Working\\generated500x10000.xml"));
            writer.writeStartDocument();
            writer.writeStartElement("tns","searches", "http://www.something.com/schema/simple_searches");
            writer.writeNamespace("tns", "http://www.something.com/schema/simple_searches");
            for (long i = 0; i < numberOfSearches; i++){
                Long help = new Long(i);
                writer.writeStartElement("tns","search", "http://www.something.com/schema/simple_searches);
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "type", "value1");
                writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", help.toString());
                writer.writeStartElement("tns","results", "http://www.something.com/schema/simple_searches");
                for (long j = 0; j < numberOfResults; j++){
                    writer.writeStartElement("tns","result", "http://www.something.com/schema/simple_searches");
                    Long helper = new Long(i*numberOfResults+j);
                    writer.writeAttribute("tns", "http://www.something.com/schema/simple_searches", "id", helper.toString());
                    writer.writeEndElement();
                writer.writeEndElement();
                writer.writeEndElement();
            writer.writeEndElement();
            writer.writeEndDocument();
            writer.close();
    registerSchema:
    begin
    dbms_xmlschema.registerSchema(
    'http://www.something.com/schema/simple_searches',
    '<?xml version="1.0" encoding="UTF-8"?>
    <schema targetNamespace="http://www.something.com/schema/simple_searches" elementFormDefault="qualified" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.something.com/schema/simple_searches">
        <element name="searches" type="tns:searches_type"></element>
        <element name="search" type="tns:search_type"></element>
        <element name="results" type="tns:results_type"></element>
        <element name="result" type="tns:result_type"></element>
        <complexType name="searches_type">
            <sequence>
                <element ref="tns:search" maxOccurs="unbounded"></element>
            </sequence>
        </complexType>
        <complexType name="search_type">
            <sequence>
                <element ref="tns:results"></element>
            </sequence>
            <attribute ref="tns:id" use="required"></attribute>
            <attribute ref="tns:type" use="required"></attribute>
        </complexType>
        <complexType name="results_type">
            <sequence maxOccurs="unbounded">
                <element ref="tns:result"></element>
            </sequence>
        </complexType>
        <complexType name="result_type">
            <attribute ref="tns:id" use="required"></attribute>
        </complexType>
        <simpleType name="type_type">
            <restriction base="string">
                <enumeration value="value1"></enumeration>
                <enumeration value="value2"></enumeration>
            </restriction>
        </simpleType>
        <attribute name="type" type="tns:type_type"></attribute>
        <attribute name="id" type="string"></attribute>
    </schema>',
    TRUE, TRUE, FALSE, FALSE);
    end

  • Getting undefined error for current document in script

    I'm getting a "Error Number: 2" "Error String: myDoc is undefined" in my script.
    I tweaked some scripts so they traverse my entire book, and open up every section (document) in my book and run the code for each section.ext
    The code runs great and opens and closes sections where it doesn't find text to add links to, but once it opens a document and finds text that it CAN add links to, it throws that error.  Below is my code:
    main();
    exit();
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle,
                myCount = 0;
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument);
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            alert("Done! " + myCount + " hyperlinks have been added.");
            myDoc.close();
    function doSearchAndReplace(stringfind, urlstring, searchin) {
        app.findTextPreferences.findWhat = stringfind;
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        var myFoundItems = searchin.findText();
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
            myCount++
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        catch(myError){
    function myMakeURLHyperlinkDestination(myURL){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        myHyperlinkDestination.name = myURL;
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;
    Any and all help is greatly appreciated!

    This ended up being my fixed/final code:
    main();
    exit();
    function main() {
        var myBook = app.activeBook,
                myDocs = myBook.bookContents.everyItem().getElements(),
                myDoc,
                myHyperlinkStyle;
        for (var i=0; i< myDocs.length; i++) {
            myDoc = app.open(File("\\\\computerOnNetwork\\c$\\Folder\\" + myDocs[i].name));
            myHyperlinkStyle = myDoc.characterStyles.item("linkstyle");
            try {
                var script = app.activeScript;
            } catch(err) {
                var script = File(err.fileName);
            var myScriptFolderPath = script.path;
            var myFindChangeFile = new File(myScriptFolderPath + "/SearchTextAndUrls.txt"); //mac path for users desktop //File.openDialog("Choose the file containing the tab separated list");
            //alert(myFindChangeFile)
            myFindChangeFile = File(myFindChangeFile);
            var myResult = myFindChangeFile.open("r", undefined, undefined);
            if(myResult == true){
                app.findTextPreferences = NothingEnum.nothing;
                app.changeTextPreferences = NothingEnum.nothing;
                //Loop through the find/change operations.
                do {
                    //read 1 line into myLine
                    myLine = myFindChangeFile.readln();
                    myFindChangeArray = myLine.split("\t");
                    //The first field in the line is the value to find
                    myFindVal = myFindChangeArray[0];
                    // second is the url
                    myFindUrl = myFindChangeArray[1];
                    doSearchAndReplace(myFindVal, myFindUrl, app.activeDocument, myDoc, myHyperlinkStyle);
                } while(myFindChangeFile.eof == false);
                    myFindChangeFile.close();
                    // reset search
                    app.findTextPreferences = NothingEnum.nothing;
                    app.changeTextPreferences = NothingEnum.nothing;
            alert("Done! Hyperlinks have been added.");
            myDoc.close();
    function doSearchAndReplace(stringfind, urlstring, searchin, myDoc, myHyperlinkStyle) {
        app.findTextPreferences.findWhat = stringfind;
        //Set the find options.
        app.findChangeTextOptions.caseSensitive = false;
        app.findChangeTextOptions.includeFootnotes = false;
        app.findChangeTextOptions.includeHiddenLayers = false;
        app.findChangeTextOptions.includeLockedLayersForFind = false;
        app.findChangeTextOptions.includeLockedStoriesForFind = false;
        app.findChangeTextOptions.includeMasterPages = false;
        app.findChangeTextOptions.wholeWord = false;
        var myFoundItems = searchin.findText();
        for (i = 0; i < myFoundItems.length; i++) {
            var myHyperlinkDestination = myMakeURLHyperlinkDestination(urlstring, myDoc);
            myMakeHyperlink(myFoundItems[i], myHyperlinkDestination, myDoc);
            myFoundItems[i].applyCharacterStyle(myHyperlinkStyle, false);
    function myMakeHyperlink(myFoundItem, myHyperlinkDestination, myDoc){
        try {
            var myHyperlinkTextSource = myDoc.hyperlinkTextSources.add(myFoundItem);
            var myHyperlink = myDoc.hyperlinks.add(myHyperlinkTextSource, myHyperlinkDestination);
            myHyperlink.visible = false;
        catch(myError){
    function myMakeURLHyperlinkDestination(myURL, myDoc){
        //If the hyperlink destination already exists, use it;
        //if it doesn't, then create it.
        try{
            var myHyperlinkDestination = myDoc.hyperlinkURLDestinations.item(myURL);
            myHyperlinkDestination.name;
        catch(myError){
            myHyperlinkDestination = myDoc.hyperlinkURLDestinations.add(myURL);
        myHyperlinkDestination.name = myURL;
        //Set other hyperlink properties here, if necessary.
        return myHyperlinkDestination;

Maybe you are looking for

  • Recursive Loop Error while doing standard cost estimate

    SAP Gurus, We are trying to do standard cost estimate on a material and we are getting error because it is going in recursive loop even though we have used "recursive allowed" indicator for item components in the BOM. The error message numbers are CK

  • Try to sync, getting error message that says, ...

    ... "iTunes unable to load dataclass information from Sync Services. Reconnect or try again later." well, i did both and still it doesn't work. it's been like a day or two now. is it my phone, att, apple? i am hooked up by wi-fi...

  • Pattern Matching problems

    Hi people, I'm having a slight problem with pattern matching. What I need to do is find if my pattern is a given string an return the end index. Here's my string: <TD>Some text</TD> I need to find everything between the 2 anchor tags. (In this case "

  • Time machine to make bootable external hd?

    I just got a new MacBook for christmas. I used Macs years ago, but not in the past few years. Have a question: I had a 200 gig external usb drive handy, so I used it to do a Time Machine backup yesterday, now that I've got my mac all set up with my p

  • Unable to run ISE Backup

    Hello All If  I run a backup on ISE it fails with the Message of Insufficient disk space. Actually a dir shows plenty of disk space available. Any Idea what problem it could be ? Thanks Thomas # backup Daily_ISE repository bkp_apzhnise01 encryption-k