Error return from xmlparserBuffer

Hi,
I am in the process of converting the program from using IBM's
XML C++ parser to Oracle's C++ parser. I am usnig the
xmlparseBuffer to parse an in-memory message (with embedded
DTD). The following error was returned:
<1,1> LPX-00218: invalid character found
How do we investigate the problem based on this return error ?
Is there any other details that we (the application) need to
know ?
The same message was fine when using IBM's parser.
Alex
null

Alex Liu (guest) wrote:
: Hi,
: I am in the process of converting the program from using IBM's
: XML C++ parser to Oracle's C++ parser. I am usnig the
: xmlparseBuffer to parse an in-memory message (with embedded
: DTD). The following error was returned:
: <1,1> LPX-00218: invalid character found
: How do we investigate the problem based on this return error ?
: Is there any other details that we (the application) need to
: know ?
: The same message was fine when using IBM's parser.
: Alex
The "<1,1>" is the line,char location of the offending
character. If this doesn't help can you post the XML message you
are trying to parse?
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null

Similar Messages

  • Error return from JOB_SUBMIT / SUBMIT when running with another  username

    I am trying to run the program RSBDCSUB after setting up a BDC session.
    Due to our authorisations in the production environment I have to run this program under a generic user (l_ernam) that has the authorisations as most users do not.
    Here is the code I am using:
    CALL FUNCTION 'JOB_OPEN'
    EXPORTING
    jobname = l_jobname
    IMPORTING
    JOBCOUNT = l_jobcount
    CHANGING
    RET = l_ret
    EXCEPTIONS
    CANT_CREATE_JOB = 1
    INVALID_JOB_DATA = 2
    JOBNAME_MISSING = 3
    OTHERS = 4
    Submit RSBDCSUB And Return
    User l_Ernam
    Via Job l_Jobname Number l_Jobcount
    with mappe = l_mappe .
    CALL FUNCTION 'JOB_CLOSE'
    EXPORTING
    jobcount = l_jobcount
    jobname = l_jobname
    STRTIMMED = 'X'
    EXCEPTIONS
    CANT_START_IMMEDIATE = 1
    INVALID_STARTDATE = 2
    JOBNAME_MISSING = 3
    JOB_CLOSE_FAILED = 4
    JOB_NOSTEPS = 5
    JOB_NOTEX = 6
    LOCK_FAILED = 7
    OTHERS = 8
    When I run this with a restricted user I get a return of 8 from the submit rsbdcsub - has anyone seen this before and can you offer advice on how to solve it?.
    I have also tried using JOB_SUBMIT with the following settings instead
    CALL FUNCTION 'JOB_SUBMIT'
    EXPORTING
    authcknam = l_ernam
    jobcount = l_jobcount
    jobname = l_jobname
    REPORT = l_report
    VARIANT = l_variant
    EXCEPTIONS
    BAD_PRIPARAMS = 1
    BAD_XPGFLAGS = 2
    INVALID_JOBDATA = 3
    JOBNAME_MISSING = 4
    JOB_NOTEX = 5
    JOB_SUBMIT_FAILED = 6
    LOCK_FAILED = 7
    PROGRAM_MISSING = 8
    PROG_ABAP_AND_EXTPG_SET = 9
    OTHERS = 10
    and in this case get a return of 3 (INVALID_JOBDATA) - anyone any ideas as to how to resolve this?.

    Hello Caroline,
    I do not know whether this issue is resolved at your end. I faced a similar problem and found that User Type for the generic user(l_Ernam) was the cause.
    We had initially defined User Type for the generic user as a 'Communication' and it was giving return code 8 after SUBMIT.
    We later changed the User Type to 'System' and it worked as intended. Job was created under the name of the user who executed the main program and the steps added using the generic user(l_Ernam).
    Please note that the user who is running the main program will need authorization to add job steps using the generic user.
    With Kind Regards,
    Jatin.

  • Error Returned From Bapi 'BAPI_INSPECTIONPLAN_CREATE'

    hi
    I am using 'BAPI_INSPECTIONPLAN_CREATE' for creating inspection plan in QM.the bapi is returning error"Inspection characteristic cannot be uniquely assigned to one operation".I am using one operation and one characteristic.I am also providing operation id in both the structures for operation and characterisitcs.Can anyone suggest what the problem is?
    Edited by: abapuser on Oct 10, 2009 5:12 AM

    Hi
    There is Activity Field in BAPI1012_OPR_C  sturcture...
    Similay there is also activity field  BAPI1012_CHA_C sturcture.....
    assign same Activity No in Both sturcture...
    Check this Link  https://wiki.sdn.sap.com/wiki/display/Snippets/ABAP%20Program%20to%20upload%20QM%20Inspection%20Plan%20Using%20BAPI
    Regards
    ABG...

  • Error return from Host Command

    I use procedure below to run Win commands from stored procedure, Had found this last year by searching in this forum and it works fine.
    However this procedure lacks facility to return if command was succesful on OS.
    All I want is for Oracle to be able to pick up value of windows variable: %errorlevel% after command has been executed. If necessary I will include " echo %errorlevel% "in a batch file.
    I am patching up somehow but it is too slow. I am currently saving %errorlevel% in a txt file and then using sqlldr to load value in an Oracle table. But this takes about 40 seconds to execute (time needed to open a new session each time).
    I would rather have Java procedure pick up result of batch command directly.
    James
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED HOST AS
    import java.lang.*;
    import java.io.*;
    public class Host
    public static void executeCommand (String command, String etype) throws IOException
    String[] wFullCommand = {"C:\\winnt\\system32\\cmd.exe", "/y", "/c", command};
    String[] uFullCommand = {"/bin/sh", "-c", command};
    if (etype.toUpperCase().equals("W"))
    Runtime.getRuntime().exec(wFullCommand);
    else if(etype.toUpperCase().equals("U+"))
    Runtime.getRuntime().exec(uFullCommand);
    else if(etype.toUpperCase().equals("U"))
    Runtime.getRuntime().exec(command);
    CREATE OR REPLACE PROCEDURE Host_Command_Proc
    ( p_command IN VARCHAR2,
    p_etype IN VARCHAR2)
    AS
    LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String, java.lang.String)';
    /

    I use procedure below to run Win commands from stored procedure, Had found this last year by searching in this forum and it works fine.
    However this procedure lacks facility to return if command was succesful on OS.
    All I want is for Oracle to be able to pick up value of windows variable: %errorlevel% after command has been executed. If necessary I will include " echo %errorlevel% "in a batch file.
    I am patching up somehow but it is too slow. I am currently saving %errorlevel% in a txt file and then using sqlldr to load value in an Oracle table. But this takes about 40 seconds to execute (time needed to open a new session each time).
    I would rather have Java procedure pick up result of batch command directly.
    James
    CREATE OR REPLACE AND RESOLVE JAVA SOURCE NAMED HOST AS
    import java.lang.*;
    import java.io.*;
    public class Host
    public static void executeCommand (String command, String etype) throws IOException
    String[] wFullCommand = {"C:\\winnt\\system32\\cmd.exe", "/y", "/c", command};
    String[] uFullCommand = {"/bin/sh", "-c", command};
    if (etype.toUpperCase().equals("W"))
    Runtime.getRuntime().exec(wFullCommand);
    else if(etype.toUpperCase().equals("U+"))
    Runtime.getRuntime().exec(uFullCommand);
    else if(etype.toUpperCase().equals("U"))
    Runtime.getRuntime().exec(command);
    CREATE OR REPLACE PROCEDURE Host_Command_Proc
    ( p_command IN VARCHAR2,
    p_etype IN VARCHAR2)
    AS
    LANGUAGE JAVA
    NAME 'Host.executeCommand (java.lang.String, java.lang.String)';
    /

  • Error return from sleep

    By putting my Mac to sleep for a long time.
    He does not return and a message in several languages with a gray screen.
    reporting to restart it by pressing the power button.
    Note: Even when fully charged battery
    Can anyone tell me how to fix it?

    You are getting a Kernel Panic. I'd recommend reading the following articles about them and how to trouble shoot them. If you cannot figure it out you need to contact an AASP for repair.
    http://www.thexlab.com/faqs/kernelpanics.html
    http://docs.info.apple.com/article.html?path=Mac/10.6/en/8965.html
    http://reviews.cnet.com/8301-13727_7-10344626-263.html?tag=mfiredir
    http://www.index-site.com/kernelpanic.html
    http://support.apple.com/kb/HT1392

  • Photo upload failed. Error returned from Facebook: An unexpected error has occurred. Please try your request later

    I've been getting this error everytime I try to upload photos to the Facebook publishing service has anyone encountered this before? upload through flicker is fine though

    I am getting the same error. Did you have any luck getting this to work?

  • Strange error returned from smbtree

    when i type smbtree i get this:
    WORKGROUP
    \\ONTHEFRIDGE LinkStation HLAN 250GB
    [b]cli_rpc_pipe_open_noauth: rpc_pipe_bind for pipe \srvsvc failed with error NT_STATUS_UNSUCCESSFUL[/b]
    \\ONTHEFRIDGE\applications LinkStation Share Folder
    \\ONTHEFRIDGE\pictures LinkStation Share Folder
    \\ONTHEFRIDGE\development LinkStation Share Folder
    \\ONTHEFRIDGE\database LinkStation Share Folder
    \\ONTHEFRIDGE\share LinkStation Share Folder
    \\ONTHEFRIDGE\info LinkStation information
    \\ONTHEFRIDGE\lp Network Printer for Windows
    what does this error mean?
    when i booted up arch today i found myself unable to ping/connect to this NAS - is the error related?
    thanks.

    never mind the second issue - i forgot to comment out eth0 in rc.conf as specified in the networkmanager wiki, after i did that + rebooted i can see the NAS fine as well as mount the shares using autofs.
    still getting that error with smbtree though.

  • Pacman : returning error 16 from alpm_db_update

    Recently, yaourt behave oddly on my homeserver, outputting some truncated errors messages as if they were answers from a regex search. Long story short, I tried to fix the problem but did not yet succeeded, so maybe someone here will help me.
    What I tried :
    Use pacman instead of yaourt -> gave me a full error message "opening /var/lib/pacman/sync/core/dhcpcd-5.1.3-1/depends failed : No file or directory" . I am not sure the problem is package-related since I uninstalled and reinstalled it.
    Moreover when I tried pacman with -Scc and -Syy I had an error message about the core database. Then, with -Syu and --debug option, I had this:
    :: Synchronizing packages data...
    debug: failed to get lastupdate time for core
    debug: using 'core.db.tar.gz' for download progress
    debug: HTTP_PROXY: (null)
    debug: http_proxy: (null)
    debug: FTP_PROXY:  (null)
    debug: ftp_proxy:  (null)
    debug: connected to distrib-coffee.ipsl.jussieu.fr successfully
    downloading de core.db.tar.gz...
    Error: deleting core database failed
    debug: returning error 16 from alpm_db_update : removing entry from database failed
    Error: updating core failed (removing entry from database failed)
    Any idea ? Thanx in advance

    Have you already tried a different mirror?

  • SSRS Report Manager error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"

    Hi All,
    I am getting error "Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500"
    in one of my Test Environment when trying to run the SSRS 2012 report from report manager.
    Any clue why it is happening.
    Thanks Shiven:) If Answer is Helpful, Please Vote

    Hi All,
    Upon investigation found that there was no space (0 Byte is available) in E drive where underlying SQL DB is residing. 
    Once I cleared the space, report started working and above error was not displaying. 
    Thanks Shiven:) If Answer is Helpful, Please Vote

  • An Error Occurred During Report Processing - Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 12019

    When I run the report on production I got the following error message:
    Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the
    request on the server. The status code returned from the server was: 12019
    It hasn’t happen on Dev and Test before.                           
    I googled, The error is described as:
    12019 ERROR_INTERNET_INCORRECT_HANDLE_STATE
    The requested operation cannot be carried out because the
    handle supplied is not in the correct state.
    But I cannot find the solution for that. 
    Has it happend to you before? How to solve that?      

    Same behaviour here, Sharepoint 2013 with SSRS in integrated mode
    Error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status
    code returned from the server was: 12019

  • Sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0

    sys.webforms.page request manager server error exception:An unknown error occured while processing the request on server. The status code returned from the server was:0 We got this response(In firebug console) when we try to click on link (after leave webpage for 3 minuts ideal) which is AJAX based. Please reply ASAP because its urgent.

    Hi SP,
    Please check if the following web config appSettins value settings from SSRS server could fix the issue (Note, back up your original web config file before any modification).
    http://stackoverflow.com/questions/10911610/ssrs-webpage-error-status-code-500
    http://srinivasbn.blogspot.in/2013/09/syswebformspagerequestmanagerservererro.html
    http://connect.microsoft.com/SQLServer/feedback/details/782155/ssrs-2012-failed-with-win32-error-0x03e3
    If you have more questions about the SSRS error logs related to this issue, you can post in the SSRS forum for a better assistance with more experts.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlreportingservices
    Thanks
    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.

  • The value returned from the load function is not of type numeric  errors after migration to Coldfusion 11

    I am currently testing our website with CF11. It is currently working with CF8 however after migrating it to a new server running CF11 I have encountered the following error.
    The value returned from the load function is not of type numeric.
    The error occurred in
    D:/Applications/CFusion/CustomTags/nec/com/objects/address.cfc: line 263
    Called from D:/Applications/CFusion/CustomTags/nec/com/objects/contact.cfc: line 331
    Called from D:/Applications/CFusion/CustomTags/nec/com/objects/user.cfc: line 510
    Called from D:/Applications/CFusion/CustomTags/nec/com/objects/user.cfc: line 1675
    Called from D:/website/NECPhase2/action.validate.cfm: line 54
    261 : <cfif isNumeric(get.idCountry)>
    262 : <cfset rc = this.objCountry.setID(get.idCountry)>
    263 : <cfset rc = this.objCountry.load()>
    264 : </cfif>
    265 : <cfset this.sPostcode = get.sPostcode>
    Have there been any changes between CF8 and CF11 that could  cause this error?
    Does anyone have ideas?

    This is the code in file object file country.cfc (nec.com.objects.country):
    <cfcomponent displayname="Country object" hint="This is a Country object, it allows you to access and set values in the Country.">
    <!---
    // Construct this object
    --->
    <cfset this.objFunctions = CreateObject( 'component', 'nec.com.system.functions' )>
    <cfscript>
      this.idCountryID = 0;
      this.sCountryName = "";
      this.sISOCode = "";
      this.sDHLCode = "";
      this.iErrorID = "";
    </cfscript>
    <!---
    // The following functions are the setters and getters. offering us a better way to get
    // at the contents of the object
    --->
    <!---
    // Getters
    --->
    <cffunction name="getID" displayname="Get ID" returntype="numeric" output="false" hint="This returns the ID of the current item.">
      <cfreturn this.idCountryID>
    </cffunction>
    <cffunction name="getsCountryName" displayname="Get sCountryName" returntype="string" output="false" hint="This gets the sCountryName value of this item.">
      <cfreturn this.sCountryName>
    </cffunction>
    <cffunction name="getsISOCode" displayname="Get sISOCode" returntype="string" output="false" hint="This gets the sISOCode value of this item.">
      <cfreturn this.sISOCode>
    </cffunction>
    <cffunction name="getsDHLCode" displayname="Get sDHLCode" returntype="string" output="false" hint="This gets the sDHLCode value of this item.">
      <cfreturn this.sDHLCode>
    </cffunction>
    <cffunction name="iError" displayname="Get iError" returntype="numeric" output="false" hint="This returns the iError of the current item.">
      <cfreturn this.iError>
    </cffunction>
    <!---
    // Setters
    --->
    <cffunction name="setID" displayname="Set ID" returntype="boolean" output="false" hint="This sets the ID value of this item.">
      <cfargument name="idCountryID" required="true" type="numeric" displayname="ID" hint="The ID to use.">
      <cfset this.idCountryID = arguments.idCountryID>
      <cfreturn true>
    </cffunction>
    <cffunction name="setsCountryName" displayname="Set sCountryName" returntype="boolean" output="false" hint="This sets the sCountryName value of this item.">
      <cfargument name="sCountryName" required="true" type="string" displayname="sCountryName" hint="The sCountryName to use.">
      <cfset this.sCountryName = arguments.sCountryName>
      <cfreturn true>
    </cffunction>
    <cffunction name="setsISOCode" displayname="Set sISOCode" returntype="boolean" output="false" hint="This sets the sISOCode value of this item.">
      <cfargument name="sISOCode" required="true" type="string" displayname="sISOCode" hint="The sISOCode to use.">
      <cfset this.sISOCode = arguments.sISOCode>
      <cfreturn true>
    </cffunction>
    <cffunction name="setsDHLCode" displayname="Set sDHLCode" returntype="boolean" output="false" hint="This sets the sDHLCode value of this item.">
      <cfargument name="sDHLCode" required="true" type="string" displayname="sDHLCode" hint="The sDHLCode to use.">
      <cfset this.sDHLCode = arguments.sDHLCode>
      <cfreturn true>
    </cffunction>
    <!---
    // Clear, to empty out the contents of this object
    --->
    <cffunction name="clear" displayname="Clear items Details" returntype="boolean" output="false" hint="Clears out all of the items details.">
      <cfscript>
       this.sCountryName = "";
       this.sISOCode = "";
       this.sDHLCode = "";
       this.iErrorID = "";
      </cfscript>
      <cfreturn true>
    </cffunction>
    <!---
    // The following functions deal with the load, save and deleting of objects
    --->
    <!---
    // Load
    --->
    <cffunction name="load" displayname="Load items details" returntype="numeric" output="false" hint="This loads in all the information about an item.">
      <cfset rc = this.clear()>
      <!---
      // First of all we need to get the name of the data source we are going to be using
      --->
      <cfscript>
      objDS = CreateObject("component","nec.com.system.settings");
      sDatasource = objDS.getDatasource();
    </cfscript>
      <!---
      // Check to see if it exists
      --->
      <cftry>
       <cfquery name="checkID" datasource="#sDatasource#">
        SELECT idCountryID
        FROM tblCountry
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("load: checkID: '#this.idCountryID#' #cfcatch.detail#");
        </cfscript>
        <cfset this.iErrorID = iErrorID>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfif not checkID.recordCount>
       <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         if(isDefined("session.afr")){
          whichOne = "#session.afr.getsAFRNumber()#";
         } else {
          whichOne = "";
         iErrorID = objError.addError("A Country with that id doesn't exists.[#this.idCountryID#][#whichOne#]");
        </cfscript>
       <cfset this.iErrorID = iErrorID>
       <cfreturn iErrorID>
      </cfif>
      <!---
      // If we got past all then then load in the details
      --->
      <cftry>
       <cfquery name="get" datasource="#sDatasource#">
        SELECT idCountryID, RTRIM(sCountryName) as sCountryName, RTRIM(sISOCode) as sISOCode, RTRIM(sDHLCode) as sDHLCode
        FROM tblCountry
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("load: get: #cfcatch.detail#");
        </cfscript>
        <cfset this.iErrorID = iErrorID>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfset this.idCountryID = get.idCountryID>
      <cfset this.sCountryName = get.sCountryName>
      <cfset this.sISOCode = get.sISOCode>
      <cfset this.sDHLCode = get.sDHLCode>
      <cfset this.iErrorID = "">
      <cfreturn true>
    </cffunction>
    <!---
    // Save
    --->
    <cffunction name="save" displayname="Save items Details" returntype="numeric" output="false" hint="Saves (to some source) the current details for the ID of the item.">
      <!---
      // First of all we need to get the name of the data source we are going to be using
      --->
      <cfscript>
      objDS = CreateObject("component","nec.com.system.settings");
      sDatasource = objDS.getDatasource();
    </cfscript>
      <!---
      // Now check to see if ithat ID exists
      --->
      <cftry>
       <cfquery name="checkID" datasource="#sDatasource#">
        SELECT idCountryID
        FROM tblCountry
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("save: checkID: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <!---
      // If it doesn't exist, then add the record, otherwise update the record
      --->
      <cfif not checkID.recordCount>
       <cfreturn this.add()>
      <cfelse>
       <cfreturn this.update()>
      </cfif>
    </cffunction>
    <!---
    // Add
    --->
    <cffunction name="add" displayname="Add Country" returntype="numeric" output="false" hint="This adds a Country.">
      <!---
      // Check to see if that a different item isn't already using the same unique details
      --->
      <cftry>
       <cfquery name="checkUnique" datasource="#sDatasource#">
        SELECT idCountryID
        FROM tblCountry
        WHERE sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#'
        OR sISOCOde = '#this.objFunctions.scrubText(this.sISOcode)#'
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("add: checkUnique: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfif checkUnique.recordCount>
       <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("A Country with that name or ISO code already exists. idCountryID=#checkUnique.idCountryID#");
        </cfscript>
       <cfreturn iErrorID>
      </cfif>
      <cftry>
       <cfquery name="add" datasource="#sDatasource#">
        SET nocount on
        INSERT INTO tblCountry(sCountryName, sISOCode, sDHLCode)
        VALUES('#this.objFunctions.scrubText(this.sCountryName)#','#this.objFunctions.scrubText(t his.sISOCode)#','#this.objFunctions.scrubText(this.sDHLCode)#')
        SELECT @@identity as autoID
        SET nocount off  
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("add: add: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfreturn add.autoID>
    </cffunction>
    <!---
    // Update
    --->
    <cffunction name="update" displayname="Update Country" returntype="numeric" output="false" hint="This updates a Country record.">
      <!---
      // Check to see if that a different item isn't already using the same unique details
      --->
      <cftry>
       <cfquery name="checkUnique" datasource="#sDatasource#">
        SELECT idCountryID
        FROM tblCountry
        WHERE (sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#'
        OR sISOCOde = '#this.objFunctions.scrubText(this.sISOcode)#')
        AND idCountryID <> #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("update: checkUnique: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfif checkUnique.recordCount>
       <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("Another Country with that name already exists. idCountryID=#checkUnique.idCountryID#");
        </cfscript>
       <cfreturn iErrorID>
      </cfif>
      <!---
      // Attempt to update the record to the datasource
      // if this fails for any reason then we submit an error message
      // to the error component and return the ID of the error
      --->
      <cftry>
       <cfquery name="update" datasource="#sDatasource#">
        UPDATE tblCountry
        SET sCountryName = '#this.objFunctions.scrubText(this.sCountryName)#',
        sISOCode = '#this.objFunctions.scrubText(this.sISOCode)#',
        sDHLCode = '#this.objFunctions.scrubText(this.sDHLCode)#'
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("update: update: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfreturn this.idCountryID> 
    </cffunction>
    <!---
    // Delete
    --->
    <cffunction name="delete" displayname="Delete Country" returntype="numeric" output="false" hint="This deletes a Country record.">
      <!---
      // First of all we need to get the name of the data source we are going to be using
      --->
      <cfscript>
      objDS = CreateObject("component","nec.com.system.settings");
      sDatasource = objDS.getDatasource();
    </cfscript>
      <!---
      // Now check to see if ithat ID exists
      --->
      <cftry>
       <cfquery name="checkID" datasource="#sDatasource#">
        SELECT idCountryID
        FROM tblCountry
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("delete: checkID: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfif not checkID.recordCount>
       <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("A Country with that id doesn't exists, delete failed.");
        </cfscript>
       <cfreturn iErrorID>
      </cfif>
      <!---
      // Now check to see if there are any dependancies, if so we can't delete the item
      --->
      <cftry>
       <cfquery name="checkDependancies" datasource="#sDatasource#">
        SELECT idCountry
        FROM tblAddress
        WHERE idCountry = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("delete: checkDependancies: idCountry: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfif checkDependancies.recordCount>
       <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("That Country is being used by an address, delete failed.");
        </cfscript>
       <cfreturn iErrorID>
      </cfif>
      <!---
      // Now attempt to remove the record.
      // if this fails for any reason then we submit an error message
      // to the error component and return the ID of the error
      --->
      <cftry>
       <cfquery name="delete" datasource="#sDatasource#">
        DELETE FROM tblCountry
        WHERE idCountryID = #this.idCountryID#
       </cfquery>
       <cfcatch>
        <cfscript>
         objError = CreateObject("component","nec.com.system.errors");
         iErrorID = objError.addError("delete: delete: #cfcatch.detail#");
        </cfscript>
        <cfreturn iErrorID>
       </cfcatch>
      </cftry>
      <cfreturn this.idCountryID>
    </cffunction>
    </cfcomponent>

  • Why do I get a 'Certutil: A referral was returned from the server' error when trying to publish my renewed Offline Root CRL to AD?

    Hi,
    I renewed my Offline Root CA and now trying to publish the CRL to AD on my Sub Issuing CA with the Certutil -dspublish command, however I get a 'Certutil: A referral was returned from the server' error.  Kinda makes sense cause the Offline Root CA is
    not on the network, so then how do I publish my renewed CRL to AD given this?
    Thanks for your help! SdeDot

    Looks like your CRL do not include Active Directory container specification and certutil don't know where to publish the CRL.
    Does root CA define LDAP url in CDP extension? If not, then you don't need to publish CRL in Active Directory, because no one will use it.
    Vadims Podāns, aka PowerShell CryptoGuy
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell File Checksum Integrity Verifier tool.

  • Goods Return from GRPO to backdate with error.

    Dear all,
    I've got a problem from copying Goods Return from GRPO to the backdate, for example, GRPO Posting Date is '2011-12-11' and Return Posting Date is '2011-11-11', the system threw the below error:
    Reconciliation date must be on or after the last posting date for transactions selected for reconciliation   [Message 3821-3]
    I am using B1 8.82 PL00, the error never come before in older versions of B1.
    Please help me,
    Many thanks,
    Doan

    Hi Doan,
    Thanks for your answer.
    You're right, I can backdate the DocDate, but what matters is the posting date because of VAT reports.
    This way, the VAT is due on a previous date, and now it cannot be issued correctly and VAT reports are all wrong.
    This never happened before 8.82, why now?...
    Regards,
    Jorge

  • Error during Custom Build - error PRJ0019: A tool returned an error code from "Performing Custom Build Step"

    Hi All,
    I was trying to develop C++ web service using GShop with Visual Studio 2005.I refered a tutorial :-
    http://guruce.com/blogpost/hosting-webservices-on-windows-embedded-compact-windows-ce-using-gsoap .
    AS per the tutorial i proceeded. But, i stuck-up when making a custom build with Helloworld.wsdl.Here is the output :
    1>------ Rebuild All started: Project: HelloWorldWebService, Configuration: Debug Pocket PC 2003 (ARMV4) ------
    1>Deleting intermediate and output files for project 'HelloWorldWebService', configuration 'Debug|Pocket PC 2003 (ARMV4)'
    1>Performing Custom Build Step
    1>'D:\Test' is not recognized as an internal or external command,
    1>operable program or batch file.
    1>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    1>Build log was saved at "file://d:\Test Code\HelloWorldWebService\HelloWorldWebService\Pocket PC 2003 (ARMV4)\Debug\BuildLog.htm"
    1>HelloWorldWebService - 1 error(s), 0 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    As given in the tutorial i kept my custom build command line as : -
    $(SolutionDir)\gsoap-2.8\gsoap\bin\win32\wsdl2h.exe -s $(InputPath) -o $(ProjectDir)$(InputName).h
    and outpouts : $(InputName).h
    I kept GSHOP in the project filder :- D:\Test Code\HelloWorldWebService
    Kindly help.
    Jyotiranjan

    Hi Jyotiranjan,
    I’m glad to hear that you got it working.
    Thank you for sharing your solutions
    experience here. It will be very beneficial for other community members who
    have similar questions.
    Best regards,
    Lucy
    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

Maybe you are looking for

  • Unable to deploy Web App in Exploded format

    Using WLS 6.1 sp2, I am unable to deploy a web application successfully using the web app "ora" from http://www.thejspbook.com/examples.jspbook.zip. I've moved the /ora directory under the /WEB-INF/applications directory. The error I am getting is: j

  • Loading/watching a movie on ipod

    I purchased a movie from the itunes store and then I made sure the movie was synced to my ipod. This work and the movie names appears on the ipod under movies. I select it and it goes to a black screen and the white icon appears and says it is loadin

  • [Resolved]VO on Ref Cursor - attempt to save = RowNotFoundException

    I have a view object created from a ref cursor following 27.8.4 in the Oracle Application Development Framework Developer's Guide for Forms/4GL Developers. Using JDev 10.1.2 (yes, old version, but is consistent with all applications on current app se

  • Opacity Issues, 3D enabled on layer Opacity does not work, turn it off and it functions normally.

    I have a PSD/Text layer with 3D selected, Scale and Opacity are set. The layer in photoshop is a text layer, if this why it is not allowing transparency? Here is a screen shot. But if I turn off 3D it will function just fine... https://www.dropbox.co

  • Camera connection kit ipad 2 funktioniert nicht

    brauche Hilfe, mein Ipad nimmt weder meine Kamera noch Fotos über das Camera Connection Kit an, wer kann mir helfen? was mache Ich falsch?