Script to generate the sys files os trail audit report

Hello

We have a large database, where 1000 bone trail files are generated every day.   Except sys, we get all the information lo - Gin of dba_audit_trail.

But the listener wants the audit information sys too.

It is very difficult to manually move all the files in the operating system. I tried to make a script to generate a report. But I do not succeed until now.

If you have any of you have used or by using a similar script to generate a report of os audit .aud file sys. Please provide that.

Also let me if there is another way to collect audit sys information easily.

Thanks and greetings

Marou

Hi berang,.

I wrote an article (http://www.dbarj.com.br/en/2014/10/retrieve-oracle-sysdba-audit-os-files-inside-table/) explaining exactly how to do it using the external Table with preprocessor function.

Why don't you take a look and fit the need? I hope you enjoy.

Kind regards

Rodrigo

Tags: Database

Similar Questions

  • generate the ear file in jdev and deployed using Ant

    Hi all

    I have a request of the ADF and I need generate the ear file and deploy it using ant script.
    The file option ear in deployment profiles (file-> new-> deployment profiles) is disabled in my worm jdev (11.1.1.5.0).

    Any help or pointers are highly appreciated.

    Thank you
    Usha

    You get the EAR deployment descriptor only if you add it to the application level. They are out on grayes model ot see controller projects.
    Right-click on the Application and select "new-> deployment descriptor.

    Timo

  • Need help with Vista not recognizing the .sys file

    Please help me!  I am trying to load a driver USB 2wire on Vista and it does not recognize the .sys file.  Can I convert this easily to .exe, or y at - it another way to achieve this... I am a novice at best here.  Thank you!

    Can you check it out here:

    http://support.2Wire.com/?page=view&article=545

    just to see that you found the driver for the right adapter. It turns out that there are two.

    I won't be able to respond for a while.

  • Laptop does not detect the DVD drive, the .sys files deleted

    Hi I have an acer aspire laptop 4752-6861, there his factory DVD player, here are the details of the DVD player:

    --------------------------------------------------------------------------------
    SlimType DVD A DS8A5SH ATA Device
    UNKNOWN media type
    SlimType DVD to name a DS8A5SH ATA Device
    Availability during the performance/power
    Direct access to the features, removable media
    Configuration Manager User Config FALSE
    DriveIntegrity TRUE
    Media loaded FALSE
    State error
    10462 KB/S transfer rate
    --------------------------------------------------------------------------------
    NOTE: (I use speccy software for more information)
    A few days ago I had created a virtual drive but could not manage to remove it later, so I tried to delete his
    the files that were the .sys files, after deleting these files he had not yet gone, but just today, I noticed when I clicked on computer, the D:
    drive was not showing (from the DVD) IV ' e tried install and reinstallin, deactivation, activation and reboot but no luck.
    in Device Manager it gives me this error status:
    Windows cannot load the driver for this hardware device. The driver may be corrupted or missing. (Code 39)
    well I guess it has something to do with these .sys files that I deleted, I do not remember where the files were nore can
    I get back them, is possible to reinstall drivers or something, thanks in advanced for any ideas.   :)

    Hello

    This can be happen due to upper and lower case system registry settings.

    http://support.Microsoft.com/kb/894730

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-hardware/my-computer-cannot-detect-my-DVD-drive-in-Windows/3e232ab4-1a4c-425d-96DC-4f4dac074c60

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/a-required-CDDVD-drive-device-driver-is-missing/51ecd2ed-b678-E011-9b4b-68b599b31bf5

    http://support.Microsoft.com/kb/314060

  • Works at a newspaper, finds it difficult to make a presentation made in Indesign and must be transformed into an app for Ipad / IOs.  This is the case in DPS consgigo generate the .ipa file put nsao install on the device, the message "installation."

    Works at a newspaper, finds it difficult to make a presentation made in Indesign and must be transformed into an app for Ipad / IOs.

    This is the case in DPS consgigo generate the .ipa file put nsao install on the device, the message 'installation' all the time.

    If I get the zip file and the XML of the person who generated the folios, as indicating that the DPS?

    Recognizing

    This happens when you try to install .ipa to a device that is not listed in the mobileprovision file. Make sure that the UDID of the device is included in your Developer Portal iTunes and when you generate the new file mobileprovision that you explicitly check the box next to the new feature that you added.

    Then download the new mobileprovision file and make sure that you use a new one, not the old, to get the app to the App Builder.

    Neil

  • Generate the log file for the dialog box

    Hi all


    I'm generating information for the dialog box as a .txt log file format. That means that if the box is checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against the information on tickets and slug jobs"is checked


    If the checkbox is not checked, the log file will be give ' checkbox1 - 01.»   Check the report, sizes against ticket and slug information on employment"is not checked


    and also the entry "myText2" also needs to generate the log file


    Can someone help on this... Help would be appreciated!



    var l is new window ('dialogue');.

    myGroup1 var = w.add ("panel", undefined, ' P & & G check the list ');

    myGroup1.alignChildren = 'left ';

    CheckBox1 var = myGroup1.add ("checkbox", not defined, '01.   (Check the ratio, size against the information on tickets and slug jobs");

    CheckBox2 var = myGroup1.add ("checkbox", not defined, '02.   "" "Check images are linked");

    var checkbox3 = myGroup1.add ("checkbox", not defined, '03.   Visually check the progress of KV/model/CP images");

    var checkbox4 = myGroup1.add ("checkbox", not defined, '04.   Visually check the progress of other elements such as Logo and bottle");

    var checkbox5 = myGroup1.add ("checkbox", not defined, '05.   Check the positioning of the markup language");

    var checkbox6 = myGroup1.add ("checkbox", not defined, '06.   Ensure that all measures are calculated Live based area");

    var checkbox7 = myGroup1.add ("checkbox", not defined, '07.   After that the resizing of the picture KV frame open to cut and bleed");

    var checkbox8 = myGroup1.add ("checkbox", not defined, '08.   Complete Magenta if there is insufficient image');

    var checkbox9 = myGroup1.add ("checkbox", not defined, '09.   ("To ensure that the document's bleed, crop gutter and slug information brands ');

    var checkbox10 = myGroup1.add ("checkbox", not defined, '10.   Make sure that the final work is updated on the server");

    var checkbox11 = myGroup1.add ("checkbox", not defined, '11.   ("Enter time cmd");

    var myGroup2 = w.add ('panel', undefined, 'The operator name');

    var myText2 = myGroup2.add ("edittext", undefined, "");

    myText2.characters = 25;

    myGroup2.orientation = 'left ';

    var buttons = w.add ("group");

    Buttons.Add ('button', undefined, 'Export to PDF', {name: 'ok'});

    Buttons.Add ('button', undefined, 'Cancel');

    w.Show ();

    ~ group();

    ~ If (myGroup1.alignChildren.value! = true) {}

    ~ alert ('yes')

    //~ }


    myDoc = app.activeDocument;

    w = [];


    DESCRIPTION: Make a TXT file

    myDoc = app.activeDocument;

    Log1 = makeLogFile (app.activeDocument.name.split('.') ([0], myDoc, true);

    log (log1, app.activeDocument.name);

    ~ log2 = makeLogFile ("test", myDoc, false);

    ~ Journal (log2, "Text file log base 2");

    Log1. Execute();

    ~ log2.execute ();

    function makeLogFile (aName, aDoc, deleteIt) {}

    var logLoc; path to the folder that will contain the log file

    try {}

    logLoc = aDoc.filePath;

    } catch (e) {}

    logLoc = getmyDoc (). parent.fsName

    }

    var queue = aFile (logLoc + "/" + name + ".txt");

    If {(deleteIt)

    aFile.remove ();

    return aFile;

    }

    var n = 1;

    so that {(aFile.exists)

    aFile = File (logLoc + "/" + String (n) + ".txt" aName);

    n ++

    }

    return aFile

    }

    function getScriptPath() {}

    try {}

    Return app.activeScript;

    } catch (e) {}

    Return File (e.fileName);

    }

    }

    function log (aFile, message) {}

    var today = new Date();

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (String (today) + "\n");

    aFile.close ();

    }

    }

    function log (aFile, message) {}

    var text = o;

    If (! aFile.exists) {}

    do the new log file

    aFile.open ("w");

    aFile.write (message + "\n" + "\n" + String (w) + "\n");

    aFile.close ();

    }

    ~ aFile.open ("e");

    ~ aFile.seek (0.2);

    ~ aFile.write ("\n" + message);

    ~ aFile.close ();

    }

    myDoc.close (SaveOptions.no);

    Thanks in advance

    Steve

    Hi Steve,.

    There are some errors in your code.

    1. function 'getmyDoc' is used, but not created.
    2. fucntion 'getScriptPath' is created but not used. (In any case, this will not give you error)
    3. function 'journal' has defined two times with the same length of the parameter.

    etc...

    Here, I have modified your code. Try this.

    var w = new Window ("dialog");
    var myGroup1 = w.add('panel', undefined, 'P&&G Check List');
    myGroup1.alignChildren = "left";
    var checkbox1 = myGroup1.add ("checkbox", undefined, "  01.  Check the ratio, sizes against job ticket and slug information");
    var checkbox2 = myGroup1.add ("checkbox", undefined, "  02.  Check images are linked");
    var checkbox3 = myGroup1.add ("checkbox", undefined, "  03.  Visually check the progression of KV/Model/CP images");
    var checkbox4 = myGroup1.add ("checkbox", undefined, "  04.  Visually check the progression of other elements like Logo and Bottle");
    var checkbox5 = myGroup1.add ("checkbox", undefined, "  05.  Check the placement of Language Tagging");
    var checkbox6 = myGroup1.add ("checkbox", undefined, "  06.  Ensure that all measurements are calculated based on Live area");
    var checkbox7 = myGroup1.add ("checkbox", undefined, "  07.  After resizing the KV image frame opened up to trim and bleed");
    var checkbox8 = myGroup1.add ("checkbox", undefined, "  08.  Fill Magenta if there is inadequate image");
    var checkbox9 = myGroup1.add ("checkbox", undefined, "  09.  Ensure the document has bleed, crop marks, gutter marks and slug information");
    var checkbox10 = myGroup1.add ("checkbox", undefined, "  10.  Ensure the final artwork is updated in the Server");
    var checkbox11 = myGroup1.add ("checkbox", undefined, "  11.  Enter time in CMD");
    var myGroup2 = w.add('panel', undefined, ' Operator Name');
    var myText2 = myGroup2.add("edittext", undefined, "");
    myText2.characters = 25;
    myGroup2.orientation = "left";
    var buttons = w.add ("group");
    buttons.add ("button", undefined, "Export PDF", {name: "ok"});
    buttons.add ("button", undefined, "Cancel");
    w.show ();
    myDoc = app.activeDocument;
    log1 = makeLogFile(app.activeDocument.name.split('.')[0], myDoc, true);
    log(log1, app.activeDocument.name);
    log1.execute();
    function makeLogFile(aName, aDoc, deleteIt)
    {
        var logLoc = "";
        try
        {
            logLoc = aDoc.filePath;
            } catch (e) {}
        var aFile = File(logLoc + "/" + aName + ".txt");
        var n = 1;
        while (aFile.exists)
        {
            aFile = File(logLoc + "/" + aName + String(n) + ".txt");
            n++;
            }
        return aFile
        }
    function log(aFile, message)
    {
        var text = w;
        var rep = "";
        if (!aFile.exists)
        {
            aFile.open("w");
            var today = new Date();
            rep += String(today) + "\n";
            rep += message + "\n" + "\n\n";
            for(var i =0;i
    

    Kind regards

    Cognet

  • How to create ViewObject to generate the xml file?

    Hello everyone...

    People, I would like to know if it is possible to create a ViewObject to generate an xml file.
    In other words, I have a database table and I need to generate an xml file based on this table.

    Someone has already done it?

    The ADF swing.
    JDeveloper Studio 11.1.1.4.0.

    Hello

    Try this link

    Generate the xml file based on the java oracle table using jdeveloper 10 g

  • Scripting inDesign: Generate a PDF file

    Hello

    I have a bug with my script. Everything is OK:

    The script imports the xml file into my Indesign file and the new generated file (.indd) is correct...

    But this script generates PDF files with only 2 pages.

    You know the correct code to generate large PDF files?

    This is my script:

    var myTemplate is File.openDialog ("select a template");.

    myFolder var is Folder.selectDialog ("choose a folder to treat");.


    myDocs var = myFolder.getFiles ("*.xml");

    for (i = 0; i < myDocs.length; i ++) {}

    Open the template:

    var newDoc = app.open (myTemplate);


    Import XML:

    var myXMLImportPreferences = newDoc.xmlImportPreferences;

    myXMLImportPreferences.allowTransform = false;

    myXMLImportPreferences.createLinkToXML = false;

    myXMLImportPreferences.ignoreUnmatchedIncoming = false;

    myXMLImportPreferences.importCALSTables = false;

    myXMLImportPreferences.importTextIntoTables = false;

    myXMLImportPreferences.importToSelected = false;

    myXMLImportPreferences.removeUnmatchedExisting = true;

    myXMLImportPreferences.ignoreWhitespace = true;

    myXMLImportPreferences.repeatTextElements = true;

    newDoc.importXML (myDocs [i]);

    Add the additional document-specific treatment steps here


    Save:

    var NouveauNomFichier = myFolder.absoluteURI + ' / ' +. [i] myDocs name.replace (/ xml /, 'pdf');

    app.activeDocument.exportFile (ExportFormat.pdfType, File (newFileName), false);


    var NouveauNomFichier = myFolder.absoluteURI + ' / ' +. [i] myDocs name.replace (/ xml /, "indd");

    newDoc.save (new file (newFileName));

    app.activeDocument.close ();

    }

    Thank you

    Hey!

    Try to add before you export it in PDF format:

    app.pdfExportPreferences.pageRange = PageRange.ALL_PAGES;
    

    --

    tomaxxi

    http://indisnip.WordPress.com/

  • where are the location server log and the dimension to generate the error file located?

    I am running a build script and I got this error. Can someone tell me the location of the files below? (The server log and Dimnension generate error file)

    Construction of Dimension ERROR - 1007083 - failed. Error code [1090004]. Check the ser
    file log of worm and the dimension generate file for possible more info...

    Thank you

    I guess you are on Version 11 as your last post was on this version.

    You are customer of the EAS, take a look at \Hyperion\products\Essbase\eas\client
    If you load using maxl you should have a file of errors defined in the script.
    Newspaper to take a look at \hyperion\logs\essbase there will be essbase.log and application logs are lower than for example \hyperion\logs\essbase\app\Sample\Sample.log

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • How to install the vcdrom.exe and the sys file.

    I installed vcdrom.exe and copied vcdrom.sys to windows/system32/drivers as indicated, but when I try to select vcdrom.sys list drivers install this is not yet visible. but when I go to the site ouside the program I think it's no problem, I tried to run the program as administrator, I tried to adjust the file sys in total control, and it makes no difference. What should I do?

    There is actually an updated version that is supposed to work with Win7

    http://www.Microsoft.com/en-US/Download/details.aspx?ID=38780

    Right click on the file vcdcontrolTool.exe and choose run as administrator removes the "could not open SCM: access denied" message, but VCdRom.sys is still not visible in % windir%\system32.

    Apparently, it is simply not compatible with x 64 versions... even if you run it high and try to load the copy of the driver on the left file in the subdirectory to decompress (which is no problem), the message 'the driver has been blocked from loading.' results. Maybe some MVP re / writing he forgotten kernel mode code signing or will not pay the annual dues ($ 400?) to MS for the signature of x 64 drivers.

  • Option 'Generate the ALX file' does not exist in Eclipse

    I'm under Eclipse 3.6.0 v 32 bits with the BlackBerry JDE Plugin v1.1.2.201004161203 - 16 on Windows 7 x 64 (I could not the 64 bit version of eclipse to work).  When I right click on the project in the Project Explorer, there is no option to "Generate ALX file" as say the tutorials I read there.

    When I installed the BB plugin to Eclipse, a prompt came up saying I need eclipse v3.5, and that it would be "update" (more like downgrade) me to this version.  Could be the problem?

    Everything has been working great.  I was able to compile and run in the Simulator without a hitch.  Its been actually quite a pleasant experience developed in this environment.  I just need to get this generated ALX file so that I can transfer my application on my phone for testing purposes.

    Any ideas?

    Thank you!

    in the application starts, you should see an xml type of the file in which to give the application title and icon of the application.

    in the same file to the upperside resembles tab, there is a drop down menu in which we select the 'yes' option to generate ALX.

  • JDE 4.5 generates the debug file and require digital signatures for her

    I use 4.5 JDE

    I have my application and running upward, it requires digital signatures to BB because of the protected API.

    When I asked the digital signature, the digital signature only for my program listed JDE.

    Suddenly, the JDE produces a file of parallel debugging and also requires the signature of BB for this file.  I explain:

    My name is theprog.java.

    When I build the project the JDE generates the file theprog-1.

    When I ask digital signatures, JDE lists it will seek signatures digital for theprog and theprog-1

    How can I configure the JDE to request only the signatures of file theprog?

    Thank you.

    The BB JVM supports only the files of cod with a maximum of 64K code and data of 64 KB. Whenever a program becomes too large, the compiler will divide the program into multiple cod files, like myprogram - 1.cod, myprogram.cod, etc., myprogram - 2.cod.

    Each of them must be signed. It's normal.

    When the compilation is complete, the cod files are combined into a single .cod file that is actually a zip containing individual .cod files.

  • Unable to generate the complete file with UTL_FILE

    Hello

    Please refer to the next simple room where I am generating a file on the DB server that should contain 100,000 lines of code.

    declare
    l_fil utl_file.file_type;

    cursor c1 is
    Select *.
    of rats_txtio;

    Start

    l_fil: = utl_file.fopen('SRS_CSD_DIR','rats3.txt','w',32767);

    I'm looping c1
    UTL_FILE.put_line (l_fil, to_char (i.SNO));

    UTL_FILE.fflush (l_fil);

    end loop;

    UTL_FILE.fclose (l_fil);

    end;

    rats_txtio is a table which has sno as one of the columns. The table has 100 thousand records, with sno from 1 and ending with 100000.

    However, after you generate the file, when I display the contents of the file on the server, there only 95123 lines, starting with 1 and ending with 95123.

    Let me know, if there is no parameter causing a restriction on the number of lines that can be generated, or is there something missing in the code.

    Thanking you,
    Rocky.

    Can you provide a reproducible test for us case?

    SQL> ed
    Wrote file afiedt.buf
    
      1  declare
      2    l_fil utl_file.file_type;
      3    cursor c1 is
      4    select rownum as sno
      5    from dual
      6    connect by rownum <= 100000;
      7  begin
      8    l_fil := utl_file.fopen('TEST_DIR','rats3.txt','w',32767);
      9    for i in c1 loop
     10      utl_file.put_line(l_fil,to_char(i.sno));
     11      utl_file.fflush(l_fil);
     12    end loop;
     13    utl_file.fclose(l_fil);
     14* end;
    SQL> /
    
    PL/SQL procedure successfully completed.
    
    SQL>
    

    When I open this file in word and examine the properties it tells me there are 100,000 lines.

    Looks ok to me. What you do differently?

    How do you count the number of rows returned by your query?
    How do you count the number of lines in the file?

  • Safeguarding of documents through scripting: name of the active file Get and set save path/file type

    I am writing a script that will:

    -Do all the invisible layers

    -Make the layer visible ' background'

    -Remove all the invisible layers

    -Save the document as EPS file (leaving the original intact)

    I am new to scripting and I based my script by copying the code of other scripts.

    Here is my code:

    var doc = app.activeDocument;

    var name = doc.name;

    hide var = function () {/ / hide all layers (based on http://forums.adobe.com/thread/644267( )}

    var L = doc.layers.length;

    for (j = 0; j < L; j ++) {doc.layers [j] .visible = false ;}

    }

    masquer();

    loop through all layers

    for (var i = 0; i < doc.layers.length; i ++) {}

    Create the illusrtratorSaveOptions object to set options to HAVE

    var saveOpts = new IllustratorSaveOptions();

    Definition of the IllustratorSaveOptions properties.

    saveOpts.embedLinkedFiles = true;

    saveOpts.fontSubsetThreshold = 0.0

    saveOpts.pdfCompatible = true

    Implemented Variable for the name of the access layer

    var currentLayer = app.activeDocument.layers [i];

    Loop through the layers and make the background layer visible

    If (currentLayer.name == 'Background') {}

    docName = name + currentLayer.name + ".eps";

    currentLayer.visible = true;

    }

    }

    / / Remove the invisible layers (based on http://www.cartotalk.com/index.php?showtopic=7491( )

    var myDoc = app.activeDocument;

    var layerCount = myDoc.layers.length;

    for (var ii = layerCount - 1; ii > = 0; ii-) {}

    var currentLayer = myDoc.layers [ii];

    currentLayer.locked = false;

    var subCount = currentLayer.layers.length;

    for (var subCount - 1; ss = ss > = 0; ss-) {}

    Underlayment var = currentLayer.layers [ss];

    subLayer.locked = false;

    If (subLayer.visible == false) {}

    subLayer.visible = true;

    subLayer.remove ();

    }

    }

    If (currentLayer.visible == false) {}

    currentLayer.visible = true;

    currentLayer.remove ();

    }

    }

    Save the document with a new name

    var saveName = new queue (doc.path + "/" + Nomdoc);

    doc.saveAs (saveName, saveOpts);

    Everything works well except:

    (1) it saves the document under the name of AdobeIllustratorBackground rather than the name of the document

    In addition, I don't know how to tell the script to save in EPS and specify the save location.

    Could someone give me some advice?          Thank you!

    There is an example script in Adobe Illustrator Scripting/CSx/Sample Scripts/JavaScript/miscellaneous/Save as PDF that has all the parts except the EPS Options.

    Go here for the script Guides and references.

    http://www.Adobe.com/devnet/Illustrator/scripting.html

  • InDesign script to put the excel file

    Hi all, I'm new to Indesign Scripting, and I hope someone can help me with the following code:

    All I want to do is:

    1. Open the indesign file
    2. Open excel file
    3. ExcelFile place as a table (with active flow)
    4. export as PDF & save document

    Thank you!

    //Define file to open
    var myDocumentFile = new File("/d/Projecten/Indesign Server/document.indd");
    //Define file to save
    //var mySaveFile = new File("/d/Projecten/Indesign Server/document_save.indd");
    //Define file to export
    var exportPDF = new File("/d/Projecten/Indesign Server/document_save.pdf");
    //Open xls-file to place as table
    var myExcelFile = new File ("/d/Projecten/Indesign Server/products.xls");
    
    var result = "";
    if(!myDocumentFile.exists) {
        result = "Unable to find DOCUMENT:  " + myDocumentFile.path;
        $.writeln(result);
        exit();
    } else if(!myExcelFile.exists) {
        result = "Unable to find EXCEL:  " + myDocumentFile.path;
        $.writeln(result);
        exit();
    } else {
        // Open file
        var myDocument = app.open(myDocumentFile);
        with(app.documents.item(0).pages.item(0)){
            myTarget = textFrames.item("tabel");
        }
        var myPage = myDocument.pages.item(0);
    
        //Set excel placement properties
        setXLimportPrefs();
    
        // Place Excel file
           try {
                 $.writeln("Place Excel file");
                //HELP!! HOW TO PLACE EXCEL FILE?
                //myTextFrame.place(myFile);
            }
            catch (e) {
                 $.writeln("Place Excel file "  + e + " " + app.excelImportPreferences.errorCode);
                myDocument.close();
                exit();
            } 
        if(!exportPDF.parent.exists && !exportPDF.parent.create()) {
            result = "Not exported.  Unable to create the folder:  " + exportPDF.parent.fullName;
            $.writeln(result);
        } else {
            app.documents.item(0).exportFile(ExportFormat.pdfType, exportPDF, app.pdfExportPresets.item("[Press Quality]"));
        }
        myDocument.exportFile(ExportFormat.PDF_TYPE,exportPDF);
        myDocument.close();
    }
    
    function setXLimportPrefs(){    $.writeln("setXLimportPrefs()");
            with(app.excelImportPreferences){
                //alignmentStyle property can be:
                //AlignmentStyleOptions.centerAlign
                //AlignmentStyleOptions.leftAlign
                //AlignmentStyleOptions.rightAlign
                //AlignmentStyleOptions.spreadsheet
                alignmentStyle = AlignmentStyleOptions.spreadsheet;
                decimalPlaces = 4;
                preserveGraphics = true;
                //Enter the range you want to import as "start cell:end cell".
                rangeName = "A1:B16";
                sheetIndex = 1;
                sheetName = "Appetizers";
                showHiddenCells = false;
                //tableFormatting property can be:
                //TableFormattingOptions.excelFormattedTable
                //TableFormattingOptions.excelUnformattedTabbedText
                //TableFormattingOptions.excelUnformattedTable
                tableFormatting = TableFormattingOptions.excelFormattedTable;
                useTypographersQuotes = true;
                viewName = "";
            }
    }
    result;
    
    

    myTextFrame is not defined in your script.

    It works for me:

    myTextFrame = app.selection[0];
    var myExcelFile = new File ("~/Documents/idml/some file.xlsx");
    myTextFrame.place (myExcelFile);
    

    -When I select a text block, of course.

    To debug this, you can remove the try... catch statements because they're actually hiding the error now: InDesign can place the file, but the variable does not exist.

    Thankfully, I fell it many times before.

Maybe you are looking for