[CS5] InDesign Server holding onto script file after being executed?

Hello,
I've run into a scenario which we have a script file dynamically created, saved to disk, then sent to InDesign Server to be executed. The code that tells InDesign Server to execute the script will delete that script file after it's finished executing. This works MOST of the time. However, sometimes, we get IO Execeptions stating that the file cannot be deleted because it is still in use. It would appear that InDesign Server is possibly holding onto the script files maybe even for just a millisecond after it's finished executing.
Has anyone experienced anything like this before? I'm looking for possible things to check (maybe it's not even ID Server that is the problem). Or maybe there is some option within ID Server when executing scripts that would allow ID Server to remove the file instead of our .NET code?
Any advice/suggestions greatly appreciated, thanks!
-lhanneman

UPDATE:
It appears that this problem is related to IDS executing the script. I've narrowed the problem down by taking the script execution completely out of the equation. If my code saves the script to disk and attempts to delete it right after - it works every time. I'm also able to, within our .NET code, save the script to disk, open the file up, read a line out, close it, and then immediately delete it. ONLY when ID Server executes that script between writing the file and deleting the file do we have problems.
Has anyone ever encountered anything like this? It seems to be directly related to ID Server holding onto the file for too long.
Again, many thanks in advance for any help!
-lhanneman

Similar Messages

  • How do i recover files after being trashed?

    how do i recover files after being trashed?

    If you emptied the trash, you don't unless they are on your backup disk.

  • What happened to ADOBE workspaces files after being downloaded before retirement?

    What happened to ADOBE workspaces files after being downloaded before retirement?

    I had this problem as well! I was working on one of several projects I had, I'm pretty sure they were saved on the computer, my computer started to chug, I reset it, and they ALL disappeared! I can't find any of the files anywhere on the hard drive, but I also can't sign into the cloud to see if they somehow got moved. I reset again, and still nothing.
    When I try to log into the cloud it tells me the sync failed. Since I only just signed up for the subscription I don't know if it's common for it to go down, or what.

  • InDesign Server fonts are locked even after document closed

    Hi!
    We get "file in use" messages from windows, after installing latest InDServer update.
    We create packages from open documents, on the server, then we close the documents.
    After that a piece of code is to move the package to another location. This "move" fails now, after installing the update called 7.0.3.533.
    That upgrade was also called: Adobe InDesign Server CS5 Release Update 7.0.3 WIN
    Screen-shot: Manually repeating the MOVE FOLDER method call.
    Is this a known error? What can be done?
    The InDesign documents are using "document fonts", that is these fonts should be local to the document.
    We also could find no specification of the changes implemented in 7.0.3.533.
    Best regards,
    Andreas Jansson

    Hi Folks,
    I'd forgotten about this particular problem, but here I am again as I still have no solution for it. On a number of documents, I am now seeing a number of frames contain a large number of links and I cannot see a way to access them to remove them (whether this be by changing the resource state, I don't know).
    Earlier on I tried something simple by simply getting hold of ILinkManager and calling QueryLinks(). As expected it returned no links! Another aspect of this issue can be seen in the screenshot below - there are no links, yet the tooltip specifies that there are 2 unique links (I imported tagged text into the same frame twice).
    I now have two projects using slightly different approaches to importing tagged text. One uses IImportSuite::DoImport() as mentioned before and the other uses IImportResourceCmdData\IReplaceCmdData. Both import with no problems apart from this annoying side-effect.
    Has anyone got any ideas?
    Thanks in Advance,
    Andrew

  • InDesign Server Stops Including INDD Files

    We are generating a book and use InDesign to create the exhibits (art) that go into the book. We have over 140 INDD files that are referenced by the book INDD. When the server reaches about the 140 mark it suddenly stops pulling in the remaining INDD files citing the following error:
    InDesign warning: Couldn't open image file
    When we reduce the number of INDD files, all of the files are pulled successfully into the book. Any advice on what can be done? We assume that InDesign Server opens each of the referenced INDD files and keeps them open until the book is complete. Is there a limit to how many INDD files can be open at a time? Is there some configuration setting that will enable us to avoid this problem?
    Our InDesign Server is running under Windows 2003 Server with 2GB of RAM in production. In Development, we have set up a server with 4GB of RAM and do not see any difference in behavior.

    I currently have a script
    that is working by opening each file (from step 2) using Copy and Paste to paste
    them into the layout indd file (from step 1) in InDesign CS 5.5 (not the Server
    version), but when I was evaluating InDesign Server CS 5.5 I noticed that it
    does not allow Copy and Paste in the scripting.
    Yes, Copy paste won't come into picture while you are at server.
    You could duplicate page Item instead of page itself:
    Run it in looping statment and make duplicate all page items to destination document.
    app.documents.item(0).pages[0].pageItems[0].duplicate(app.documents[1].pages[0])
    or you could use for all page item in a page
    app.documents.item(0).pages[0].pageItems.everyItem().duplicate(app.documents[1].pages[0])
    John wrote:
    So, the last implementation of this I had copied sections, created pages, and
    then iterated over pages and copied items. It worked OK in CS3 but later stopped
    working in CS5.
    It does work in CS5 for me but duplicate whole page at last of destination docment.
    Mac

  • [JS][CS5] InDesign Server

    Hi.
    I am curious to find out the speed advantage of using an InDesign Server to process one of my scripts as opposed to running locally on my Mac.  I know there are licence restrictions to using a desktop version of ID for server purposes anyway. I also know the cost of setting one up is not trivial.
    Does Adobe offer any sort of testing platform for users to upload scripts and configure for testing purposes? I know there is a hell of a lot more work to configure this, but was wondering if this facility existed.
    Just thought I'd ask.
    Thanks
    Roy

    Yes. There are performance advantages to Server -- mostly because none of the UI related processing is necessary...
    Don't expect the differences to be too drastic though. I have found that the 64 bit Windows build to be noticeably faster than my local machine...
    Harbs
    (P.S. If you do decide to go for a Server license, I might be able to get a discount for you...)

  • Invoking Indesign server plugin through script

    Hello,
    I have built a Indesign server plugin which was made to run with desktop Indesign application also. I wrote a javascript in which an event was fired. Plugin was supposed to handle the event. When I run this javascript, desktop plugin gets invoked rather than the server plugin.
    I don't know the way by which an Indesign server plugin gets invoked.
    Please help me getting aware of the flow it follows.
    Thanks,

  • Upgraded to CS5.5. Images in Indesign are displayed in lower quality after being saved in PS

    Hello,
    i upgraded to the Creative Suite 5.5 today and detected a strange behaviour. I work on a document which has been generated on another system with an older version of the Creative Suite. Everything is
    fine until i open and save one of the images which are used in an Indesign-Layout in Photoshop. After doing this the saved image is displayed with lower quality than before while all other pictures
    remain at the same preview quality level. Of course i can change to »Überdruckenvorschau – maybe overprint preview« (Sorry - i do not know how this is named in the english version) or change to the high quality view but
    this is a little bit too much for working.
    Do you have any ideas?
    thank you so much,
    tm

    I suspect the old High Quality preview was retained (like the text layout will be retained on a converted file until you touch the story in some way, at which point it will be recomposed using the new text engine) and when you replaced the image a new prview as drawn using the current view settings.
    Enable High Quality Display if that's the view you want.

  • Watching image files after being ripped or burned

    I am a 1 week new Mac user so please forgive my lack of knowledge.
    On my PC, I used to burn projects to image files, then mount the file, and watch it. I finished my first burn of a DVD, and now it says it is a Toast file. How do I mount it or watch it as though it is a real DVD?
    I would do this to test out the movie before an actual burn.

    JRALD,
    When you burn to an image file in iDVD, you create a "disk image," which is just like an ISO image. In order to view the video, you must mount the disk image (it will show up on your Desktop just like a real disk). To do so, just double-clck the image file, which will have a ".img" suffix.
    You will then have to open DVD Player, and use it to open the VIDEO_TS file.
    When you have finished, eject the mounted image by dragging it to the trash (the mounted image, not the image file ;-)). If you like what you have burned, and would like to make a "hard copy" of it, drag the image file into Disk Utility's "source list," select the image, then click "Burn." Do this as many times as you like for multiple copies.
    Scott

  • PDF Corrupt file after being using in sql 2008

    I have SQL 2008 database a database with PDFs stored on it. The app reads the PDF from the database and stores it on the machine as a temp file, then launches Acrobat Reader.
    At that point, I receive a message that the file format is invalid. I receive the same message when I have the app save the file as .pdf. I'm reading the PDF from the database using the Filestream object.
    Is there a way to prevent this?

    Look at following source of experienced or novice users. They can give you clear and effective answers for handling your situation:-
    http://www.filerepairforum.com/forum/adobe/adobe-aa/pdf/600-pdf-document-error
    Alternative paid solution:
    Third party software, costs money, but gives you result
    PDF Repair Toolbox
    http://www.adobereaderrepair.acrobatrepairtoolbox.com/
    Online repair service:
    Visit:-
    https://onlinefilerepair.com/
    Push to Start Upload and Repair
    Choose your corrupted .pdf from PC
    Push Upload File for recovery
    And get your file back with restored information…

  • Script is not being executed in another instance of cluster

    Hi expert!
    We have two instances running in a cluster environment.
    We created a script in instance-1. The script is executed in instance-1 withoug any issue. But it is not executing in instance-2.
    The instance-2 can see the script, though.
    We even restarted the web server. The problem still exists.
    What can be possible reason to cause it?
    Could you give me any hints?
    Thank you very much.

    Hi Jordan,
    Are all the scripts not working in the 2nd instance or is the issue related to a specific script? It could be a caching related issue. I would try clearing the script key cache. If that doesnu2019t help, I would check the log file on the instance itu2019s not working. Logs should give you information on what might be going on.
    Also, I assume you meant, you restarted the app server not the web server.
    Regards,
    Vikram

  • CS6 Applications holding on to files

    I need to know if there is something built into the Applications (Acrobat, InDesign, and Illustrator) that holds onto the files after they have been modified and closed. If so then I need to know if that can be disabled.
    More info:
    We have three Macs (OSX 10.9) running CS6 (Design & Web Premium) and connecting to a Windows share via cifs. An ongoing issue that we have been running into is that Acrobat, InDesign, or Illustrator will keep files open even when they have closed out of the files. This has happened frequently (about once per day) where someone wont be able to delete or make changes to a file. For example, today one of the users was unable to rename a .pdf file (gave an error code saying that he didn't have permission) so I had to login to the server manager and see who had the file open. Turns out that another user "had it open" but in reality she closed out of the .pdf a few hours ago. To cover all bases I had her close out of InDesign and Acrobat (what they use to modify the .pdfs) and then he was able to rename it.
    We used to connect through smb but that was really slow to do a search so we switched back to cifs. Even on smb it was still having this issue. We have had this issue on CS4, CS5, CS5.5, and CS6 as well as OSX 10.6-10.9. I have the OS updated to 10.9.5 as well as constantly updating the CS6 applications in case there is a fix that comes out.

    Currently using the latest CS6 AE v11.0.2.12 on a Win7 Professional service pk.1 64 bit. My system has 2 processors: intel xeon cpu E5-2609 0 @2.4GHz with 64 GB RAM  500GB SSD as local disk and 2TB hard drive.
    The footage in the comps I am trying to open are .r3d files that have RedGiant effects applied (primatte key used mostly).. the error I am seeing in AE when it crashes on opening the comp is error:error4 in Edge Blur(25::241)
    These comps opened fine when I was working on them last year, but now when I open a fresh AE and load any one of my saved files AE crashes and will not display the footage. I can open AE and start a new comp, but it is only when I open one of my saved files where it crashes.
    Thanks for the help.

  • Indesign server web service - where is the support to upload a file with the script and download the result?

    Hi,
    I am working on a POC that is supposed to convert indd files to pdf (i.e. using of course the indesign server). Basically I want to call the IDS Web Service (located on a different machine perhaps), pass in the input file, the conversion script and retrieve the result as part of the WebService call? 
    Browsing the documentation, examples, etc in the SDK, I couldn't see how the above can be achieved without the client handling the file transfer. Surely I must be missing something ...
    thanks
    Chris

    What do you mean with POC?
    InDesign Server is too precious (i.e. license cost) to waste its time with file transfers.
    For a smaller scale, let a separate process (some http or smb server) on the same server hardware handle the files - so that the InDesign Server can access them on the fastest local volume.
    If you plan for bigger, use a dedicated server for file sharing (your choice of SMB, NFS or whatever), where the input files are prepared by the client process, so that your load balancer can immediately point the next free instance of the InDesign server farm to the file. In that case be prepared for some try and error - high speed file sharing can be tricky with files written from one side not yet visible or incomplete to the other side, locking problems, Unicode file name trouble, unexpected time stamps and so forth.
    Btw, there is also an InDesign Server forum which would be more appropriate for such discussions.
    Dirk

  • [IDS Win]How to flush Indesign server.

    Hi All,
    I am using Indesign server to create documents which contains text, images & tables. My job is to create & export documents to pdf. Document are sometimes contains 300 plus pages. And cs2 server process this jobs one after the other in queue ..may be 100 jobs in a queue. Here after certain amount of time a 'out of memory' error comes up and Indesign server gets crashed(its around after processing 30-40 jobs).
    I have taken care to delete all allocated meomary in my program through New- delete pair. Still after each job allocated memory to Indesign keeps increasing.
    Is there any way so that I can purge memory from Indesign after my job complition? I tried to use 'PurgeMemory' over IDocumentList but its not that effective.
    Any suggestions are most welcommed!
    Thanks,
    Rahul.

    Well, it's been two years since the last activity in this thread, and I am having this exact same problem with InDesign Server CS4.
    I have a .NET web application that calls the IDS through SOAP and simply tells it to run a JavaScript.  In simple terms, the script opens an InDesign file, imports some XML, makes some minor formatting changes, and exports the PDF to the filesystem.  The .NET webapp then receives the status message and redirects the user directly to the finished PDF which they can then view/save/etc.
    This all works perfectly, but while it's running, I see the memory usage of InDesignServer.exe spike by several MB, and then it settles back down to a still-higher-than-initial value. Eventually, the InDesignServer.exe is taking up several hundred MB and my server starts giving out-of-memory errors.
    I'm not sure what I'm doing wrong. Like the original poster asked, it appears as though I should be flushing something that I am not. I've researched this "ErrorList" that was referenced, and my memory "leak" seems to be bigger than this (although I could be wrong), but I can't find anything in the language reference on how to programmatically flush this after each document. I'm not even sure if this is the culprit.
    Can anybody help? Many many thanks in advance
    The contents of my JavaScript is as follows (and you'll see that I'm closing the document each time):
    // We encapsulate the meat of the code in a main() function and then call main() at
    // the bottom of the script in order to facilitate proper returns
    // see http://ericwillis.wordpress.com/2008/04/18/return-value-from-indesign-server-script-via-so ap/
    function main()
         // Our script requires a school code to be passed in as an argument
         // We begin by assuming that it hasn't been passed
         var message='Error: schoolCode parameter required';
         // if the argument HAS been passed...
         if(app.scriptArgs.isDefined('schoolCode'))
              // We change our return message and proceed with processing
               message='Success: No problems reported';
              // This is our work folder
              var projectPath='/E/mywebsite/';
              // this is our starting template
              var doc = app.open(File(projectPath + 'source/Template.indd'));
              // the template has been "tagged" with XML placeholders, so here we are
              // importing the data to replace them. The filename of the XML is
              // dependent on the school code that was passed as an argument
              doc.importXML(File(projectPath + 'work/' + app.scriptArgs.getValue('schoolCode') + '.xml'));
              // The next portion of the script scans the entire document for overset
              // text (text that flows outside of it's container). If any is found, it changes
              // the text colour to red so that the author knows that they overtyped
              //Create a color.
              try{
                   doc.colors.item("Red").name;
              catch (myError)
                   doc.colors.add({name:"Red", model:ColorModel.process, colorValue:[20, 100, 80, 10]});
              // loop through each "story"
              for(x=0;x<=doc.stories.length-1;x++)
                   // if the current story has overset text...
                   if(doc.stories.item(x).overflows)
                        // change the text colour to our previously created colour
                        doc.stories.item(x).fillColor = doc.colors.item("Red");
                        // Change the message too so that we know on the server side
                        // that there's a problem
                        message='Warning: Contains overset text';
                   // We couldn't find a way to use styles to place an outside border
                   // around a variable-width & length table that we're creating
                   // dynamically in the XML. To solve this, the following loop finds all
                  // of the tables in the document and places a border around their
                  // outside-most edges only
                   // Loop through each table in this story
                   for(y=0;y<=doc.stories.item(x).tables.length-1;y++)
                        // myTable will refer to each table
                        var myTable=doc.stories.item(x).tables.item(y);
                        // Header stroke
                        var myRow=myTable.rows.item(0);
                        myRow.topEdgeStrokeColor="Black";
                        myRow.topEdgeStrokeTint=100;
                        myRow.topEdgeStrokeType="Solid";
                        myRow.topEdgeStrokeWeight=0.5;
                        myRow.topEdgeStrokeOverprint=true;
                        // Do left border
                        var myCol=myTable.columns.item(0);
                        myCol.leftEdgeStrokeColor="Black";
                        myCol.leftEdgeStrokeTint=100;
                        myCol.leftEdgeStrokeType="Solid";
                        myCol.leftEdgeStrokeWeight=0.5;
                        myCol.leftEdgeStrokeOverprint=true;
                        // Do right border
                        var myCol=myTable.columns.item(myTable.columns.length-1);
                        myCol.rightEdgeStrokeColor="Black";
                        myCol.rightEdgeStrokeTint=100;
                        myCol.rightEdgeStrokeType="Solid";
                        myCol.rightEdgeStrokeWeight=0.5;
                        myCol.rightEdgeStrokeOverprint=true;
                        // Do bottom border
                        var myRow=myTable.rows.item(myTable.rows.length-1);
                        myRow.bottomEdgeStrokeColor="Black";
                        myRow.bottomEdgeStrokeTint=100;
                        myRow.bottomEdgeStrokeType="Solid";
                        myRow.bottomEdgeStrokeWeight=0.5;
                        myRow.bottomEdgeStrokeOverprint=true;
              // Set some PDF export prefs
              app.pdfExportPreferences.cropMarks=false;
              app.pdfExportPreferences.colorBars=false;
              app.pdfExportPreferences.bleedMarks=false;
              app.pdfExportPreferences.useSecurity=false;
              // Export the PDF to the filesystem
              // the filename is dependent on the school code that was passed
              // as an argument
              doc.exportFile(ExportFormat.PDF_TYPE, File(projectPath + 'work/' + app.scriptArgs.getValue('schoolCode') + '.pdf'));
              // Close the document
              doc.close(SaveOptions.no);
         // Return whatever message was produced by this function
         return message;
    // call our main function
    main();

  • Adobe Indesign Server 4 Failed to start

    Hi All,
    I have a big problem.
    Finally we got access to download Adobe Indesign Server 4 Debug Version, but after installation, failed to start?!
    Environment:
    1, VMWare Guest System (2G Memory)
    2, WIndows 2003 Server 32bit
    3, Installation was good and we tried to run: InDesignServer.com in command line and it says:
    C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug>InDesignServer.com
    The system cannot execute the specified program.
    and when we run this from window:
    Further more, I can see below message in Event Viewer:
    Event Type:    Error
    Event Source:    SideBySide
    Event Category:    None
    Event ID:    59
    Date:        7/7/2009
    Time:        10:34:31 PM
    User:        N/A
    Computer:    INDESIGN
    Description:
    Generate Activation Context failed for C:\Program Files\Adobe\Adobe InDesign CS4 Server Debug\InDesignServer.exe. Reference error message: The referenced assembly is not installed on your system.
    For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.
    Any help is much appreciated!!!!
    Thanks,
    xin

    I don't have a server at hand right now ( that machine is busy with an OSX install, on a different partition ) but you could start by looking for any Adobe document that even mentions VC++ 2008.
    In other words, at least for the desktop version of CS4 the oficial compiler is the VC 2005 SP1 .
    Express should be no problem, I use it myself: "VS80sp1-KB926748-X86-INTL.exe"
    You'll also need the matching Windows SDK. Watch out for something labeled "5.2.3790.2075.51.PlatformSDK_Svr2003R2_rtm.dmg"
    Hth,
    Dirk
    Afterthought: funny that this thread always pops up when my experimental machine is busy ;-)

Maybe you are looking for