Knowing result of XML export from ExtendScript

Does anyone have experience in tracking the status messages for an XML export from within ExtendScript ? One of my scripts publishes a book and all its chapters to XML and needs to report on possible errors that occurred. The export also includes running an XSLT for post processing. I can see the status messages in the console panel but I need to know the status from within the script, so that it can handle possible error situations elegantly.
Ciao
Jang

Hi Jang,
you can use FA_errno after your export, here is an example with an import :
    var newImport = doc.Import(textLoc, newFile, importParams, retParams); // Import graphic from picture
    if(FA_errno != 0) {
        message = "Export aborted : Unable to import file : " + newFile;
        if(FA_errno == Constants.FE_BadParameter) message += "\r\rError N° : " + FA_errno + ", Bad parameter\r\rCheck your structured applications definitions";
        else if(FA_errno == Constants.FE_SystemError) message += "\r\rError N° : " + FA_errno + ", System error\r\rCheck your permissions on folder or on files you are trying to overwrite";
        else message += "\r\rError N° : " + FA_errno;
Hope it helps,
Bye

Similar Messages

  • Why I cannot to import .XML exported from DaVinci Resolve or Premiere?

    Both have options to export to FCPX. But it don't work. When I go to File -> Import -> XML in FCPX, the files .XML exported from DaVinci or Premiere, appear hide or unable to select.

    Hello Neil,
    Thanks for the response. I understand about the Speedgrade / Premiere thing. What we are trying to do is essentially the reverse. I use DaVinci Resolve, my client is using Premiere to edit. They want me to do essentially a best light pass on the footage without rendering it out. I then would export a CDL / EDL from Resolve and they would load that into Premiere or Speedgrade whichever would then display the simple color grade using the Adobe color tools. The CDL generated from Resolve is a cross platform basic color information inside an EDL. Anyway I can't find a way for Premiere / Speedgrade to read this info yet. Supposedly It will in Final Cut X, although I haven't tried it since I don't have Final Cut X on my computer.
    John

  • Trimming XML export from FCP

    Is it possible to trim the sequence XML export? FCP exports the entire XML sequence even when using Mark In/Out. I just need portions from the sequence to facilitate text extraction from my sequence chapters... if it helps to know why. Thanks.

    Duplicate the sequence...trim out what you don't want to export. Then export the XML.
    Shane

  • Handling result ciontaining xml nodes from  c# web service method call in flex

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

    I have read a article headed: Handling results as XML with
    the e4x result format
    Using this I have build a test application.But facing lot of
    problems.
    Here are the details of my code.I have used first example of
    using namespace.
    private namespace tempNamespace = "TEST1.WebServices";
    use namespace tempNamespace;
    I have specified result type as 'e4x' :
    <mx:WebService id="myTestService" showBusyCursor="true"
    wsdl="
    http://localhost/TEST/TestFlexWS.asmx?WSDL"
    useProxy="false">
    <mx:operation name="HelloWorldEx" resultFormat="e4x"
    result="Hello_Result_New(event);"
    fault="Hello_fault_New(event);">
    <mx:request>
    <strProductName>Test</strProductName>
    </mx:request>
    </mx:operation>
    </mx:WebService>
    In result handler:
    o/p of myTestService.HelloWorldEx.lastResult is:
    <HelloWorldExResponse xmlns:xsi="
    http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="
    http://www.w3.org/2001/XMLSchema"
    xmlns="TEST1.WebServices" xmlns:soap="
    http://schemas.xmlsoap.org/soap/envelope/">
    <HelloWorldExResult>&lt;PRODUCTCOLLECTION&gt;
    &lt;PRODUCT&gt;
    &lt;PRODUCTNAME&gt;Test Product
    121&lt;/PRODUCTNAME&gt;
    &lt;/PRODUCT&gt;&lt;/PRODUCTCOLLECTION&gt;</HelloWorldExResult>
    <TestResult></TestResult>
    </HelloWorldExResponse>
    When I display alert for :
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult);
    It's showing me result as:
    <PRODUCTCOLLECTION>
    <PRODUCT>
    <PRODUCTNAME>NEW DAM</PRODUCTNAME>
    </PRODUCT>
    </PRODUCTCOLLECTION>
    But when I display alert for inner node it doesn't show me
    anything:
    Alert.show(
    myTestService.HelloWorldEx.lastResult.HelloWorldExResult.PRODUCTCOLLECTION.PRODUCT.PRODUC TNAME);
    Can anybody help me out?
    It will be gr8 help for me.

  • Desktop app, getting a search result as XML/JSON from any website. How?

    Heya!
    I have a java program that im fiddling with whenever im bored. It's purpose is basically for me to learn new things and possibly make a nifty piece of software for me and my friends.
    Say, I have a list of entries (movies). Each entry has an iMDB link. What i would like to do is to be able to click a button and get a new window (perhaps, i haven't designed this bit yet) with information imported directly from iMDB.
    An approach I came up with is this: When you type something in iMDB's search field, you get a page with results. Is there any way to grab that result internally in my desktop app as XML or JSON perhaps, and parse that info and populate some text fields/areas with that parsed info?
    Reason why I ask this is because i have no clue about that "section" of Java (I've got quite basic desktop skills, but nearly none with networking/web and media). Are there any default libs in Java that have functionality that might be useful to me? I'd appreciate a poke in the right direction :)
    edit: hmmmm i've found some pointers in http://forums.sun.com/thread.jspa?threadID=5407197&start=0&tstart=0 and it seems like I have to use the text files provided by iMDB since i am to use this for non-commercial purposes. Delete this thread as I should've done much better research before I made this one. My appologies.
    Edited by: Ojive on Oct 4, 2009 5:27 PM

    edit: I see you have recanted this question. Never mind then.

  • Audio slipping on XML export to FCP?

    I've edited a project is Premiere CS5.5, and now I want to bring it into FCP for some tweaking.  When I export the project using 'XML for FCP' the video comes through fine, but all the audio clips are 10 seconds later than they should be.  I've tried a lot of variations on XML exporting and importing between the two programs and nothing works.  The sequence in Premiere is 'DSLR' (the footage is from a Canon 5D).  I've tried making a new timeline with different sequence settings and exporting, as well as trying a lot of different sequence import settings in FCP. (FCP is 7.0.3)
    I cant just export the audio as one track, because I need it editable in FCP.  Also, other projects have exported via XML just fine, so it seems to just be this one file with the problem. I even tried it on another machine and it had the same results. Is there a setting somewhere that I missed?  Is there a standard sequence setting for importing Canon 5D footage from XML into FCP?
    Is it just a bug?  This is a professional job, and I'm running behind because of the week I spent trying everything I could think of to fix this problem.  Anyone have any idea?

    " Do you have any specific questions we might answer?"
    Yes, as I stated in my first post-
    1. The audio is slipping 10 seconds per clip on an XML export from Premiere to FCP.  Has anyone has this problem and know how to solve it?
    also
    2. Is there a tutorial somewhere that details how to keyframe audio levels per audio clip on a time line (not just a whole track at once)
    If anyone has any ideas on either, I'd really appreciate it. 

  • Description of elements and attributes in XML export.

    Does anyone know where I can get a complete description of all the elements/attributes in the XML export from FCP. I found the DTDs (V 1-3), but it only gives me the names and overall structure. I need to know what the content means.
    in particular I want to automate if I can- using XSLT and XSL-FO - the production of standard reporting that I am required to produce (manually) in a documentary production course.

    its all on Apple's Developer site
    http://developer.apple.com/DOCUMENTATION/AppleApplications/Reference/FinalCutPro _XML/index.html

  • Captivate 8 - ETX ASCII code in XML export - error

    Hi,
    When I create an XML Export from a course (Captivate 8)  and open the XML in Notepad ++, I see following strange ASCII-code (See the screenshot below).
    When I take a look at the text in my Captivate file. The text is properly formatted in the text caption. There are also no strange characters in the entire captivate file.
    The text in my Captivate file is clean (copied without any formatting or manually typed).
    So the ASCII code must me added while exporting to XML.
    I know that I can remove those ASCII signs with the find and replace function, but I would like to know the reason Captivate adds those code at the end of some text.
    All help is appreciated.
    Regards,
    W

    Hi,
    When I create an XML Export from a course (Captivate 8)  and open the XML in Notepad ++, I see following strange ASCII-code (See the screenshot below).
    When I take a look at the text in my Captivate file. The text is properly formatted in the text caption. There are also no strange characters in the entire captivate file.
    The text in my Captivate file is clean (copied without any formatting or manually typed).
    So the ASCII code must me added while exporting to XML.
    I know that I can remove those ASCII signs with the find and replace function, but I would like to know the reason Captivate adds those code at the end of some text.
    All help is appreciated.
    Regards,
    W

  • PP7.1.0. XML Export missing REEL names - help!

    Problem with FCP XML export from Premiere Pro 7.1.0
    It's screwed up my worflow for editing Premiere from Proxies created in resolve.
    All worked fine in PP CS6
    Workflow
    1. In Resolve: Create Quicktime Proxies from DNGS created with Raw Magic via 5DIII
    2. Import my proxies into [b]Premiere CS6[/b]. Each Proxy comes in with the correct 'Tape Name' that matches the Reel name of the Clip in Resolve
    3. Edit in premiere
    4. FCP EXPORT .XML >>
    5. Opens perfectly in Resolve. The editng Proxies arere-linked to the RAW DNGS inside resolve, using the <REEL>names (you can see them inside the attached XML).  All is good.
    But with Premiere CC 7.1.0
    Opening XML in resolve gives me 'Failed to Link Because timecode extends do not match'
    world of pain - I can't manually relink 100's of DNG in resolve.
    Examning the xmls - Premiere CC 7.1.0 seems to have stopped exporting <REEL>
    Could anyone please test/confirm with Premiere CC 7.1.0 & Resolve 10
    I have attached the 'good' and 'bad'  XML's. [see link]
    Anyone having similar problems???
    How can I downgrade to PP CC 7?
    https://dl.dropboxusercontent.com/u/401700/FCP%20EXPORT%20PROBLEMS%20-%20MISSING%20REEL%20 NAMES/FCP%20EXPORT%20Missing%20Reel%20Names%20with%20PP%207.10..zip

    Has anyone found out a workaround for this?  We're just about to head into 3 back to back projects!
    We're still getting issues when trying to relink original Cinema DNGs from the proxies coming from an XML out of Premiere CC 7.2.1
    I can manually link them from the media pool, but have to do each clip in the timeline individually!
    Apart from re-exporting the Cinema DNGs as ProRes 422 HQs and linking these to the Premiere timeline (which king of defeats the object of recording RAW), does anyone know any work arounds?
    I take it this is still an issue with Premiere not exporting Reel / Tape names in the XML.
    EDLs do not work for us either.

  • Workflow Definition - XML Export/Import

    Gurus,
    The XML Exported from one R/3 system and Imported  in to another R/3 system (both are 6.20) always creates a new WF template. Is there a way I can overwrite the current version or generate a new version of an existing template with the import?
    TIA,
    Ramki Maley.

    Yes, this is possible for the workflowlayout, not for the containerelements and event linkages.
    PFTC
    type in the workflow template of the workflow you want to copy
    change
    workflow builder.
    now select a block and copy that one
    now type in the upper left of the screen the workflow in which you want to paste the block, copying and pasting between workflow definitiions only works within 1 SAP session (as far as I know)
    Kind regards, Rob Dielemans

  • Export from OWB Release: 9.2.0.2.8  results in error: MDL1255: Error export

    An export of a whole project from the OWB-client results in error en crash of the OWB Client.
    Does anyone know what causes this?
    Below the contents of the log-file generated by the export-utility
    Export started at 11/14/2005 4:53:17 PM
    * Export from OWB Release: 9.2.0.2.8 Version: 9.2.0.2.0
    * User: owbrep_MDN_dev Connect String: (DESCRIPTION=(ADDRESS=(HOST=l2-bm13-e0g.nl.rsg)(PROTOCOL=tcp)(PORT=1521))(CONNECT_DATA=(SERVICE_NAME=owbrep.l2_bm13_e0g.nl.rsg)))
    * Definition File: null
    * Data File: C:\data\owb\o\MIS_MDN-20051114_1651.mdl
    * Log File: C:\data\owb\o\Log.log Log Message Level: ALL
    * Physical Names: Y Field Separator: | Character Set: WE8MSWIN1252
    * Project: MIS_MDN Configuration Data: Y
    MDL1256: Error occurred exporting LOCATION with physical name <DB>, business name <DB>.
    Detailed Error Message:
    MDL1255: Error exporting CONNECTOR for LOCATION <DB/DB>.
    Error in SQL Statement. Please contact Oracle Support with the stack trace and details on how to reproduce it.
    *************************************************************

    This will not work.. Ypu cannot use FTP to 'PULL' a document into the database. (Yes I know there's a placeholder for an FTPURITYPE() but it was never implemented).
    However you can use an FTP client to PUSH content into the XML DB repository. If the content is schema based XML associated with a known (registered) XML schema the content of the file will automatically be stored in the default table associated with the root element of the file. If the content is not associated with an known XML schema you can then use xdburitype to read the resource that was created when the document was uploaded into the repository

  • Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the rows? Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    Hello Anybody, I have a question. Can any of you please suggest me how to make an xml file from the database table with all the records?
    Note:- I am having the XSD Schema file and the resulted XML file should be in that XSD format only.

    The Oracle documentation has a good overview of the options available
    Generating XML Data from the Database
    Without knowing your version, I just picked 11.2, so you made need to look for that chapter in the documentation for your version to find applicable information.
    You can also find some information in XML DB FAQ

  • How to discard skipped test results in XML report generated from TestStand

    Hello,
    I'm generating XML report from TestStand. I have more than 100 test cases & user has the flexibility to select the test cases to execute or to skip.
    Problem statement:
    1. In Configure\report options there is filter expression to filter test results to be logged. However, this filter is disabled for XML report.
    2. Is there a way to compress XML file using either encryption or any other methods?
    I understand that there would be two methods ideally for my problem statement #1 above:
    A. To have a workaround in reportgen_xml.seq to pragmatically log only executed test cases and discard skipped test results.
    B. Modify stylesheet supplied by NI to discard skipped test results.
    For problem statement #2 above:
    I am able to encrypt the data before logging it to XML. But I don't know how to modify the stylesheet to decrypt the same using either public/ private encryption keys. Can anyone bring in more ideas here !!!
    My preference would be to implement using #A above to reduce the XML file size which is ~4 MB will all test results (skipped + executed). If this is not possible my last option would be to implement using #B above
    I would appreciate if someone can help me for my problem statement? I'm using TestStand 2010
    Solved!
    Go to Solution.

    I have another solution and that is to actual discard the result before you get to the report stage.
    You can do this by use of the Override Callback SequenceFilePostResultList and if Skipped then discard the result from ResultList.
    Check out this link.
    Regards
    Ray Farmer

  • How to export a data as an XML file from oracle data base?

    could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
    Thankz in advance
    Bala

    SQL> SELECT * FROM v$version;
    BANNER
    Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
    PL/SQL Release 11.1.0.6.0 - Production
    CORE    11.1.0.6.0      Production
    TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
    NLSRTL Version 11.1.0.6.0 - Production
    5 rows selected.
    SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
    Directory created.
    SQL> declare                                                                                                               
      2    doc  DBMS_XMLDOM.DOMDocument;                                                                                       
      3    xdata  XMLTYPE;                                                                                                     
      4                                                                                                                        
      5    CURSOR xmlcur IS                                                                                                    
      6    SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",                       
      7                                  'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")              
      8                              ,xmlelement("EmployeeNumber",e.empno)                                                     
      9                              ,xmlelement("EmployeeName",e.ename)                                                       
    10                              ,xmlelement("Department",xmlelement("DepartmentName",d.dname)                             
    11                                                      ,xmlelement("Location",d.loc)                                     
    12                                         )                                                                              
    13                   )                                                                                                    
    14     FROM   emp e                                                                                                       
    15     ,      dept d                                                                                                      
    16     WHERE  e.DEPTNO=d.DEPTNO;                                                                                          
    17                                                                                                                        
    18  begin                                                                                                                 
    19    OPEN xmlcur;                                                                                                        
    20    FETCH xmlcur INTO xdata;                                                                                            
    21    CLOSE xmlcur;                                                                                                       
    22    doc := DBMS_XMLDOM.NewDOMDocument(xdata);                                                                           
    23    DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');                                                                  
    24  end;                                                                                                                  
    25  /                                                                                                                      
    PL/SQL procedure successfully completed.
    .

  • Can someone help me export a XML file from my project file?

    hey guys,
    I need someone to help me if possible, i was working at school with final cut pro and forgot to export it in xml format and only saved it in final cut pro format... i need to work on this at home and i have a pc.. because there are no lab hours and its due tommorrow, if anyone can help that would be great, thanks!!
    Winston

    i believe it was final cut pro 5, and i have premiere pro cs4 and it says itll read any xml file from final cut pro.
    if anyone wants to help me... here is my fcp file
    http://rapidshare.com/files/208267210/abstract.fcp.html
    you can just email me back the xml file to [email protected]
    i really appreciate it if someone can help me out!!
    Message was edited by: WinstonWong

Maybe you are looking for

  • I installed Firefox and it won't open any web pages at all, why?

    No matter what web address I type in nothing comes up. Even have tried clickig on the 'Getting Started' button and it won't open either.

  • ORA-01033 Error Coming Continuosly

    When I am trying to connect to the database the error is coming "Oracle shutdown or intilialization is in process". I am not able to do anything. My database is on some other computer and i am trying to connect using host string. I am using Oracle ve

  • Firefox crashes after Carbon Copy Cloner

    I powered on the computer, and did not open anything other than Carbon Copy Cloner. I then copied one entire hard drive to another. Everything works, such as Thunderbird and Opera Next, except for Firefox! As it's my primary browser I have spent an h

  • Applications do not open on the iMac

    I am rather disappointed with the new iMac with the much vaunted Intel processor. Among other things it is slow and more to the point, buggy. After it has been up and running for some time and especially if it has been left idle for a while, many non

  • Nchar issue

    Hi we're having an issue on our production server with nchars. It is as follows: We have a person table with an active field which has an nchar with Y/N check constraint on it. We also have a view which includes all the fields of the person table and