(javascript) My script generates an error in a .psd, but not another

I have this old script that re-arange each pixel in an image, save the image on the hard drive and then apply the re Arrangement even to the last image, repeat.

The problem is, sometimes I have to close my pc and then I have to restart the process, using one of the latest - generated files and then the script generates an error

With the help of my script on this .psd works very well:

https://DL.dropboxusercontent.com/u/8240354/widescreen-crop-14748750464_94dcb6effe_o.PSD

With the help of my script on this .psd gives an error:

https://DL.dropboxusercontent.com/u/8240354/re-aranged-pixels.PSD

My script:

/*
FILE:     spacewarp-turbo.jsx

WRITTEN:  23 marts 2007

AUTHOR:   [email protected]

PURPOSE:  Wild, dude! This script will redraw the picture, one pixel at a time, but it will redraw it horizontally instead of vertically. Sort of if an english text had all its letters redrawn in Japanese writing style. That is: vertically first, and then from right to left.
It does that over and over again. In theory, the image will reappear after several 1000 times. This script is much faster than the previous version, which redraw the image one pixel at a time.

LICENSE:  GNU LGPL (GNU Lesser General Public License)
          Read the file copying.txt for details. Basicly, this license is
      copyleft, which means that it uses copyright to encurage use,
      instead of restricting it. The LGPL gives you the right to
      distribute, modify and use the scripts, as long as you grants other
      people the same right. This applies to any derivative work. This is a
      good thing, right? :-)

ERROR: For some reason, it cannot use a PNG file from the save directory
For this reason, you will have to copy the latest file to another directory
when you want to resume


*/

#target photoshop 

repeats = 20000000;

// The folder where the files will be placed: example: mappe = "/c/billeder/";
mappe = "/c/billeder/"; 

// The name of the saved images - may not contain space!
var imgName = "spacewarp_";

// Should we save the copy of the unmodified file beføre the first run?
// If you have interrupted the script, and want to restart with the last 
// generated file, turn this one off, since you already have that image.
saveAtFirst = false;

// Should the png contain transparence?
var trans = false;

// Should the number contain zeroes?
nuller = true;

// Number of ciffers, if the number contain zeroes.
cifre = 5;





// Make backup of the settings before they are changed
var linialBackup = preferences.rulerUnits;
preferences.rulerUnits = Units.PIXELS;


   ///////////////////////
  ///   FUNCTIONS  ///
 /////////////////////



eyedropper = function(docRef,x,y) { // Function which will determinate the color of a pixel
        x2 = x + 1;
                y2 = y + 1;
            out = [0,0,0]; 
        docRef.selection.select([[x,y], [x2,y], [x2,y2], [x, y2]], SelectionType.REPLACE, 0, false); // selects the pixel
        for(ch in list = ["Red", "Green", "Blue"]) { 
            histogram = docRef.channels[list[ch]].histogram; // Chooses the red, green or blue color
            for (i = 0; i <= 255; i++) { 
                out[ch] = i; 
                        out[ch] = out[ch].toString(16); 
                if (histogram[i]) break; 
            } // i
        if ( i < 16) out[ch] = "0" + out[ch];
        } // ch
    var out1 = out.toString(16);
        out1 = out1.split(",").join(""); // removes all ","
        return out1; 
}


