HELP PLEASE!! Acrobat will not recognise my csv file for a script

Hi,
I have this script which is below which I need to split a 300 page document which I need to split into 50 documents and name them with a csv file provided. I have the excel spreadsheet with column headed "filename" with 50 file names.
When I select the data file to import after being asked to enter text at start of filename etc I see the message 'No filenames found - using "file-XX.pdf". Press Escape after continuing to cancel.'
and then the error -
RaiseError: The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
Doc.extractPages:83:Console undefined:Exec
===> The file may be read-only, or another user may have it open. Please save the document with a different name or in a different folder.
file-0
I have checked the number of rows in the csv with the one which i created the merge in Indesign and it is the same. I have also tried using google docs spreadsheet but acrobat doesnt recognise the URL.
Thank you.
script I am using -
var CSV = function (data, delimiter) {
    var _data = CSVToArray(data, delimiter);
    var _head = _data.shift();
    return {
        length: function () {return _data.length;},
        adjustedLength: function () {return _data.length - 1;},
        getRow: function (row) {return _data[row];},
        getRowAndColumn: function (row, col) {
            if (typeof col !== "string") {
                return _data[row][col];
            } else {
                col = col.toLowerCase();
                for (var i in _head) {
                    if (_head[i].toLowerCase() === col) {
                        return _data[row][i];
function CSVToArray( strData, strDelimiter ){
    strDelimiter = (strDelimiter || ",");
    var objPattern = new RegExp(
            // Delimiters.
            "(\\" + strDelimiter + "|\\r?\\n|\\r|^)" +
            // Quoted fields.
            "(?:\"([^\"]*(?:\"\"[^\"]*)*)\"|" +
            // Standard fields.
            "([^\"\\" + strDelimiter + "\\r\\n]*))"
        "gi"
    var arrData = [[]];
    var arrMatches = null;
    while (arrMatches = objPattern.exec( strData )){
        var strMatchedDelimiter = arrMatches[ 1 ];
        if (
            strMatchedDelimiter.length &&
            (strMatchedDelimiter != strDelimiter)
            arrData.push( [] );
        if (arrMatches[ 2 ]){
            var strMatchedValue = arrMatches[ 2 ].replace(
                new RegExp( "\"\"", "g" ),
        } else {
            var strMatchedValue = arrMatches[ 3 ];
        arrData[ arrData.length - 1 ].push( strMatchedValue );
    return( arrData );
function isInt(n) {
    return typeof n === "number" && n % 1 == 0;
var prepend = app.response("Enter any text to go at the START of each filename:");
var append = app.response("Enter any text to go at the END of each filename:");
var pathStr = app.response("If the PDFs should be saved in a sub folder, enter the relative path here:", "", "pdf/");
this.importDataObject("CSV Data");
var dataObject = this.getDataObjectContents("CSV Data");
var csvData = new CSV(util.stringFromStream(dataObject, 'utf-8'), ',');
var pagesPerRecord = this.numPages / csvData.length();
if (isInt(pagesPerRecord)) {
    for (var i = 0; i < this.numPages; i ++) {
        var pageStart = i*pagesPerRecord;
        var pageEnd = (i+1)*pagesPerRecord - 1;
        var recordIndex = (i + pagesPerRecord) / pagesPerRecord;
        var filename = csvData.getRowAndColumn(i, "filename");
        if (!filename) {
            app.alert('No filenames found - using "file-XX.pdf". Press Escape after continuing to cancel.');
            filename = "file-" + i;
        var settings = {nStart: pageStart, nEnd: pageEnd, cPath: pathStr+prepend+filename+append+'.pdf'};
        this.extractPages(settings);
} else {
    var message = "The number of pages per row is not an integer (" + pagesPerRecord;
    message += ", " + this.numPages + " pages, " + csvData.length() + " rows).";
(which I found from another forum, but noone has answered me and I am desperate)
Thank you in advance.

As Thunderbird has already tried the password it has for the account, obviously none of those will work when you enter them. Often disabling anti virus scanning of email allows the download to occur without interruption.

Similar Messages

  • I have just purchased elements 12. It will not convert a raw file for me. i have downloaded DNG convertor 8.5 but it says that my Canon 70d is not compatible. I never had a problem with my last camera canon 7d and elments 8. Can someone help me please..

    i have just purchased elements 12. It will not convert a raw file for me. i have downloaded DNG convertor 8.5 but it says that my Canon 70d is not compatible. I never had a problem with my last camera canon 7d and elments 8. Can someone help me please

    Did you buy PSE in the mac app store? If not, just go to Help>Updates in the editor and update camera raw and you should be able to open the raw files in PSE 12 directly without the DNG converter.

  • I have a canon 70d and just purchased elements 12. It will not open a raw file for me. I have been advised to download the latest version of camera raw, i have done this and it still says my camera is not supported. I really need to open my raw files. Can

    i have a canon 70d and just purchased elements 12. It will not open a raw file for me. I have been advised to download the latest version of camera raw, i have done this and it still says my camera is not supported. I really need to open my raw files. Can anybody help me.

    You'll need to update to at least ACR 8.2 for the 70D to be recognized.  The normal way to update PSE12 to the latest CR is to use Help / Updates in the Editor which should update to ACR 8.5.
    According to Adobe's website PSE12 shipped with ACR 8.1 and you say it says yours is reported as ACR 8.0.
    Are you using PSE 11 and not 12?  PSE 11's maximum ACR version is 8.0.

  • Photoshop CC with CS3 will not open Nikon NEF files for the D610.[was:CC]

    Photoshop CC with CS3 will not open Nikon NEF files for the D610. Is there a fix for this? Fast Eddy

    I assume you're running Photoshop CC (not sure what you mean by "with CS3" unless that's the version you upgraded to CC from)
    Download Camera Raw 8.3RC
    http://labs.adobe.com/technologies/cameraraw8-3-cc/?tabID=details#tabTop

  • Help Please - X200 will not boot after Bios Upgrade - keeps asking for power on password

    Hi there,
    I am new to this forum and please let me say a big Thank You for your help in advance.
    I am using a lenovo thinkpad x200 running windows vista with service pack 1. 
    The laptop has always been running fine and has never given me any issues. Unfortunately, all this came to an end yesterday when I ran the system assistant which did a round of updates and it prompted me to reflash my bios. 
    I did what was instructed and closed all open applications and after the laptop restarted, there was a noise from the harddisk (the sound was basically like what happens if the harddisk suddenly loses power). Then, all i got was a black screen, no harddisk acitvity with only the power cable LED and another LED (with the shape of a N tiled at 20 degrees) on. 
    I searched the forum and did what was suggested in this entry: http://forum.lenovo.com/t5/X-Series-ThinkPad-Laptops/Blank-screen-after-Bios-Upgrade-on-X200/ta-p/29... 
    This is what I did so far"
    I turned off the power, took out the backup battery and waited for about 30 minutes (repeated this step several times, also removing the harddisk) but to no avail.
    I removed the RAM and tried booting and there was that characteristic beeping sound. 
    I replaced the RAM, redid the CMOS clearing, and now there is the Lenovo startup screen. However, there would be an error code 0271 (no date time) and 0251 (something about default configuration). Then, these disappear and all I am left with is the Bios Power On password prompt. Somehow no matter what I type nothing can be input into the field (and I did not create any password as far as I can remember).
    I redid the clearing for the power on password by removing the backup battery as suggested at the bottom of this page http://support.lenovo.com/en_US/detail.page?LegacyDocID=migr-59377   but it is no use. Each time I restart, even if I press the blue Think Vantage button or F1 or F11, I still get the same 0271 and 0251 error messages and am left with the power on password prompt. 
    I am really desperate as I really like my lenovo x200 and there is important data on the laptop. I would appreciate any suggestions on how I can solve this. Its amazing how a simple update can turn into such a disaster. Now i know i should never upgrade or update my Bios (or at least proceed with extreme caution).
    Anyone can provide some help to get my laptop workin again?
    Thank you very much,
    Mark

    try reflashing your bios?
    http://support.lenovo.com/en_US/downloads/detail.page?&LegacyDocID=MIGR-70348
    Regards,
    Jin Li
    May this year, be the year of 'DO'!
    I am a volunteer, and not a paid staff of Lenovo or Microsoft

  • Help please flash will not install.

    Hi tried all day to install flash on my first macbook. Tried everything. uninstalled, firewall is off, safari plug-ins enabled. Any help please?

    Thank you to Mike M for your post in Oct 2013. Followed it and it worked first time. What a waste of a day.

  • Maxl Script will not write to error file for data laod.

    Sorry Glenn here is the new thread. I re ran without the semi colon after data 3 and the same error came up without anything being written to the error file.
    I purposely removed a member from the orginal outline that is included in the data loaded but yet the error file is not written to. I tried doing the load manually but executing it in the background, error file is to be created on my local HD but it does not write it there. Checked the output and it is written to a directory located on the server. Although i think this is normal.
    Could it be that it will not write to a local drive? I am going to try specifying a spot on the server to see if it runs there.
    thanks
    Original post below.
    Hello,
    I am also having this issue.
    I will include my script below but will state some details before
    We are on Essbase 11.1.1.3
    I am running Admin Console from my client PC that connects to the server in the script and I read that in this set up the error file will not get written to. This documentation was for v 9.1.3
    Here is my script (i changed some of the names)
    login 'user' 'password' on server';
    create application 'Money1' as 'Money2';
    spool stderr on to 'errorfile';
    import database 'Money1'.'Main' data
    from local text data_file 'Money1_Data.txt'
    using server rules_file 'Data3'
    on error append to 'dataload.err';
    execute calculation 'CALC ALL;' on 'Money1'.'Main';
    logout;
    spool off;
    exit;
    here is the error output i get:
    code line: on error append to 'dataload.err';
    Statement executed with warnings.
    (3) Syntax error near ['$']
    I don't see a dollar sign anywhere in my code and the error file does not get produced.
    Also do error files get written too if the actins are executed in the background?
    Thanks!
    Alex

    This works for me in a MaxL script run through essmsh.exe:
    import database appname.dbname data from local text data_file "d:\\datafilename.txt" using server rules_file "rulename"
         on error write to "d:\\errorfilename.err" ;Sometimes EAS (I think you are running it through that) does weird things to MaxL. I eschew MaxL in EAS as much as possible (like 100% of the time).
    NB -- the datafilename and errorfilename and their drive letters are local to wherever you're running this process through the MaxL shell. I don't know how that works when you're running EAS -- are drives local to your session, local to the EAS server? Dunno. Leave EAS behind, buy TextPad (no I am not the author of that fine product) and download the MaxL syntax library, and be happy. :)
    Regards,
    Cameron Lackpour
    Edited by: CL on Oct 7, 2010 7:12 AM
    Put the MaxL into a code block to get it to display correctly.

  • HELP PLEASE ITUNES WILL NOT LOAD RIGHT!!!!

    just tried to run itunes 10.5 but say the procedure entry point KCMByteStremNotification_AvailableLengthChanged could not be located in the dynamic link library CoreMedia.dll.. Please help just wanted to have itunes work!!!

    I am having the same issue! And I have tried everything from updates, to moving the coremedia.dll file, to uninstalling and reinstalling so many times im afraid they are not gonna let me download it anymore!!! Please can somebody help??

  • Help Please: Mail will not work when Wifi uses HTTP Proxy

    I am using an IPad 2 under iOS5. At work, I can connect to the internet using Safari via our wifi network with no problems. This requires access via a manually set HTTP Proxy.
    However, all attempts to create or use a (GMail) account have failed. I know that the mail account works because I have used it with no problems via my home wifi network. It would appear that Mail is not using the wifi proxy information in settings.
    The same was true under iOS4, but I would have hoped that a fix would have appeared in iOS5.
    Can anyone offer help or advice as to how I get around this problem?
    Thanks,
    Chris

    Still need help

  • Help please - Brush will not work properly

    How do I get my brush to work - it is painting grey instead of the selected skin colour for a retouch in CC/CS6

    Thanks Jeff - A lovely lady from Adobe fixed my problem last night.
    She had to reset my preferences as my CS6 was corrupted.
    Your assistance is really appreciated - thank you.
    On Tue, Jul 8, 2014 at 3:31 AM, Jeff A Wright <[email protected]>

  • ITunes will not accept my .xml file for podcast

    I'm really not exactly sure what I am doing wrong here. I have done a handful of podcasts over the years and never had a problem submitting a new feed. Now that I have a new show that I want to submit, iTunes give me the error: We had difficulties reading this feed, connection reset. I have done some Google'ing but can't really seem to find the exact answer as to what is wrong.
    Here is my feed: http://www.howdyinc.com/sass/itunes.xml
    Any help would be much appreciated. Many thanks in advance.
    B.

    FeedValidator finds no errors, and you feed can be subscribed to manually in iTunes (from the 'Advanced' menu). However your 'enclosure' tag is not structured in the normal way and this may be the issue. It reads:
    <enclosure url="http://www.howdyinc.com/sass/SASS.01.mp3" length="11639193" type="audio/mpeg"  ></enclosure>
    It should read
    <enclosure url="http://www.howdyinc.com/sass/SASS.01.mp3" length="11639193" type="audio/mpeg" />

  • PowerMac G4 OS 10.4.11 will not recognise RAW images on a SDHC card but it will see JPGs why?

    Question:
    I have a PowerMac G4 OS10.4.11.  I have recently bought a Lumix LX5 camera and it uses an SDHC card.  My Mac will not recognise RAW image files stored on it either by plugging the camera into a USB slot or by using a USB card reader.  Can anyone tell me how to overcome this problem?

    Thanks for that,
    I downloaded RPP and it does indeed open the RAW files and lets me convert them into TIFFs or JPGs which I can then import into Photoshop to play with.  However I'm still confused about why I can't open them in Photoshop directly.  My other camera is a SLR saving to a SanDisk Extreme lll Compact Flash card and I can open RAW files off that on the same computer with no problem using a Photoshop RAW converter plug-in.

  • I have attempted to upgrade os4 to os7. icloud has taken an old expiered email address for which i do not know the password. It will not recognise my current email and password with itunes.  Any help appreciated

    I have attempted to upgrade os4 to os7. At the end, it threw an error that i had to turn off "Find my iphone" on my phone, which seems to be impossible at that stage as i could not access beyond the upgrade screen.
    I thin chose to set up as new iphone, but icloud has taken an old expired email address for which i do not know the password. icloud will not recognise my current itunes email and password, so i now have os7 but am unable to restore from my itunes back up. 
    Desperately need help please... Any help appreciated
    Thankyou

    If you don't know your password, don't know your security questions and don't have a rescue address or don't receive a reset email, you should contact AppleCare who will initially try to assist you with a reset email or if unsuccessful will pass you to the security team to reset your security questions for you.
    If you are in a region that doesn't have international telephone support try contacting Apple through iTunes Store Support.

  • Acrobat will not open any documents, HELP! Thank you!

    Adobe Acrobat will not open any documents, it tells me it is a trial, I click on license product and get a thank you for your Adobe Cloud subscription... but then when I try to open a pdf I get the same message it just keeps looping from trial will run out in 7 days to trial will run out in 13 days and I can never open a pdf. I am going to try and uninstall and reinstall. For most of us, not being able to open a pdf is comparable to not being able to work. This is totally UNacceptable. Clients and bosses are counting on my being able to do my job, I can't say to them, "Oh well the dog "Adobe" ate my homework." PLEASE fix this Adobe! Thank you.
    Here is a screen shot of the messages...
    I  uninstalled, rebooted, reinstalled from Adobe Application Manager, thought all was great when it asked for my user name and password, then when I clicked Launch... same issue. FRUSTRATING! Any one have a fix? I even created a pdf using InDesign, made sure I had View PDF after exporting checked and still got that awful Trial box. The pdf did show up in my documents, but I can not open it.
    Any help would be greatly appreciated. Thank you!

    Thank you Manish-Sharma, I followed the instruction in the thread, and for the first time in a week I can actually open a PDF. I am not sure if this will be a permanant fix, we will see on the 30 day mark. I really appreciate that you read my question and gave me an answer that allowed me to open Acrobat. I also opened Photoshop, InDesign, Illustrator and AfterEffects. They all opened with the exception of a small glitch when I opened Illustrator which was cleared up in moments. See screetshot.
    Thank you again! Much appreciated!

  • HT201232 itunes will not recognise my device iphone 5s, pls can some one help???

    itunes will not recognise my device iphone 5s, pls can some one help???

    Hello Tantoh,
    Welcome to the Apple Support Communities!
    I understand that your iPhone is not being recognized by iTunes when you connect it. To help resolve this situation, please read over and work through the steps outlined in the attached article. 
    If you don't see your connected device in iTunes for Mac - Apple Support
    Have a great day,
    Joe

Maybe you are looking for

  • Logical Switch design question...

    I received a new server that has 4 NIC's. I've seen alot of articles about seperating out the Management, Live Migration, Cluster, and Tenant traffic but it seems they are putting it under all the NIC's teamed. So my questions are: Is it better to de

  • Web Services URL - Live office connection

    Hi, When I try to give the web service URL as http://<Server>:<Port>/dswsbobje/services/Session I get a error saying unable to connect to the server. Any thoughts? Thanks, Hema

  • RABAX_STATE

    What has happened? The URL http://sap-erp:8000/sap/bc/webdynpro/zz_01_sflight was not called due to an error. Note The following error text was processed in the system ER5 : WebDynpro Exception: Application /ZZ_01_SFLIGHT/ Does Not Exist The error oc

  • I have the iPhone asks Account Forgot Password Is there a solution to open the machine

    I have the iPhone asks Account Forgot Password Is there a solution to open the machine

  • ITunes library could not be saved

    I recently installed iTunes on a new PC and had all my old files transferred over to the new hard drive. All my music loaded onto iTunes but after a few days I noticed an error message on the screen saying 'The iTunes library could not be saved, ther