Error in CF form in flash format

Hi
I receive the following error when loading a CF form in a
Flash format...
Errors, warnings or exceptions were found when compiling
/mystore/admin/purchases_not_processed.cfm. Visit the online Flex
documentation or API reference for further information.
1 Error found.
Error
C:\Inetpub\wwwroot\MyStore\admin\purchases_not_processed.cfm:4
A function in the code exceeds the 64K byte limit (actual
size = '122810'). Since the problem occurs in the
compiler-generated deferred instantiation code, please
refactor/componentize portions of this document.
How do i overcome this error?
I hope someone can assist with this...
Thanks in advance...
Regards
Mr Pappy

Karl, is your problem still happening?
If so, are you sure that your web site (is it IIS) is set so that the CFIDE it points to is the one inside CF11?  We see from the screenshot you shared that inside the stack trace it points to the page as running in some /CFIDE folder (as if it’s the root of a file system—and it’s odd, because there’s no drive reference, which would be there normally on Windows.)
Normally, it should point to the coldfusion11\cfusion\wwwroot\CFIDE folder, which is where CF11 puts that folder by default.  If your web site is pointing at some other folder for that, it could simply be that your Admin was using a different version of code for that mail settings page than CF11 is expecting you to use.
Let us know if that helps.
/charlie

