Error when creating a description field. MySQL syntax to use?

I'm creating a form which has a description field in it. I created this form with many fields. However I then got an error and decided to limit the form to only 2 fields. These 2 fields (user and title) insert with no problem. However when I added the description field into the mix. I gat the same error I had previously gotten.
Error:
Internal error.
Developer Details:
tNG_fields.getFakeRecordset:
SQL error: Error creating temporary table:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc TEXT, job_id TEXT)' at line 1
SQL:
CREATE TEMPORARY TABLE KT_fakeRS_20080204 (client_id TEXT, name TEXT, desc TEXT, job_id TEXT) (FIELDS_FAKE_RS_ERROR)
tNG Execution Trace - VIEW
* tNG_insert.executeTransaction
o STARTER.Trigger_Default_Starter
* tNG_insert.getRecordset
* tNG_insert.getLocalRecordset
* tNG_insert.getFakeRecordset*
I'm using the "Text" syntax for the field "desc" (description)
What am I doing wrong? Do I need to define the table row in a different way?

Hi,
I am working on an image gallery using the tutorials.
I used the sql
SELECT *,
rand() as random_number
FROM image_img
ORDER BY random_number DESC LIMIT 1
on my default.php page but on preview i get the message
You have an error in your SQL syntax near 'LIMIT 0, 10' at line 1
I tried the solution above by removing the desc limit.
I got the same prob.
I will like to know how best to tackle this.
Thanks
Yomi