pngForNet = function(colorReduction, antalFarver, fil) {

var id72 = charIDToTypeID( "Expr" );
    var desc14 = new ActionDescriptor();
    var id73 = charIDToTypeID( "Usng" );
        var desc15 = new ActionDescriptor();
        var id74 = charIDToTypeID( "Op  " );
        var id75 = charIDToTypeID( "SWOp" );
        var id76 = charIDToTypeID( "OpSa" );
        desc15.putEnumerated( id74, id75, id76 );
        var id77 = charIDToTypeID( "Fmt " );
        var id78 = charIDToTypeID( "IRFm" );
        var id79 = charIDToTypeID( "PNG8" );
        desc15.putEnumerated( id77, id78, id79 );
        var id80 = charIDToTypeID( "Intr" );
        desc15.putBoolean( id80, false );
        var id81 = charIDToTypeID( "RedA" );
        var id82 = charIDToTypeID( "IRRd" );
        var id83 = charIDToTypeID( "FlBs" );
        desc15.putEnumerated( id81, id82, id83 );
        var id84 = charIDToTypeID( "FBPl" );
        desc15.putString( id84, colorReduction );
        var id85 = charIDToTypeID( "RChT" );
        desc15.putBoolean( id85, false );
        var id86 = charIDToTypeID( "RChV" );
        desc15.putBoolean( id86, false );
        var id87 = charIDToTypeID( "AuRd" );
        desc15.putBoolean( id87, false );
        var id88 = charIDToTypeID( "NCol" );
        desc15.putInteger( id88, antalFarver );
        var id89 = charIDToTypeID( "Dthr" );
        var id90 = charIDToTypeID( "IRDt" );
        var id91 = charIDToTypeID( "None" );
        desc15.putEnumerated( id89, id90, id91 );
        var id92 = charIDToTypeID( "DthA" );
        desc15.putInteger( id92, 100 );
        var id93 = charIDToTypeID( "DChS" );
        desc15.putInteger( id93, 0 );
        var id94 = charIDToTypeID( "DCUI" );
        desc15.putInteger( id94, 0 );
        var id95 = charIDToTypeID( "DChT" );
        desc15.putBoolean( id95, false );
        var id96 = charIDToTypeID( "DChV" );
        desc15.putBoolean( id96, false );
        var id97 = charIDToTypeID( "WebS" );
        desc15.putInteger( id97, 0 );
        var id98 = charIDToTypeID( "TDth" );
        var id99 = charIDToTypeID( "IRDt" );
        var id100 = charIDToTypeID( "None" );
        desc15.putEnumerated( id98, id99, id100 );
        var id101 = charIDToTypeID( "TDtA" );
        desc15.putInteger( id101, 100 );
        var id102 = charIDToTypeID( "Trns" );
        desc15.putBoolean( id102, false );
        var id103 = charIDToTypeID( "Mtt " );
        desc15.putBoolean( id103, false );
        var id104 = charIDToTypeID( "MttR" );
        desc15.putInteger( id104, 101 );
        var id105 = charIDToTypeID( "MttG" );
        desc15.putInteger( id105, 162 );
        var id106 = charIDToTypeID( "MttB" );
        desc15.putInteger( id106, 143 );
        var id107 = charIDToTypeID( "SHTM" );
        desc15.putBoolean( id107, false );
        var id108 = charIDToTypeID( "SImg" );
        desc15.putBoolean( id108, true );
        var id109 = charIDToTypeID( "SSSO" );
        desc15.putBoolean( id109, false );
        var id110 = charIDToTypeID( "SSLt" );
            var list3 = new ActionList();
        desc15.putList( id110, list3 );
        var id111 = charIDToTypeID( "DIDr" );
        desc15.putBoolean( id111, false );
        var id112 = charIDToTypeID( "In  " );
        desc15.putPath( id112, new File( fil ) );
    var id113 = stringIDToTypeID( "SaveForWeb" );
    desc14.putObject( id73, id113, desc15 );
executeAction( id72, desc14, DialogModes.NO );
}





   ///////////////////
  ///   SCRIPTS   ///
 //////////////////