Similar Messages

  • Format variable using bind in a flash format form

    Greetings
    All though seems like a simple question, I seem to be missing something here. I have a form (in flash format) that calculates a value when a form item is selected. The value is actually a dollar value. I output the variable value in a cfformitem but I con't figure out how to diplay it as a dollor value, moreover, a value with trailing zeros when the value is a full dollar.
    For example:
    The amount $1.00 displays as 1 (I add the dolloar sign)
    or $23.80 displays as 23.8
    Code below:
    <cfif 
    IsDefined("Form.Submit")>
    Total Cost:
    <cfoutput>#form.TotalCost#</cfoutput><br />
    </cfif> <cfform  format="flash"><cfformitem 
    type="script">
    var charge = '';
    var p1 = 40.50;
    var p2 = 29.75;
    function cost():Void
    charge = 0;
    // share price
    if (specialneeds.value==true) {
    if (Session1.value==1) {
    charge = (charge + p2);
    if (Session2.value==1) {
    charge = (charge + p2);
    if (Session3.value==1) {
    charge = (charge + p2);
    // double price
    else {
    if (Session1.value==1) {
    charge = (charge + p1);
    if (Session2.value==1) {
    charge = (charge + p1);
    if (Session3.value==1) {
    charge = (charge + p1);
    }</cfformitem> <cfinput type="checkbox" label="Sharing?" name="specialneeds" value="true" checked="No" onClick="cost()" />
     <cfinput type="checkbox" label="Day 1" value="1" name="Session1" onClick="cost()" id="Session1" />
     <cfinput type="checkbox" label="Day 2" value="1" name="Session2" onClick="cost()" id="Session2" />
     <cfinput type="checkbox" label="Day 3" value="1" name="Session3" onClick="cost()" id="Session3" />
     <cfformitem bind="Total Cost: ${charge}" style="color:red;" type="text"></cfformitem>
     <cfinput type="hidden" id="TotalCost" name="TotalCost" bind="{charge}" />
     <cfinput type="submit" id="sumbit" name="submit" Label="Submit" value="Submit" /></cfform>
    Any ideas how I can get around this?
    Thanks for any input.

    Awesome, Thank You BKBK!
    Since I call this function several times, I just had to add:
    integerPart = 0;
    decimalPart = 0;
    decimalPartWithoutPoint = "0";
    At the beginning of the function. Commented code below for future reference.
    <cfif  IsDefined("Form.Submit")>
    Total Cost:<cfoutput>#form.TotalCost#</cfoutput><br />
    </cfif> <cfform  format="flash"><cfformitem 
    type="script">
    var charge = 0;
    var charge2 = 0;
    var integerPart = 0;
    var decimalPart = 0;
    var decimalPartWithoutPoint = "0";
    var p1 = 40.50;
    var p2 = 29.75;
    function cost():Void
    charge = 0;
    integerPart = 0;
    decimalPart = 0;
    decimalPartWithoutPoint = "0";
    // share price
    if (specialneeds.value==true) {
    if (Session1.value==1) {
    charge = (charge + p2);
    if (Session2.value==1) {
    charge = (charge + p2);
    if (Session3.value==1) {
    charge = (charge + p2);
    // double price
    else {
    if (Session1.value==1) {
    charge = (charge + p1);
    if (Session2.value==1) {
    charge = (charge + p1);
    if (Session3.value==1) {
    charge = (charge + p1);
    // Charge amount * 100, round the value to nearest whole number (cents now become dollars) and rounds to nearest cent
    charge=Math.round(charge*100)/100;
    charge2=Math.round(charge*100)/100;
    // get the closest integer that is less than or equl to the charge amount, or the dollar value
    integerPart = Math.floor(charge);
    // get the total number of cents from the transaction
    decimalPart = charge - integerPart;
    // this converts the decimalPart to a string if it is not a zero
    if (decimalPart != 0) decimalPartWithoutPoint = decimalPart.toString().split(".")[1];
    // this takes the interger & decimal values, converts it to a string then adds a "0" to the string
    if (decimalPart == 0 || decimalPartWithoutPoint.length == 1) charge = integerPart.toString() + "." + decimalPartWithoutPoint + "0";
    //var myAlert = mx.controls.Alert.show("Charge2 = " + charge2 + "\nIntegerPart = " + integerPart + "\ndecimalPart = " + decimalPart + "\nCharge = " + charge, "Math Information", mx.controls.Alert.OK, this);
    //myAlert.show;
    }</cfformitem> <cfinput type="checkbox" label="Sharing?" name="specialneeds" value="true" checked="No" onClick="cost()" />
     <cfinput type="checkbox" label="Day 1" value="1" name="Session1" onClick="cost()" id="Session1" />
     <cfinput type="checkbox" label="Day 2" value="1" name="Session2" onClick="cost()" id="Session2" />
     <cfinput type="checkbox" label="Day 3" value="1" name="Session3" onClick="cost()" id="Session3" />
     <cfformitem bind="Total Cost: ${charge}" style="color:red;" type="text"></cfformitem>
     <cfinput type="hidden" id="TotalCost" name="TotalCost" bind="{charge}" />
     <cfinput type="submit" id="sumbit" name="submit" Label="Submit" value="Submit" /></cfform>

  • Error in CF form in a Flash format...

    Hi
    I receive the following error when loading a CF form in a
    Flash format...
    Errors, warnings or exceptions were found when compiling
    /mystore/admin/purchases_not_processed.cfm. Visit the online Flex
    documentation or API reference for further information.
    1 Error found.
    Error
    C:\Inetpub\wwwroot\MyStore\admin\purchases_not_processed.cfm:4
    A function in the code exceeds the 64K byte limit (actual
    size = '122810'). Since the problem occurs in the
    compiler-generated deferred instantiation code, please
    refactor/componentize portions of this document.
    How do i overcome this error?
    I hope someone can assist with this...
    Thanks in advance...
    Regards
    Mr Pappy

    Hi
    I receive the following error when loading a CF form in a
    Flash format...
    Errors, warnings or exceptions were found when compiling
    /mystore/admin/purchases_not_processed.cfm. Visit the online Flex
    documentation or API reference for further information.
    1 Error found.
    Error
    C:\Inetpub\wwwroot\MyStore\admin\purchases_not_processed.cfm:4
    A function in the code exceeds the 64K byte limit (actual
    size = '122810'). Since the problem occurs in the
    compiler-generated deferred instantiation code, please
    refactor/componentize portions of this document.
    How do i overcome this error?
    I hope someone can assist with this...
    Thanks in advance...
    Regards
    Mr Pappy

  • Flash Format Forms No Workie

    I'm able to test a simple CFForm with Flash format on my
    personal web account and it works great. However, in the same MX 7
    environment the form won't generate. It will generate a Flash
    plugin component, but no form elements.
    I suspect that there is some possible configuration change I
    need to make on the server side for Flash formatted forms to
    appear? CFIDE directory permissions? Enable some service?
    eg, this one works:
    http://www.somareview.com/testme.cfm
    eg, this one with the same code does not work:
    http://www.clarku.edu/temp/flashform.cfm
    Thanks for any suggestions,
    Chuck

    Dear Chuck,
    I guess you have fixed the problem. Both sites work well to
    me.
    Keiko

  • Formatting error in SFP Form

    Hi Experts ,
    I want to generate one SFP form YLFN_INVOICE_FORM_PT , via one output type ZP00 using TC VF03.
    Previously the Print preview was coming , but now no  Print Preview is coming.
    Please check how i am doing.
    1) Goto VF03 , selecting the billing type ZP00 and pressing the Print Preview.
    2) Its Blank and come to Screen of VF03.(Invoice Display)
    Can u suggest what should i check in form or in Layout. After so many hours of debugging i found Formatting Error at last.
    But when i am checking with the previous version i am not getting any layout difference and also my form is also activated.
    Please help me out . <removed by moderator>
    Waiting for your reply.
    VIvek
    Edited by: Thomas Zloch on Sep 7, 2011 2:29 PM

    you got a smartform i guess, right?
    if so, implement a call to FM SSF_READ_ERRORS right under the call of your smartform.
    It will catch all the errors thrown during form processing.
    You can then go via SE91 message SSFCOMPOSER with your message numbers of your return table and check what´s wrong.
    Probably a table or template doesnt fit into main window, or some main window has another width in different pages. But well thats guessing, just find it out.

  • R12 - Format Payment Instructions XML Parsing Error: not well-formed

    We are going from 11.5.10 to R12,
    We followed the Note : 562806.1 to generate the XML file but we are getting the following error?
    XML Parsing Error: not well-formed
    Location: http://XXXXXXXXXXXXXX.com:8030/OA_CGI/FNDWRR.exe?temp_id=3412576704
    Line Number 1, Column 9:%PDF-1.4
    --------^
    Any help or suggestions would be great!
    Thanks

    Please see if the solution in (BI Publisher Reports End With Error When There Is An Ampersand Character ( & ) On The Xml Data File [ID 1081175.1]) is applicable.
    Thanks,
    Hussein

  • Acrobat 9: Error when PDF form submit with file attachment

    Hi all,
    Hope you can provide some help with my PDF form submit issue. I am getting this error "There is no PDDoc associated with this CosDoc." in Acrobat 9 (Reader and Pro) when I try to submit a PDF form with a file attachment field (the file is specified). The same PDF form works fine in Acrobat 7 or 8 (Reader and Pro) with file attachment.
    If no file attachment is specified (user did not select a file) then the PDF form submits fine in acrobat 9. The form data submission format is in FDF. Same problem if I change to XFDF.
    There are no differences in the problem if the PDF form is created in Acrobat 7 or Acrobat 9, the same submit issue exists in Acrobat 9 but not in the older Acrobat versions.
    Is this a known issue and are there any workarounds/solutions?
    Thanks.

    Sounds like a bug to me. Please report it: http://www.adobe.com/support/feature.html
    George

  • Print form  in pdf format

    hi,
    i want to print the form i created in sapscript. how to do that? need to save the form into pdf format and then print it.
    please advise.
    thanks.

    Hi
    This is my routine used to generate a pdf file from print, u need only to get the OTF data from CLOSE_FORM fm:
    CALL FUNCTION 'CLOSE_FORM'
             TABLES
                  OTFDATA                  = T_OTF
             EXCEPTIONS
                  UNOPENED                 = 1
                  BAD_PAGEFORMAT_FOR_PRINT = 2
                  SEND_ERROR               = 3
                  SPOOL_ERROR              = 4
                  OTHERS                   = 5.
        IF SY-SUBRC <> 0.
          MESSAGE I208(00) WITH 'Errore chiusura stampa'(A02).
        ELSE.
          PERFORM DOWNLOAD_PDF.
        ENDIF.
    FORM DOWNLOAD_PDF.
      DATA: BIN_FILESIZE TYPE I.
      DATA: T_FILE_PDF     TYPE STANDARD TABLE OF TLINE,
            DOCTAB_ARCHIVE TYPE STANDARD TABLE OF  DOCS.
      DATA: FILE_TABLE     TYPE FILETABLE WITH HEADER LINE.
      DATA: RC          TYPE I,
            USER_ACTION TYPE I.
      DATA: TITLE    TYPE STRING,
            FILENAME TYPE STRING.
      CHECK P_PDF = 'X'.
      CALL FUNCTION 'CONVERT_OTF_2_PDF'
           IMPORTING
                BIN_FILESIZE           = BIN_FILESIZE
           TABLES
                OTF                    = T_OTF
                DOCTAB_ARCHIVE         = DOCTAB_ARCHIVE
                LINES                  = T_FILE_PDF
           EXCEPTIONS
                ERR_CONV_NOT_POSSIBLE  = 1
                ERR_OTF_MC_NOENDMARKER = 2
                OTHERS                 = 3.
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore conversione PDF'(A03).
        EXIT.
      ENDIF.
      TITLE = 'Creare File'(T02).
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_OPEN_DIALOG
         EXPORTING
           WINDOW_TITLE            = TITLE
           DEFAULT_EXTENSION       = '*.pdf'
        CHANGING
          FILE_TABLE              = FILE_TABLE[]
          RC                      = RC
          USER_ACTION             = USER_ACTION
        EXCEPTIONS
          FILE_OPEN_DIALOG_FAILED = 1
          CNTL_ERROR              = 2
          ERROR_NO_GUI            = 3
          OTHERS                  = 4
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        IF USER_ACTION = 9. EXIT. ENDIF.
        IF RC = 1.
          READ TABLE FILE_TABLE INDEX 1.
        ENDIF.
      ENDIF.
      MOVE FILE_TABLE-FILENAME TO FILENAME.
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
           BIN_FILESIZE            = BIN_FILESIZE
           FILENAME                = FILENAME
           FILETYPE                = 'BIN'
        CHANGING
          DATA_TAB                = T_FILE_PDF
        EXCEPTIONS
          FILE_WRITE_ERROR        = 1
          NO_BATCH                = 2
          GUI_REFUSE_FILETRANSFER = 3
          INVALID_TYPE            = 4
          NO_AUTHORITY            = 5
          UNKNOWN_ERROR           = 6
          HEADER_NOT_ALLOWED      = 7
          SEPARATOR_NOT_ALLOWED   = 8
          FILESIZE_NOT_ALLOWED    = 9
          HEADER_TOO_LONG         = 10
          DP_ERROR_CREATE         = 11
          DP_ERROR_SEND           = 12
          DP_ERROR_WRITE          = 13
          UNKNOWN_DP_ERROR        = 14
          ACCESS_DENIED           = 15
          DP_OUT_OF_MEMORY        = 16
          DISK_FULL               = 17
          DP_TIMEOUT              = 18
          FILE_NOT_FOUND          = 19
          DATAPROVIDER_EXCEPTION  = 20
          CONTROL_FLUSH_ERROR     = 21
          OTHERS                  = 22
      IF SY-SUBRC <> 0.
        MESSAGE I208(00) WITH 'Errore creazione PDF'(A04).
        EXIT.
      ELSE.
        MESSAGE S208(00) WITH 'File creato con successo'(S01).
      ENDIF.
      CHECK P_OPEN = 'X'.
      CALL FUNCTION 'CALL_BROWSER'
           EXPORTING
                URL                    = FILE_TABLE-FILENAME
           EXCEPTIONS
                FRONTEND_NOT_SUPPORTED = 1
                FRONTEND_ERROR         = 2
                PROG_NOT_FOUND         = 3
                NO_BATCH               = 4
                UNSPECIFIED_ERROR      = 5
                OTHERS                 = 6.
      IF SY-SUBRC <> 0.
        MESSAGE S208(00) WITH 'Impossibile aprire file'(A05).
      ENDIF.
    ENDFORM.                    " DOWNLOAD_PDF
    Max

  • Cfgrid not displaying in flash format

    <cfform format="flash" width="1000"
    action="editContact.cfm">
    <cfgrid name="contact" query="contact_details"
    selectmode="edit" insert="yes" delete="yes" height="200"
    width="1000" align="middle">
    <cfgridcolumn name="ID" display="no">
    <cfgridcolumn name="FIRST_NAME">
    <cfgridcolumn name="LAST_NAME" >
    <cfgridcolumn name="JOB_TITLE">
    <cfgridcolumn name="EMAIL" >
    <cfgridcolumn name="PHONE">
    </cfgrid>
    <br>
    <cfinput type="submit" value="submit" name="submit">
    </cfform>
    Hi, the code above using cfgrid in flash format used to
    display perfectly. But after some time, without changing the code,
    cfgrid is not displaying anymore. Any reasons why this is
    happening? Thanks.

    What error do you see? Anything?
    Try tracing the page request by using coldfusion/jrun's
    sniffer.exe,
    Charles, or some other
    tool. See what is going on. If the applet is starting to load,
    enable the java console and review the errors there.
    Does this issue happen on multiple client machines or just
    one? What version of CFMX7 are you using (run sysinfo from
    cfadmin).

  • Getting error when submitting form using IE but not when using FF

    Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
        at Error$/throwError()
        at flash.net::URLVariables/decode()
        at flash.net::URLVariables()
        at flash.net::URLLoader/onComplete()
    Has anyone had this problem?

    I don't know how I would test that I don't know of any way to test it locally.
    here's the code for the form:
    import flash.net.*;
    import flash.events.*;
    import flash.text.TextField;
        var status_txt:TextField = new TextField();
        var myFormat:TextFormat = new TextFormat();
        myFormat.font = "Georga";
        myFormat.color = 0x00ff00;
        myFormat.size = 21;
        status_txt.autoSize = TextFieldAutoSize.LEFT;
        status_txt.x = -240;
        status_txt.y = -225;
        addChild(status_txt);
    submit_btn.addEventListener(MouseEvent.CLICK, ValidateAndSend);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, reportKeyDown);
    //this.status_txt.mouseEnabled = false;
    //this.parent.mouseEnabled = true;
    function reportKeyDown(e:KeyboardEvent):void {
        var KeyCode:uint = e.charCode;
        if (KeyCode == 13){
            submit_btn.dispatchEvent(new MouseEvent(MouseEvent.CLICK));
    function ValidateAndSend(e:MouseEvent):void {
    var variables:URLVariables = new URLVariables();
    var request:URLRequest = new URLRequest();
    // variables.recipient = "[email protected]";
    if(!name_input.length){    createStatus("please enter a name"); }
    else if(!email_input.length) {createStatus("please enter a email address");}
    else if(!validateEmail(email_input.text)){createStatus("enter valid email address");}
    else if(!message_input.length){createStatus("please enter a message");}
    else {
        variables.name = name_input.text;
        variables.email = email_input.text;
        variables.message = message_input.text;
    request.url = "gdform.php";
    request.method = URLRequestMethod.POST;
    request.data = variables;
    var loader:URLLoader = new URLLoader();
    loader.dataFormat = URLLoaderDataFormat.VARIABLES;
    loader.load(request);
    createStatus("Thanks " + name_input.text + ", your message has been sent!");
    function createStatus(msg:String):void {
        status_txt.text = msg;
        status_txt.setTextFormat(myFormat);   
    function validateEmail(str:String):Boolean {
        var pattern:RegExp = /(\w|[_.\-])+@((\w|-)+\.)+\w{2,4}+/;
        var result:Object = pattern.exec(str);
        if(result == null) {
            return false;
        return true;
    this is the php on the server that I submit to.
    <?php
        $request_method = $_SERVER["REQUEST_METHOD"];
        if($request_method == "GET"){
          $query_vars = $_GET;
        } elseif ($request_method == "POST"){
          $query_vars = $_POST;
        reset($query_vars);
        $t = date("U");
        $file = $_SERVER['DOCUMENT_ROOT'] . "/../data/gdform_" . $t;
        $fp = fopen($file,"w");
        while (list ($key, $val) = each ($query_vars)) {
         fputs($fp,"<GDFORM_VARIABLE NAME=$key START>\n");
         fputs($fp,"$val\n");
         fputs($fp,"<GDFORM_VARIABLE NAME=$key END>\n");
         if ($key == "redirect") { $landing_page = $val;}
        fclose($fp);
        if ($landing_page != ""){
        header("Location: http://".$_SERVER["HTTP_HOST"]."/$landing_page");
        } else {
        header("Location: http://".$_SERVER["HTTP_HOST"]."/");
    ?>

  • Error message with forms 6i and OAS

    Hello,
    I 'm executing an applet (forms6i&OAS), while executing http://mycomputer:8001/web_html/mybase
    i have the error:
    keyconfailbundle oracle.forms.engine
    runformbundle exception
    java.lang.illegal argument exception: unknown format type...
    can u please help
    thnaks in advance
    the applet code is the following
    <HTML>
    <HEAD><TITLET>titlz</TITLE></HEAD>
    <BODY >
    <APPLET CODEBASE="/web_frms/"
    CODE="oracle.forms.engine.Main"
    ARCHIVE="f60all.jar"
    WIDTH="750"
    HEIGHT="700">
    <PARAM NAME="serverPort" VALUE="9000">
    <PARAM NAME="serverHost" VALUE="mycomputer">
    <PARAM NAME="serverArgs"
    VALUE="module=d:\Direc\pic userid=scott/tiger@inter">
    </APPLET>
    </BODY>
    </HTML>

    You will need to startup the database before you can run any sql command.

  • In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3

    In Trying to convert my flash movie to the latest Flash format and from action script 2 to 3 I get this error message Scene 1, Layer 'Layer 3', Frame 1, Line 2, Column 7
    1119: Access of possibly undefined property showMenu through a reference with static type Class. This is the debug scrip this.loadVariables("_urls.txt") Stage.showMenu=false; stop(); I don't know how to fix this. Can any one Help. The movie loads to 99% then stops and reloads again. over and over again.

    Stage is a protected keyword in AS3 and it has no property showMenu
    http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.htm l

  • Contact forms in Flash (AS3/PHP)

    Hello,
    I have created a form in flash (CS5) using AS3 and Php.
    The test run worked absolutely fine but now I have added the form to my (original) flash movie it has a number of errors come up...
    Thing is that I've just spent the last 2 hours trying to get this form to work and having no success what so ever.
    So does anyone know what the following complier errors mean and how I can solve this issue?
    Scene 1
    1152: A conflict exists with inherited definition flash.display:DisplayObject.name in namespace public.
    ComponentShim (Compiled Clip), Line 1
    5000: The class 'fl.controls.TextArea' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
    ComponentShim (Compiled Clip), Line 1
    5000: The class 'fl.controls.TextInput' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
    ComponentShim (Compiled Clip), Line 1
    5000: The class 'fl.controls.UIScrollBar' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
    ComponentShim (Compiled Clip), Line 1
    5000: The class 'fl.controls.Button' must subclass 'flash.display.MovieClip' since it is linked to a library symbol of that type.
    Yes, I'm obviously a newbie and still getting to grips with flash so any help would be amazing!
    Thank you in advance,
    Jos

    add those components to the library of your main (ie, loading) fla.

  • XMLFormService Error importing image. Unsupported image format.

    Hello,
    I'm getting the following error when trying to import an image into a form:
    2010-10-04 08:56:35,717 WARN  [com.adobe.document.XMLFormService] ALC-XTG-017-936: [8392] Error importing image. Unsupported image format.
    2010-10-04 08:56:35,717 WARN  [com.adobe.document.XMLFormService] ALC-XTG-029-461: [8392] XFAImageService: Image cannot be resolved for node: ImageField1.
    The strange thing is that it works fine on our production server, yet it fails in development.  I've restarted jboss, flushed tmp, work, and data, replaced the images, but still nothing.  The image that won't load is a 1 pixel by 1 pixel JPG image, so it's not like it could be too large or anything. 
    Please help if you have any insight into this problem.
    Thanks!

    So when I went to get the image, it wouldn't load in the Web browser, and it looks like that was the problem.  I mentioned that I had tried changing the image.  I was actually changing a field in the database that says which image to retrieve.  I'm wondering if maybe I was changing the wrong record or maybe my query browser wasn't updating the DB correctly.  I can't find the record I was using last week when I reported the issue, but either way, I'm glad it's working now. 
    Thanks for the help. 

  • XML Parsing Error: not well-formed (C# Visual Studio 2013)

    I am working on a project in visual studio that imports a csv, and exports an xml file. I'd like to be able to get the code to work as xml and html, and view it in a browser. I am getting this error when I load the xml file into a browser:
    Firefox
    XML Parsing Error: not well-formed Location: file:///C:/Users/fenwky/XmlDoc.xml Line Number 2, Column 6:?> -----^
    Chrome
    This page contains the following errors: error on line 2 at column 16: colon are forbidden from PI names 'xsl:transform'
    This is what my c# code looks like in visual studio 2013:
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);

    Hi
    Kylee Fenwick,
    Could you show us your CSV file? And the code how do you imports a csv and exports an xml file?
    Best regards,
    Kristin
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.
    Hi Kristen,
    Thank you in advance for your healp. Here is my CSV file:
    Item Code;Item Description;Current Count;On Order
    A0001;"Wheels, Horse on";5;No
    A0002;"Wheels, Elephant on";2;No
    A0003;"Wheels, Dog on";0;Yes
    A0004;"Wheels, Seal on";3;No
    A0005;"Wheels, Bear on";7;No
    A0006;"Bear, Teddy";2;Yes
    A0007;"Clown,";5;No
    A0008;"Puppy(crouch),";3;No
    A0009;"Puppy(stand),";2;No
    A0010;"Puppy(jump),";2;Yes
    A0011;"Pupp(lying),";1;Yes
    A0012;"(50), Cart with Blocks";0;Yes
    A0013;"(100), Cart with Blocks";5;No
    A0014;"(200), Cart with Blocks";4;No
    A0015;"Carriage, Train with 0";12;No
    A0016;"Carriage, Train with 1";10;No
    A0017;"Carriage, Train with 2";5;Yes
    A0018;"Carriage, Train with 3";4;Yes
    A0019;"Carriage, Train with 4";5;No
    A0020;"Carriage, Train with 5";2;No
    A0021;"(20), Building Blocks";15;No
    A0022;"(30), Building Blocks";13;No
    A0023;"(40), Building Blocks";16;No
    A0024;"(50), Building Blocks";5;Yes
    A0025;"(100), Building Blocks";2;Yes
    A0026;"(200), Building Blocks";8;No
    A0027;"Windmill,";5;No
    A0028;"Farmhouse,";6;Yes
    A0029;"Fencing,";22;Yes
    A0030;"Barn,";12;Yes
    A0031;"Tractor,";6;Yes
    A0032;"Animals,";3;Yes
    A0033;"House,";9;No
    A0034;"Car,";12;No
    A0035;"(small), Building";4;No
    A0036;"(medium), Building";3;No
    A0037;"(tall), Building";4;No
    A0038;"Shop,";7;No
    A0039;"Lights, Traffic";5;Yes
    A0040;"Station, Petrol";4;Yes
    And here is my code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using System.IO;
    using System.Data.OleDb;
    using System.Xml;
    using System.Xml.Xsl;
    using System.Xml.XPath;
    namespace CSVImporter
    public partial class CSVImporter : Form
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xml file
    const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml";
    // New code
    //const string xmlfilename = @"C:\Users\fenwky\XmlDoc.xml"; - file name and location of xsl file
    const string stylesheetsimple = @"C:\Users\fenwky\style1.xsl";
    //const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    const string xmlfilecomplex = @"C:\Users\fenwky\XmlDoc2.xml";
    DataSet ds = null;
    public CSVImporter()
    InitializeComponent();
    // Create a Open File Dialog Object.
    openFileDialog1.Filter = "csv files (*.csv)|*.csv|All files (*.*)|*.*";
    openFileDialog1.ShowDialog();
    string fileName = openFileDialog1.FileName;
    //doc.InsertBefore(xDeclare, root);
    // Create a CSV Reader object.
    CSVReader reader = new CSVReader();
    ds = reader.ReadCSVFile(fileName, true);
    dataGridView1.DataSource = ds.Tables["Table1"];
    private void WXML_Click(object sender, EventArgs e)
    WriteXML();
    public void WriteXML()
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Test code //
    // Load the style sheet.
    XslCompiledTransform xslt = new XslCompiledTransform();
    xslt.Load("style1.xsl");
    // Test code //
    // Transform the file and output an HTML string.
    string HTMLoutput;
    StringWriter writer = new StringWriter();
    xslt.Transform("XmlDoc.xml", null, writer);
    HTMLoutput = writer.ToString();
    writer.Close();
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Stylesheet
    // String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    String PItext = "<xsl:stylesheet xmlns:xls=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    // newPI = doc.CreateProcessingInstruction("abc:stylesheet", PItext);
    newPI = doc.CreateProcessingInstruction("xls:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Save document
    doc.Save(xmlfilename);
    private void btExportComplexXML_Click(object sender, EventArgs e)
    WriteXMLComplex();
    public void WriteXMLComplex()
    // Creates stringwriter
    StringWriter stringWriter = new StringWriter();
    ds.WriteXml(new XmlTextWriter(stringWriter), XmlWriteMode.WriteSchema);
    string xmlStr = stringWriter.ToString();
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(xmlStr);
    XmlDeclaration xDeclare = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    XmlNode docNode = doc.CreateXmlDeclaration("1.0", "UTF-8", null);
    doc.InsertBefore(xDeclare, doc.FirstChild);
    // Create a procesing instruction.
    XmlProcessingInstruction newPI;
    // Uses XML transformation.
    String PItext = "<abc:stylesheet xmlns:abc=\"http://www.w3.org/1999/XSL/Transform\" version=\"1.0\">";
    newPI = doc.CreateProcessingInstruction("xsl:stylesheet", PItext);
    doc.InsertAfter(newPI, doc.FirstChild);
    // Saves document.
    doc.Save(xmlfilecomplex);
    //Creates a CSVReader Class
    public class CSVReader
    public DataSet ReadCSVFile(string fullPath, bool headerRow)
    string path = fullPath.Substring(0, fullPath.LastIndexOf("\\") + 1);
    string filename = fullPath.Substring(fullPath.LastIndexOf("\\") + 1);
    DataSet ds = new DataSet();
    try
    if (File.Exists(fullPath))
    string ConStr = string.Format("Provider=Microsoft.Jet.OLEDB.4.0;Data Source={0}" + ";Extended Properties=\"Text;HDR={1};FMT=Delimited\\\"", path, headerRow ? "Yes" : "No");
    string SQL = string.Format("SELECT * FROM {0}", filename);
    OleDbDataAdapter adapter = new OleDbDataAdapter(SQL, ConStr);
    adapter.Fill(ds, "TextFile");
    ds.Tables[0].TableName = "Table1";
    foreach (DataColumn col in ds.Tables["Table1"].Columns)
    col.ColumnName = col.ColumnName.Replace(" ", "_");
    catch (Exception ex)
    MessageBox.Show(ex.Message);
    return ds;

Maybe you are looking for

  • I-Phone 3G slowed down after updating to OS 4.0.1

    My I-phone 3G was running perfectly fine, till I updated to OS 4, it's been slower than the slowest, and even turns itself off at anytime, during browsing and even during calls. I updated to 4.0.1 only to improve things a little bit. Still the proble

  • Need Help with Postioning Text Boxes

    Hello, I am fairly new to APEX, but I think I getting the hang of it. I am very much impressed with the functionality. I have a question and I hope someone can help me with it. I have a Diagram that looks like: X X X X X X X X X X The X's represent v

  • Key-up and down triggers not firing

    I have a multi-record block and want to go to the previous and next records in it when the user presses the up and down arrow keys. I thought this was default behavior, but the keys didn't do anything so I tried putting key-up and key-down triggers o

  • Wont print from printer friendly page

    i'm having trouble printing my printer friendly confermations from the state and goverment web sites. no problem just plain printing   when go to printer friendly page it want print

  • Using IDOC_WRITE_AND_START_INBOUND

    Hi,    I have problem in using function module IDOC_WRITE_AND_START_INBOUND. The idoc number is generated but the IDoc does not exists in the Database. When i debugged, i found that a select query for table TBD55 fails that raises an exception... So