Similar Messages

  • Error when Create User Defined Field

    Hi all, i got an error when create UDF
    Attempted to read or write protected memory. This is often an indication that other memory is corrupt.
    Here is part of my code
    oUserFieldMD.Name = fieldname
            oUserFieldMD.Description = fielddesc
            oUserFieldMD.Type = fieldtype
            oUserFieldMD.DefaultValue = defaultValue.ToString()
            If fieldtype <> SAPbobsCOM.BoFieldTypes.db_Date Then
                oUserFieldMD.Size = fieldlength
                oUserFieldMD.EditSize = fieldlength
            End If
            If fieldtype = SAPbobsCOM.BoFieldTypes.db_Float Then
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_Price
            Else
                oUserFieldMD.SubType = SAPbobsCOM.BoFldSubTypes.st_None
            End If
            oUserFieldMD.TableName = tablename
            lRetVal = oUserFieldMD.Add()
            prgbar.Value = prgbar.Value + 1
            If (lRetVal <> 0) Then
                msgs.Add(tablename & " - " & fieldname & " : " & oCompany.GetLastErrorDescription())
            Else
                msgs.Add(tablename & " - " & fieldname & " : successfully created!")
            End If
    the error come when reach lRetVal = oUserFieldMD.Add()
    what is wrong with my code ?
    thanks.

    This could be a x64/x86 problem. Try following this thread
    [GetCompanyService|GetCompanyService] and recompile your code for the platform you need.

  • Syntax error when creating a user-defined table type in SQL Server 2012

    Why am I getting a syntax error when creating a user-defined table type in SQL Server 2014?
    CREATE TYPE ReportsTableType AS TABLE 
    ( reportId INT
    , questionId INT
    , questionOrder INT );
    Results:
    Msg 156, Level 15, State 1, Line 1
    Incorrect syntax near the keyword 'AS'.

    Hope these posts could help, 
    https://social.msdn.microsoft.com/Forums/sqlserver/en-US/37a45a9a-ed8c-4655-be93-f6e6d5ef44be/getting-incorrect-syntax-while-creating-a-table-type-in-sql-server-2008-r2?forum=transactsql
    Regards, Dineshkumar,
    Please Mark as Answer if my post answers your question and
    Vote as Helpful if it helps you

  • Error when add a custom field to source 2LIS_12_VCHDR

    Hi Experts,
    I'm trying add a custom field to source 2LIS_12_VCHDR. The fields are in LIKP table's append. That are
    zz fields. I can see the fields in MCLIKP structure, but I can't see these fields in LBWE transacction when I try update the structure MCLIKP. I don't know if this last is important because when I replicate of the source the fields, they are visible in BW.
    The problem is when I try activate the transfer structure. I Can add the fields from the data source to the transfer structure but If try activate the source the error is:
    "Error when creating transfer structure /BIC/CCBA2LIS_12_VCHDR in source system XXXX"
    I'm forgetting some step?
    somebody know other way for do it?
    thanks for your help.
    Manuel.

    Hi
    May be the datasource is not active, do the following obviously in development
    goto LBWE and click on your datasource; system will ask you for a transport request number give it a name. now save the datasource.
    replicate and activate your t/r
    hope this helps
    Regards

  • Error when create purchase order

    Hi all,
    I have a strange error when create po. it is display : Please enter item number greater than 0.that only a vendor and a material.I check the vendor and the material is same as other vendor and materials.if i first input the vendor and input the material then display message : Please enter item number greater than 0,but i can't input the item number. if i first input material and enter,then input vendor the system is ok. I check configer is ok. and other vendor , material also ok.
    thanks to reply.
    james

    Hi,
    Go to SPRO-Materials Management-Purchasing-Purchase Order-Define Document Types..
    Select your doc type which you are selcting at the time of PO creation..
    Say for e.g. NB.
    Now you have to maintain " Item Number Interval" as 10 in front of your doc type.
    This option is just after "Document Type Description".
    Now save and check.
    Cheers...
    Utsav..

  • Error when creating billing / accounting document with VF01

    Hi All,
    When I use VF01 to create an invoice with reference to a LF D/N, I got the following error after saving.
    "An exchange rate type is not defined for country CN
    Message no. FF 802". And billing document is created but with no accounting document.
    I checked the exchange rate type is defined. but I can not find the place where I can assign to the specific country.
    Best Regards
    Jean

    Thanks for your help.
    Hi Dave,
    I checked in S_BCE_68000174, it has been already assigned.
    Hi Ferry,
    In FTXP, the tax code has been maintained.
    And you are right, when I maintain the field KURST in table T005, it is ok. But I am confused in 4.6C, the field KURST can be maintained by T-code OY01, but in 470, exchange rate type cannot be found in OY01. Where can I set in 470?  And why in 470, even field KURST is empty in table T005, but there is no such error when creating billing document?
    Many Thanks
    Jean

  • "Initial column cannot be generated" error when creating a planning book

    Hi,
    I have an error when creating a planning book with the planning book wizard. In the tab "data view", I enter values for the "Visible" and "Input" fields and validate. The following error is generated: "Initial column cannot be generated" and then "Maintain the time for the 'column visible from' field". I tried with different dates, and get the same error.
    I am running SCM 5.0.
    Any help would be greatly apreciated.
    Regards,
    Mikael.

    Hi,
    Generally these error come when we manually enter the value in the Visible and Input column. Instead we should try select value from the Drill down options which gets generated based on the Time Bucket Profile you have selected as input for Planning Horizon.

  • Error when creating index with parallel option on very large table

    I am getting a
    "7:15:52 AM ORA-00600: internal error code, arguments: [kxfqupp_bad_cvl], [7940], [6], [0], [], [], [], []"
    error when creating an index with parallel option. Which is strange because this has not been a problem until now. We just hit 60 million rows in a 45 column table, and I wonder if we've hit a bug.
    Version 10.2.0.4
    O/S Linux
    As a test I removed the parallel option and several of the indexes were created with no problem, but many still threw the same error... Strange. Do I need a patch update of some kind?

    This is most certainly a bug.
    From metalink it looks like bug 4695511 - fixed in 10.2.0.4.1

  • Vehicle Scheduling Error:Error when creating transport structures in live C

    HI Gurus,
    We have one background job defined for Vehicle scheduling, which shows completed successfully but in log it says that :
    : Error when creating transport structures in liveCache and Not possible to schedule shipment in the planning horizon.
    My planning horizon is for 90 days from current date and demand horizon is for 30 days.
    I have checked the VS profile and i dont find any problem with profile.
    Can you please help me in finding what exaclty went wrong
    Thanks,
    AMol

    Try This..
    1. Open the crystal client on your local machine and import that particular report.
    2. Do Database -> Verify Database. Then refresh the report on your PC and make sure that it returns data as expected.
    3. Export it back to repository and try scheduling it again. You can verify through CMC for Crystal Reports under " Database Configuration" property to make sure it points to the right ODBC.
    Let us know.

  • Error when creating a folder ,iviews in the portal

    Dear sap gurus ,
    I m facing a error when  creating a   Folder or an iview in my portal i'm using EP 7.0 sp11 ,The error is :
    Portal Runtime Error
    An exception occurred while processing a request for :
    <b>iView : pcd:portal_content/com.sap.pct/admin.templates/iviews/editors/com.sap.portal.defaultFolderWizard
    Component Name : com.sap.portal.admin.defaultwizards.DefaultFolderWizard
    SQLException is not transient, error code = 1654, sql state = 72000 Batch rolled back. Caused by java.sql.BatchUpdateException: ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:343) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10698) at com.sap.sql.jdbc.basic.BasicPreparedStatement.executeBatch(BasicPreparedStatement.java:263) at com.sap.sql.jdbc.oracle.Oracle10gPreparedStatement.executeBatch(Oracle10gPreparedStatement.java:100) at com.sap.sql.jdbc.direct.DirectPreparedStatement.executeBatch(DirectPreparedStatement.java:1129) at com.sap.sql.jdbc.common.CommonPreparedStatement.executeBatch(CommonPreparedStatement.java:991) at com.sap.engine.services.dbpool.wrappers.StatementWrapper.executeBatch(StatementWrapper.java:270) at com.sapportals.portal.pcd.pl.AttributeHeadersTable.insert(AttributeHeadersTable.java:259) at com.sapportals.portal.pcd.pl.PlObject.save(PlObject.java:518) at com.sapportals.portal.pcd.pl.PlContext.createSubcontext(PlContext.java:544) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildOnPersistence(XfsContext.java:1374) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChildAndNotify(XfsContext.java:1128) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createChild(XfsContext.java:1087) at com.sapportals.portal.pcd.gl.xfs.XfsContext.createSubcontext(XfsContext.java:843) at com.sapportals.portal.pcd.gl.xfs.BasicContext.createBasicSubcontext(BasicContext.java:190) at com.sapportals.portal.pcd.gl.PcdPersContext.createSubcontext(PcdPersContext.java:191) at com.sapportals.portal.pcd.gl.PcdFilterContext.filterCreateSubcontext(PcdFilterContext.java:254) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:147) at com.sapportals.portal.pcd.gl.PcdGlContext.createSubcontext(PcdGlContext.java:440) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:624) at com.sapportals.portal.pcd.gl.PcdProxyContext.createSubcontext(PcdProxyContext.java:619) at com.sap.portal.admin.wizard.folderwizardpanes.SavePane.doAfterSubmit(SavePane.java:59) at com.sapportals.admin.wizardframework.core.WizardInstance.doPost(WizardInstance.java:356) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:174) at com.sapportals.admin.wizardframework.core.WizardInstance.doWizard(WizardInstance.java:99) at com.sapportals.admin.wizardframework.AbstractDynamicWizard.doContent(AbstractDynamicWizard.java:98) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:522) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:405) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:160) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170) .
    Exception id: 10:50_23/11/07_0005_16892850
    See the details for the exception ID in the log file</b>
    Thanks and Regards,
    sathya

    Hi Sathya
    The following line in your log tells you what is wrong:
    ORA-01654: unable to extend index SAPSR3DB.SYS_C004057 by 128 in tablespace PSAPSR3DB
    This is a configuration that you or the dba people need to do. The first thing I would check is if autoextend is on/off on your tablespace PSAPSR3DB. If it's 'off' you either need to put it to 'on' or manually extend the size of your tablespace depending on how much harddrvive space you have to play with. Here is a more detailed solution on how to do it:
    Oracle Error : ORA-01654: unable to extend index string.string by string in tablespace string
    Cause: Failed to allocate an extent of the required number of blocks for an index segment in the tablespace indicated.
    Action: Use ALTER TABLESPACE ADD DATAFILE statement to add one or more files to the tablespace indicated.
    Br
    Göran

  • Error when converting a numeric field to XML

    Hi,
            When i run the Adobe intractive form,i am getting following exception
    "Error when converting a numeric field to XML"
    Anyone plz suggest
    Regards,
    vinoth

    Hi Vinoth Raja,
    For resolving the following exception
    "Error when converting a numeric field to XML"
    You have to follow the below link:-
    http://www.saptechies.com/error-when-converting-numeric-field-xml/
    May be it will help you
    Regards,
    Sushma Yadav

  • Error when creating a FDM application on SQL Server 2005

    Hi,
    we are getting this error when creating a FDM application on SQL Server 2005
    Error: EPMCSS-07003: Failed to validate identity. Invalid identity . Check identity.[SET_ROLES_LIST]
    We are using Windows System Integration although we have also tested with sa user.
    Any ideas?
    Thanks

    Based on the error message it appears to be having a Shared Services issue. Verify that the "ADMIN" account is being used for the HSS connection and that you are using "ADMIN" to create the application and see if the same error is returned.

  • Error when creating a webpart page in site pages - Sharepoint 2013

    Hi,
    I am getting Unexpected error when creating a new webpart page in site pages on sharepoint 2013 site.
    I have no clue on this.
    Any help is much appreciated.
    Thank in advance.
    Smile Always

    Hi Smile,
    For troubleshooting this issue, let's verify the followings:
    Whether you can create wiki pages well.
    Whether this issue occurs for other sties.
    Whether all users have this issue. Please test with Site administrator, compare the result.
    As Naveen said, please check the log file to find more information about this issue. The path of the log file is: C:\Program Files\Common Files\microsoft shared\Web Server Extensions\15\LOGS.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Error when Creating a ServiceClientFactory instance JAVA API

    When invoking Assembling a PDF document  quick start I'm having a compilation error when creating a ServiceClientFactory instance:
    //Create a ServiceClientFactory instance
    ServiceClientFactory myFactory = ServiceClientFactory.createInstance(connectionProps);
    The error is: The type com.adobe.idp.Context cannot be resolved. It is indirectly referenced from required .class files
    All the required jars are a path.
    What esle can be a problem ?
    Thanks, Yan

    Since you are using SOAP, you need to have the AXIS jars available.  They are in the LiveCycle_ES_SDK\client-libs\thirdparty directory:
    activation.jar (required for SOAP mode)
    axis.jar (required for SOAP mode)
    commons-codec-1.3.jar (required for SOAP mode)
      commons-collections-3.1.jar  (required for SOAP mode)
    commons-discovery.jar (required for SOAP mode)
    commons-logging.jar (required for SOAP mode)
    dom3-xml-apis-2.5.0.jar (required for SOAP mode)
    jaxen-1.1-beta-9.jar (required for SOAP mode)
    jaxrpc.jar (required for SOAP mode)
    log4j.jar (required for SOAP mode)
    mail.jar (required for SOAP mode)
    saaj.jar (required for SOAP mode)
    wsdl4j.jar (required for SOAP mode)
    xalan.jar (required for SOAP mode)
    xbean.jar (required for SOAP mode)
    xercesImpl.jar (required for SOAP mode)

  • Error when creating a user - IAM-3010183 : An error occurred while checking if a user already exists with the Common Name generated.

    Error when creating a user - IAM-3010183 : An error occurred while checking if a user already exists with the Common Name generated.

    in OIM 11g R2
    Message was edited by: 2b3c0737-074f-48d0-a760-e24e3ed9a37c

Maybe you are looking for

  • Email address is already verified for another Apple ID.

    help...how do i know what apple id is using my email address? i've manage to change the email address for my apple id with a different email address which is verified. but i wanna know what apple id (other than the one i use to log in to icloud itune

  • How do I print the Outline view only?

    How do I print the black and white Outline view only? I pasted the Outline to a new layer, hid all other layers, but the color Preview view still printed.

  • TS1368 Cannot connect iTunes

    Can anyone help me because I sign out the apple ID that I'm using and I want to sign in new apple iD when I'm signing in it says cannot connect to iTunes store. So i tried to put back the old apple id but still not connecting.Even my app store not wo

  • How do I get the GAL in OWA to show up in my Outlook 2007 contacts list?

    How do I get the GAL in OWA to show up in my Outlook 2007 contacts list? Is there a directory server address I can use to set up a new address book?

  • Fail to restor

    Hello, I'm a newbie here... Maybe someone could help me out with my problem for the ipod shuffle. I tried to restor it to factory but getting error message. I just download the new ipod software update 2006-01-10. Im able to bring up the software fin