if (documents.length == 0) { alert("Sorry dude! You need to have an image open before running this script!"); } // If no documents are open, display a warning
else { // else run the script






if (saveAtFirst) {
    
    var docRef = activeDocument;


    bVal = "";
    
    for (num = 1; num < 9000000; num++) {
    
          if (num < 10000000000000) c = cifre - 14;
          if (num < 1000000000000) c = cifre - 13;
          if (num < 100000000000) c = cifre - 12;
          if (num < 10000000000) c = cifre - 11;
          if (num < 1000000000) c = cifre - 10;
          if (num < 100000000) c = cifre - 9;
          if (num < 10000000) c = cifre - 8;
          if (num < 1000000) c = cifre - 7;
          if (num < 100000) c = cifre - 6;
          if (num < 10000) c = cifre - 5; // fire cifre
          if (num < 1000) c = cifre - 4;
          if (num < 100) c = cifre - 3;
          if (num < 10) c = cifre - 2;
        
          // C = Antal nuller
        
          for (xxx = 0; xxx <= c; xxx++) bVal = bVal + "0";
          bVal = bVal + num;
        
          if(!nuller) bVal = num; // Ingen nuller
        
          //alert(mappe + imgName + b + exten);
          var fileRef = new File(mappe + imgName + bVal + ".png"); // Temporary reference to check whether the file exists.
        
          if (!fileRef.exists) break;
        
          bVal = "";
    
    } // for num
    
    pngSettings = new PNGSaveOptions();
    pngSettings.interlaced = false;
    pngFile = new File(mappe + imgName + bVal + ".png" ); // ?? (Filtype, Objekt, Save as copy?) ??
    docRef.saveAs(pngFile, pngSettings, true);
} // saveAtFirst








    for (b=0; b<repeats; b++) {
        

    
        var docRef = activeDocument;
        
        // SOURCE
        orgDocHori = 0;    // We are going to transfer from this pixel and to the left.
        orgDocVert = 0;    // The vertical pixel line we are working at
        orgDocWidth = docRef.width.value;
        orgDocHeight = docRef.height.value;
        
        var newDocRef = documents.add(orgDocHeight, orgDocWidth, 72.0, "File generated by the script spacewarp-turbo.jsx");
        
        // TARGET
        newDocHori = 0;    // We are going to transfer to this pixel and to the left
        newDocVert = 0;    // The vertical pixel line we are working at
        newDocWidth = newDocRef.width.value;
        newDocHeight = newDocRef.height.value;
        
        
        
        
        
        while (newDocHori < newDocWidth && newDocVert < newDocHeight){
        
            activeDocument = docRef;
            
            
                if ( orgDocWidth == orgDocHori ) {
                    
                    // Press ENTER
                    orgDocHori = 0;
                    orgDocVert++;
                }
            
            // If there is space enough to copypaste the rest of the line
            if (orgDocWidth-orgDocHori < newDocWidth-newDocHori ) {
            
                x1 = orgDocHori + orgDocWidth-orgDocHori; // Select the last piece of the line
                y1 = orgDocVert + 1;
                docRef.selection.select([[orgDocHori,orgDocVert], [x1,orgDocVert], [x1,y1], [orgDocHori, y1]], SelectionType.REPLACE, 0, false);
                docRef.selection.copy();
                
                x1 = newDocHori + orgDocWidth-orgDocHori; // select a piece, according to the piece to be inserted.
                y1 = newDocVert + 1;
                activeDocument = newDocRef;
                newDocRef.selection.select([[newDocHori,newDocVert], [x1,newDocVert], [x1,y1], [newDocHori, y1]], SelectionType.REPLACE, 0, false);
                
                // Paste the image into the clipboard
                newLayerRef = newDocRef.paste();
                newLayerRef.merge();
                
                // Move forward in the line
                newDocHori = newDocHori + orgDocWidth-orgDocHori;
                
                
                // Press ENTER
                orgDocHori = 0;
                orgDocVert++;
                
            
                
            }
            else { // There is not enough space to copy it all!
            
                x1 = orgDocHori + newDocWidth-newDocHori; // Select af piece of the line, according to the space available at the target
                y1 = orgDocVert + 1;
                
                docRef.selection.select([[orgDocHori,orgDocVert], [x1,orgDocVert], [x1,y1], [orgDocHori, y1]], SelectionType.REPLACE, 0, false);
                
                // Copy the image into the clipboard
                try{
                docRef.selection.copy(); // "The selected area is empty"
                }
                catch(err) {
                    alert("X VALUE = " + x1 + ", Y VALUE = " + y1 + ", orgDocHori = " + orgDocHori + ", orgDocVert = " + orgDocVert + ", newDocWidth = " + newDocWidth + ", newDocHori = " + newDocHori    + ", orgDocWidth = " + orgDocWidth);
                    
                }
                
                x1 = newDocWidth; // select the last of the line
                y1 = newDocVert + 1;
                activeDocument = newDocRef;
                newDocRef.selection.select([[newDocHori,newDocVert], [x1,newDocVert], [x1,y1], [newDocHori, y1]], SelectionType.REPLACE, 0, false);
                
                // Paste the image into the clipboard
                newLayerRef = newDocRef.paste();
                newLayerRef.merge();
                
                // Move forward in the line
                orgDocHori = orgDocHori + newDocWidth-newDocHori;
                
                // Press ENTER
                newDocHori = 0;
                newDocVert++;    
            } // else
        
        } // while
        
        activeDocument = docRef;
        docRef.close(SaveOptions.DONOTSAVECHANGES);
    
        activeDocument = newDocRef;
        docRef = activeDocument;
        if (docRef.width.value < docRef.height.value) docRef.rotateCanvas(270);
        docRef.flatten();
        
    




    
        bVal = "";
        
        for (num = 1; num < 9000000; num++) {
        
              if (num < 10000000000000) c = cifre - 14;
              if (num < 1000000000000) c = cifre - 13;
              if (num < 100000000000) c = cifre - 12;
              if (num < 10000000000) c = cifre - 11;
              if (num < 1000000000) c = cifre - 10;
              if (num < 100000000) c = cifre - 9;
              if (num < 10000000) c = cifre - 8;
              if (num < 1000000) c = cifre - 7;
              if (num < 100000) c = cifre - 6;
              if (num < 10000) c = cifre - 5; // fire cifre
              if (num < 1000) c = cifre - 4;
              if (num < 100) c = cifre - 3;
              if (num < 10) c = cifre - 2;
            
              // C = Antal nuller
            
              for (xxx = 0; xxx <= c; xxx++) bVal = bVal + "0";
              bVal = bVal + num;
            
              if(!nuller) bVal = num; // Ingen nuller
            
              //alert(mappe + imgName + b + exten);
              var fileRef = new File(mappe + imgName + bVal + ".png"); // Temporary reference to check whether the file exists.
            
              if (!fileRef.exists) break;
            
              bVal = "";
        
        } // for num
        
        pngSettings = new PNGSaveOptions();
        pngSettings.interlaced = false;
        pngFile = new File(mappe + imgName + bVal + ".png" ); // ?? (Filtype, Objekt, Save as copy?) ??
        docRef.saveAs(pngFile, pngSettings, true);
        
        


    } // for b



} // End of else




preferences.rulerUnits = linialBackup; // Recal the old settings

Seems related to the resolution of 1280 x 720 @ 72 dpi works where the 1280 x 720 @ 72,009 PPP pop up an error repeatedly.  When I change the resolution to 72 DPI, it seems to be running. However I leave never finished for the watering duration is longer, then I had to wait.

Tags: Photoshop

Similar Questions

  • AS3 1120: error on a machine, but not another

    Hello

    I was hoping that someone could help me with this problem. I get an error message 1120 on the same machine, but when I take over the project to another machine, everything works fine. I am running Flash CS6 and using a Sizmek template.

    I reinstalled Flash and the necessary extensions several times, but still no luck. I'm at the end of my mind as to what could cause this problem and I need to sort it out as soon as POSSIBLE. I get the error messages are the following:

    Scene 1, Layer 'actions', frame 2, line 29

    1120: access of undefined property EBPanel.

    Scene 1, Layer 'actions', frame 2, line 341120: access of undefined property EBBase.
    Scene 1, Layer 'actions', frame 1, line 11120: access of undefined property EBBase.

    The action script is a standard template provided by Sizmek for use in advertising campaigns. The lines providing the error are:

    Line 29: EBPanel.CollapsePanel ("expandedPanel1", "User", true);

    Line 34: EBBase.Clickthrough ("Click_Expand1_Default");

    Line 1: EBBase.Init (this);

    As I said, the same exact project runs and exports absolutely fine on another machine, so the bug must be help somewhere in my installation!

    Sorry, reset preferences and reinstalling wouldn't help with your problem (what you know already).

    These classes must be available, or you can not compile a swf file.  This computer has access to this class way way.  Find out how and where the class is on the work, and you are on your way to solve the problem on the problematic computer.

  • How to say the script colse all files and save them, but not untitle docs

    Hello world

    I want colse open files and save them, but not the files that have never been saved.

    Try this script, but I ran after, all files are not saved.

    docs var = app.documents.
    for (var i = docs.length - 1; i > = 0; i--) {}
    if(App.activeDocument.Saved == false) {}
    docs [i]. Close (SaveOptions.no);
    }
    Another yew (docs [i] m:System.NET.Sockets.Socket.close (SaveOptions.YES));
    }

    can someone tell me what is the problem with the script?

    Thank you

    Respect of

    Teetan


    var docs = app.documents;
    for (var i = docs.length-1; i >= 0; i--) {
        if (docs[i].saved == false) {
            docs[i].close(SaveOptions.NO);
        }
        else {
            docs[i].close(SaveOptions.YES);
        }
    }
    
  • See the script generates names of different columns... not even when view desc

    When I describe myself I think I get the following columns

    voucherdetail / / DESC
    Name of Type Null
    ------------------------------ -------- ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    SERIAL_NUMBER NOT NULL VARCHAR2 (20)
    SECRET_CODE NOT NULL VARCHAR2 (100)
    STATUS VARCHAR2 (2)
    NUMBER OF FACE_VALUE
    NUMBER OF CALL_VALUE
    CREATION_DATE DATE
    VALIDITY_EXTENSION_PERIOD NOT NULL NUMBER (5)
    DATE OF VOUCHER_EXPIRY_DATE
    NUMBER OF TAX_AMOUNT
    NUMBER OF MISC_CHARGE
    NUMBER OF OTHER_CHARGE
    BATCH_NO VARCHAR2 (10)
    DATE OF LAST_MODIFIED_DATE
    LAST_MODIFIED_BY VARCHAR2 (25)
    DATE OF REDEEMDATE
    DATE OF ACTIVATIONDATE



    WHEN I GENERATE MY VIEW SCRIPT GET THE SCRIPT ACCORDING TO:

    CREATE VIEW VOUCHERDETAIL AS SELECT PinSeq, a.Account_id, a.Status,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'A' - RATED VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) FACE_Value,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'B' - CALL VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) Call_Value,.
    NVL (A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) DISPLAYED,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'Q' - AMOUNT OF TAX
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) Tax_AMOUNT,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'H' LOAD - MISC
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) VARIOUS,.
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B.)
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN = 'X' - ANOTHER LOAD
    AND WETODATE IS NULL
    AND CHARGESHEETCODE = b.CHARGESHEETNO
    ) OTHER_CHARGE, a.swhBatchcode, a.LAST_MODIFIED_DATE, a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1, a.ATTRIBUTE_DATE2
    Mst_PINDetails a, mst_batchno b
    WHERE a.swhBatchcode = b.swhBatchcode
    ORDER BY PinSeq;




    WHAT I SEE, IT IS THE NAMES OF COLUMNS THAT ARE DISPLAYED WHEN I DESCRIBE MY VIEW OR RUN MY QUERY ON THE VIEW, OR NOT THE SAME IN THE SCRIPT THAT I GENERATE... DUE TO WHICH MY APPLICATION FAILS FRONTEND WHEN I RUN MY REPORT ON THIS POINT OF VIEW

    WHY IS THAT IT IS SHOWING DIFFERENT COLUMN NAMES?

    How can you generate your view script? Which tool?

    For example, if you use TOAD, then check your script options. You can miss a check mark in the setting "columns".
    It might be, that if you put the check mark in the "columns" setting, then your script is as follows:

    CREATE VIEW VOUCHERDETAIL (
    SERIAL_NUMBER,
    SECRET_CODE,
    STATUS,
    FACE_VALUE,
    CALL_VALUE,
    CREATION_DATE,
    VALIDITY_EXTENSION_PERIOD,
    VOUCHER_EXPIRY_DATE,
    TAX_AMOUNT,
    MISC_CHARGE,
    OTHER_CHARGE,
    BATCH_NO,
    LAST_MODIFIED_DATE,
    LAST_MODIFIED_BY,
    REDEEMDATE,
    ACTIVATIONDATE
    )
    AS SELECT PinSeq, a.Account_id, a.Status,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='A' --FACE VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) FACE_Value,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='B' ----CALL VALUE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) Call_Value,
    NVL(A.LAST_MODIFIED_DATE, A.CREATED_DATE) CREATED_DATE, EXPIRYDAYS, NVL(A.EXPIRYDATE,B.EXPIRYDATE) EXPIRYDATE,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='Q' --TAX AMOUNT
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) Tax_AMOUNT,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='H' --MISC CHARGE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) MISC,
    (SELECT A.CHARGEAMT FROM MST_CHARGESHEET A, MST_CHARGE B
    WHERE A.charge_id = B.charge_id
    AND B.CHARGE_WHEN='X' --OTHER CHARGE
    AND WETODATE IS NULL
    AND CHARGESHEETCODE =b.CHARGESHEETNO
    ) OTHER_CHARGE, a.swhBatchcode,a.LAST_MODIFIED_DATE ,a.LAST_MODIFIED_BY, a.ATTRIBUTE_DATE1,a.ATTRIBUTE_DATE2
    FROM mst_PINDetails a, mst_batchno b
    WHERE a.swhBatchcode = b.swhBatchcode
    ORDER BY PinSeq;
    

    CREATE VIEW statement supports explicitly naming them columns. If they are named like that, then the query name/alias columns are ignored.

  • Get ORA-00942 error with the clause, but not when the user sys.

    Hello

    About 3 weeks ago we increased our memary to PGA_aggregate_target = 60 GB, SGA_target = 58 GB Oracle instance. About 1 week ago our cognos user started having errors ORA-00942 for these queries generated with clause, with the same authorization. i.e.

    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' PRINT_BATCH_ID ' 'PRINT_BATCH_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    'BANK_NOTE_ADI_INFO_T '. ' ' RDP_ID ' 'RDP_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' FI_ID ' 'FI_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' DEPOSIT_NB ' 'DEPOSIT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_MACHINE_ID ' 'PROCESS_MACHINE_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' OUTPUT_STACKER_TYPE_CE ' 'OUTPUT_STACKER_TYPE_CE '.
    'BANK_NOTE_ADI_INFO_T '. ' ' PARTITION_KEY ' 'PARTITION_KEY '.
    'BANK_NOTE_ADI_INFO_T '. ' ' LOAD_ID ' 'LOAD_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SERIAL_NUMBER_ID ' 'SERIAL_NUMBER_ID '.
    'BANK_NOTE_ADI_INFO_T '. ' ' SHIFT_NB ' 'SHIFT_NB '.
    'BANK_NOTE_ADI_INFO_T '. ' ' BANK_NOTE_COUNT_NB ' 'BANK_NOTE_COUNT_NB '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "BANK_NOTE_COUNT_NB") 'C_1' "
    , count (1) 'C_2' of 'aBmtQuerySubject4 '.
    After having count (*) > 0)
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1.
    of 'CountResultQuery5 '.
    ;


    with 'aBmtQuerySubject4' as
    (select "BANK_NOTE_ADI_INFO_T". ' ' LOAD_ID ' 'LOAD_ID '.
    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    )
    'CountResultQuery5' as
    (select count ("aBmtQuerySubject4". "LOAD_ID") 'C_1' "
    , count (1) 'C_2 '.
    of 'aBmtQuerySubject4' having count (*) > 0
    )
    Select 'CountResultQuery5 '. "' C_2 ' 'Count1' of 'CountResultQuery5 '.
    ;

    -output like:

    'BANK_NOTE_ADI_INFO_T '. ' ' PROCESS_RUN_DT ' 'PROCESS_RUN_DT '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist


    of "BOISI '." BANK_NOTE_ADI_INFO_T' 'BANK_NOTE_ADI_INFO_T '.
    *
    ERROR at line 3:
    ORA-00942: table or view does not exist

    Since 2 days ago, we get ORA-0403.

    One thing I noticed that the coguser can run above queries correctly after they are run by a user sys...

    Could you please help me on how I can resolve ORA-00942 error?

    Thank you very much, much in advance for all your help and your advice! :-)

    Jihong.

    "One thing I've noticed the coguser can run over queries correctly after they are run by a user sys... »

    Jihong,

    Do you mean that queries can be run successfully as a sys user, or as long as once a sys cognos user user has run the query at least once?

    Gerard

  • "Could not find the main class" Java error on Windows 7, but not Windows XP

    Hi all

    It's the first app I try to package and virtualize with ThinApp.

    It is an old business application that usually runs on Windows XP SP3 x 86.

    The. MSI that I generated with Thinapp works very well when it is installed on a Windows XP SP3 x 86.

    However, our main goal to use Thinapp is to install on a Windows 7 SP1 x 64.

    But in doing so, the application triggers a Java Virtual Machine Launcher error message saying: "could not find the main class. Program will exit. »

    I thought that it was because the app includes a 1.4.2 JVM and that my XP has not any JVM pre-installed, but the main image on my W7 has a 1.7 JVM. But even after I uninstalled the 1.7 and installed JVM 1.4.2 on the W7 machine, I kept getting the error message so I guess that it is not bound.

    Y at - it an option that I missed during my MSI generation so that it can run on a Windows 7 x 64?

    Thank you all for your help.

    D.

    With the help of Lachi, we found that the app natively works on W7, no need for ThinApp it if the goal is just to make it work on W7, from a XP world.

    The only change we had to make (and the error was the same ThinApp-ed, which is what I originally shared) is that the application should work with Windows 7 in "classic" mode "of the screen (without Aero and the menu start XP-style). This is because the application runs an old integrated version of Java (1.4) and it makes the system calls seeking specific .dll to display, which are not accessible by default if Aero is enabled.

    Closed topic

  • Get-XmlNode syntax works in a script but not another.

    Hello.

    I extracted a highly respected two gurus PowerCLI script, mm. Alan Renouf & LucD.

    I use PowerGUI environment and find a script completes successfully, and we didn't. They perform different tasks, but I am curious to understand the syntax error I get.

    Both contain the 4 lines:

    function {Get-XmlNode

    Param ($path)

    $global: vInventory.SelectNodes ($path)

    }

    In my 1st script, I get the error "method call failed because http://System.String does not contain a method name"SelectNodes"."

    The same lines in my 2nd script complete successfully. I used the debugging capability to trace the message and the shutdown script too.

    Scenario 1, export vCenter ready authorizations for the import script: of Alan Renouf

    Text 2, vProfile dump of your hosts, machines virtual etc.: LucD (the $entity variable should reflect a valid group name)

    It seems to me the message is trying to say "I have no knowledge of the parameter you provided.

    I have attached two scripts if someone has a moment to consider.

    Thank you very much

    Darren.

    (@dawoo)

    The reaason you encounter this problem with script 1 is because $global: vInventory does not contain an XML document, but a string.

    And the SelectNodes method does not know on a string.

    Attached a corrected version of the text 1.

    The fundamental problem was this line

    $global:vInventory = ""
    

    who should actually be

    $global:vInventory = [xml]""
    

    Note how the string is "cast" in an XML document!

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • Screw system configuration return a code error-2147220608 in LV2013 but not in LV2012 on my system sbRIO

    I worked to deploy a minor correction to an existing system that has worked. Part of this upgrade was to move to LV2013. The configuration of the system live that I used successfully in LV2012 to change the comment and the host name of the error code return now target sbRIO-2147220608 in 2013 when I try to save the changes. By looking at the detailed of the Save Changes (System) .vi result output, I get the message "the IP address and the gateway must be on the same subnet." The problem is twice 1) I'm not change the IP address or gateway on the system and 2) IP address and the gateway are preconfigured by MAX OR 10.0.1.155 and 10.0.0.3 with a subnet mask of 255.255.0.0. Based on my understanding and conversations with my COMPUTER service is a valid combination.

    Help?

    Warrior of wire

    Hello

    R & D work on implementing a fix for this bug. In the meantime, here is a workaround:

    If you write the correct IP address and write the host name and the comment, then your backup will be successful. We realize that this is not a very pretty or intuitive solution, but it should work until a fix is implemented.

  • software Adobe reader x 1 always says there was an error in this document, but not where or what to do

    software Adobe reader x 1 always says in response. cannot find the document, there is a mistake, but there is no guide what to do. If anyone can help?

    Hi Theo,.

    Please answer these questions, so that we can properly diagnose the problem:

    1. what version of Windows operating system is installed on the computer?

    2 the problem is specific to a particular document?

    3 what is the accurate and complete error message that you receive?

    4 have you made changes on the computer before this problem?

    Check this link to find out which Windows operating system is installed on the computer:

    Operating system Windows am I running?
    http://Windows.Microsoft.com/en-in/Windows/which-operating-system

    Please get back to us with answers. Your request is important to us.

  • Get the error 404 on most but not all sites

    Firefox only works randomly on some sites (e.g., Facebook was working earlier now not; yahoo mail works;) ( CNN.com is not). On all sites, I get

    404 not found

    Unable to connect to the host

    If I use the Opera browser, everything works fine. I have cleared my history, updated Firefox and none of these help.

    Make a check of malware with several malware scanning of programs on the Windows computer.
    Please scan with all programs, because each program detects a different malicious program.
    All of these programs have free versions.

    Make sure that you update each program to get the latest version of their databases before scanning.

    Alternatively, you can write a check for an infection rootkit TDSSKiller.

    See also:

  • Script to add a domain user to the local Administrators group raises the error "the network path is not found."

    I have a Windows Server 2008 R2 domain and a Windows XP Pro workstation that has been attached to the domain and then disconnected. I am trying to create a VBS script to add a domain user to the local Administrators group.

    I log on my computer as a local administrator and run the following script:

    Dim oNetwork: Set oNetwork = WScript.CreateObject ("WScript.Network")
    StrPC Dim: strPC = oNetwork.ComputerName
    Dim OGroup: Set oGroup = GetObject ("WinNT: / /" & strPC & "/ directors")
    Dim OUser: Set oUser = GetObject ("WinNT://domainname/username")
    oGroup.Add (oUser.ADsPath)

    This script returns the error "the network path is not found."

    However, I am able to go into control panel > user accounts > enter the user name and the domain name > click Next... > choose the administrators of the 'other' group and the user name will be added to the local Admin group.

    The same script runs without error if it is launched after logon on the workstation with a domain administrator account.

    How can I get my script runs without error, when you are logged into the workstation as a local administrator?

    Best regards, Andy

    The code that I used came from here. If the syntax of the Add method is passed to oUser.ADsPAth to "WinNT: / /" & domainname & "/" & username, the script works correctly.

    Therefore, the modified script:

    Dim oNetwork: Set oNetwork = WScript.CreateObject ("WScript.Network")
    StrPC Dim: strPC = oNetwork.ComputerName
    Dim OGroup: Set oGroup = GetObject ("WinNT: / /" & strPC & "/ directors")
    Dim strUser: strUser = "WinNT://domainname/username."
    oGroup.Add strUser

    Thanks to Qasim Zaidi to show the code of work here.

    Best regards, Andy

  • wcmUrl cannot run the "evaluateScriptEx" of service method. The server script expression evaluates error. No path required for the ssWeblayoutUrl parameter.

    Hi all

    I have a data file where there is a wcm:element like below

    < wcm:element = "linkUrl" name > [!-$wcmUrl ('resource', ")-] < /wcm:element>

    So, I get an exception to content server


    Event generated by the user 'sysadmin' to host 'CIS '. Could not generate the HTML page. Unable to evaluate the function. Error running system. wcmUrl cannot run the "evaluateScriptEx" of service method. The server script expression evaluates error. No path required for the ssWeblayoutUrl parameter. [Details]

    An error has occurred. The stack trace below shows more information.

    !csUserEventMessage,sysadmin,CIS!$!csPageMergerUnableToGenerateHtmlPage!csDynHTMLSystemExecutionError,csDynHTMLReportMsgFunction!$wcmUrl!csUnableToExecMethod,evaluateScriptEx!csDynHTMLServerScriptEvalError!$Missing required path parameter for ssWeblayoutUrl.

    intradoc.common.ServiceException:! csPageMergerUnableToGenerateHtmlPage

    at intradoc.server.ServiceRequestImplementor.buildServiceException(ServiceRequestImplementor.java:2115)

    at intradoc.server.Service.buildServiceException(Service.java:2271)

    at intradoc.server.Service.createServiceExceptionEx(Service.java:2265)

    at intradoc.server.Service.createServiceException(Service.java:2260)

    at intradoc.server.Service.buildResponsePage(Service.java:1314)

    at intradoc.server.Service.doResponse(Service.java:2076)

    at intradoc.server.FileService.doResponse(FileService.java:1469)

    at intradoc.server.ServiceRequestImplementor.doRequest(ServiceRequestImplementor.java:802)

    at intradoc.server.Service.doRequest(Service.java:1890)

    at intradoc.server.ServiceManager.processCommand(ServiceManager.java:435)

    at intradoc.server.IdcServerThread.processRequest(IdcServerThread.java:265)

    at intradoc.server.IdcServerThread.run(IdcServerThread.java:160)

    to weblogic.work.SelfTuningWorkManagerImpl$ WorkAdapterImpl.run (SelfTuningWorkManagerImpl.java:528)

    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)

    at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)

    Caused by: java.io.IOException:! csDynHTMLSystemExecutionError, csDynHTMLReportMsgFunction! $wcmUrl

    at intradoc.common.DynamicHtmlMerger.createIOException(DynamicHtmlMerger.java:2588)

    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:1202)

    at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)

    at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)

    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)

    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)

    at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)

    at intradoc.common.DynamicHtmlMerger.outputDynamicHtmlPage(DynamicHtmlMerger.java:2007)

    at intradoc.server.Service.buildResponsePage(Service.java:1267)

    ... more than 10

    Caused by: intradoc.common.ServiceException:! csUnableToExecMethod, evaluateScriptEx

    * ScriptStack! csDynHTMLStackDumpStart, sysadmin, (datasummary) IdcService is SSXA_GET_DATAFILE\, dDocName = 00151164\, = 209607 dID! $

    ! csDynHTMLNoStack! $

    !csDynHTMLErrorMessage,/oracle/ecm/ucm_domain/ucm/cs/weblayout/groups/public/@global/documents//mdaw/mtux/~edisp/00151164~2.xml.parsed,9,40!csDynHTMLSystemExecutionError,csDynHTMLReportMsgFunction!$wcmUrl!$

    -& #62;      & #60; WCM:element name = "linkUrl" & #62; [(--\!--$wcmUrl('resource'\, '')]; & lt; / span & gt; & #60; / wcm:element & #62;

    in sitestudio. SSClassHelper.invoke (unknown Source)

    in sitestudio. SSScriptExtensions.evaluateIncludeXmlEx (unknown Source)

    in sitestudio. SSWCMScriptExtensions.resolveWcmUrl (unknown Source)

    in sitestudio. SSWCMScriptExtensions.evaluateFunction (unknown Source)

    at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)

    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)

    ... more than 17

    Caused by: java.io.IOException:! csDynHTMLServerScriptEvalError

    at intradoc.common.DynamicHtmlMerger.createIOException(DynamicHtmlMerger.java:2588)

    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:1202)

    at intradoc.common.DynamicHtmlMerger.substituteVariable(DynamicHtmlMerger.java:623)

    at intradoc.common.DynamicHtml.substituteVariable(DynamicHtml.java:1394)

    at intradoc.common.DynamicHtml.outputHtmlEx(DynamicHtml.java:1110)

    at intradoc.common.DynamicHtml.outputHtmlFromStart(DynamicHtml.java:1020)

    at intradoc.common.DynamicHtml.outputHtml(DynamicHtml.java:991)

    at intradoc.common.DynamicHtmlMerger.executeDynamicHtmlToWriter(DynamicHtmlMerger.java:2060)

    at intradoc.common.DynamicHtmlMerger.evaluateScriptToWriter(DynamicHtmlMerger.java:1872)

    at intradoc.common.DynamicHtmlMerger.evaluateScriptNoErrorHandling(DynamicHtmlMerger.java:1836)

    at intradoc.common.DynamicHtmlMerger.evaluateScriptEx(DynamicHtmlMerger.java:1794)

    at sun.reflect.GeneratedMethodAccessor500.invoke (unknown Source)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    at java.lang.reflect.Method.invoke(Method.java:597)

    in sitestudio. SSClassHelper.invokeRaw (unknown Source)

    ... 23 more

    Caused by: intradoc.common.ServiceException: path of access is required for ssWeblayoutUrl parameter.

    * ScriptStack! csDynHTMLStackDumpStart, sysadmin, (datasummary) IdcService is SSXA_GET_DATAFILE\, dDocName = 00151164\, = 209607 dID! $

    ! csDynHTMLStackElementWithFilename,wcmUrl,/oracle/ecm/ucm_domain/ucm/cs/weblayout/groups/public/@global/documents/generalmodule/mdaw/mtux/~edisp/00151164~2.xml.parsed,9,40!$

    ! csDynHTMLServerScriptEvalError

    in sitestudio. SSScriptExtensions.evaluateFunction (unknown Source)

    at intradoc.common.DynamicHtmlMerger.computeFunction(DynamicHtmlMerger.java:1430)

    at intradoc.common.DynamicHtmlMerger.evaluateGrammarElement(DynamicHtmlMerger.java:908)

    Therefore I don't see the placeholder to correct the link. How can I fix this, or at least manage the display of the placeholder.

    Concerning

    I don't think the resources without the dDocName specification will work (for example [!-$wcmUrl ('resource', ")-]).

    At some point, the code path probably leaves the SiteStudio component and goes back to the core code WebCenter content to fetch the revision. It seems that it is where he meets a problem (impossible to find the last out for review).

    If you turn on additional detailed complete tracking for site *, file * and system * this gives you a clues?

    Jonathan

    https://jonathanhult.com

  • Cannot run the script generated with export Clip.

    I use AE CS6 and FCPX 10.0.7. I have imported the images in this way successfully before and have not changed or updated either of these programs since. Exporter of clip is up to date.

    Today, I created an XML of my calendar and trying to run the script generated from it, I get the error 'cannot run the script on line 22. WHEREAS"}

    I opened to the top of the script and 22 bed line editor ' comp [0] = {name: "Scenes of Kyle", w: 1920, h:1080, pasp:1.0000, hard: 39.7063, fps:23.9760, departure: 0.00001};

    Any help would be appreciated.

    The default is here:

    name: "Scenes of Kyle.

    For a shell script that reads as

    Kyle, scenes of s

    or be interpreted as noise and move the successive data so it would be interpreted wrongly. This is simply sloppy programming. It will have to be properly "escaped" to avoid the error:

    "Scenes of Kyle\".

    Contact the creator to fix his script and for the time being to use folder names that go without apostrophes...

    Mylenium

  • 933 HFM, vb script %0 execution error (for the rules file)

    I have a HFM rules file that is error-free, but sometimes, when I run a codification through SmartView, it is abandoned and the error is "Error running VB Script 0%".
    Anyone know why this happens?
    Thanks in advance.

    The error message you shared maybe not something to do with the rules HFM. There are a number of things that can generate a VBScript error: HFM rules, customized lists of HFM member or problems problems/configuration of permissions with IIS. Smart View uses IIS, then maybe this is a configuration problem. If you disconnect and then reconnect again, perform the same activity successfully, it could mean you have load balancing problem, or other network error. If it's a problem of permission on the server, it will affect all users in the same way. A list of members HFM problem would prove any time the list of members is called: whether through HFM forms, grids, smart view or reports.

    -Chris

  • Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical de

    Sync to iphoto with Iphone hangs on during synchronization. In addition the google map can be charged when I click on the places of Mediathek. Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    Error message: "this page has not loaded correctly Google Maps. See the JavaScript console for more technical details. »

    Apple has not renewed the contract with Google to access Google servers.

    If the old version of iPhoto, which are still using Google's servers for the cards and places are either crashing or hanging.  Places are only work in iPhoto 9.5.1 or newer, who use places of Apple servers.

    There is more support for iPhoto from Apple.  You must update iPhoto 9.5.1 with the Mavericks. It would work well, only it is no longer buying this update to Apple.

    Perhaps the reason for the problem of synchronization is the problem with the loading of google map?

    It is very likely.  If iPhoto work very well when you are offline, then your problems will be caused by the connection failed to Googles servers.

    See this: Bug: iPhoto 9.4 crashing when viewing the scene

Maybe you are looking for