"Syntax error in the MDX statement " in Process chain failure??Urgent pls

Hi Experts,
could any one suggest me the procedure to rectify the below problems in process chain?
1."Syntax error in the MDX statement "
2."Error when getting data (Error when getting data (AXI))"
Rgds,
BH

In which case it'll be that Access has a different date format to MySQL, and you're trying to push the string "'25-Apr-12 10:55 PM" into Access, which it's not understanding. To get around this, you need to treat your variable as a true date/time object, rather than a formatted string.
CFQueryParams should be used on absolutely every database platform, they'll stop your website being vulnerable to SQL Injection attacks for one, which at the moment you're wide open to. Replace your query with something like this:
<cfquery name="input_comments" datasource="#DSN#" username="#DSNUSER#" password="#DSNPASS#">
      INSERT INTO comments(
                         commenter,
                         comment,
                         datetime,
                         post_id
               VALUES(
                         <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.commenter#" />,
                         <cfqueryparam cfsqltype="cf_sql_varchar" value="#form.comment#" />,
                         now(),
                         <cfqueryparam cfsqltype="cf_sql_numeric" value="#form.post_id#" /> )
</cfquery>
The QueryParams will handle the data types for you, and should pass values around more safely and with fewer issues. Assuming you just want to store the current date and time you don't even need to get ColdFusion involved, as databases have their own functions for this. I believe Access' version is simply NOW(), so I've put that in your query.
Give the above a go.

Similar Messages

  • Hi - Process Chain Issue -  Urgent - pls help

    Hi All,
    When iam executing the Process chain, its coming out of the loop without finishing the processes.
    Its showing the overall status as green.
    But, if we dig in to log and see the message.. its showing "Communication buffer deleted from previous run".
    But, if i schedule the each processes manually, its successful.
    Nisha

    the log it shows :                                                  
    Diagnosis                                                Entries still exist in the communication buffer from the previous run of 
         the current metachain. Since the chain, meanwhile, has the 'G ' status,  
         the communication buffer was deleted.                                                                               
    System response                                                                                The buffer was deleted and is used for the current run.                                                                               
    Procedure                                                                               
    Procedure for System Administration

  • Where is the syntax error in my Insert statement?

    It says that there is a syntax error in my insert statement, pointing to the .ExecuteNonQuery() at the end:
    'Defining the activity ID from the datatable
    Dim ActivityID As Integer = DataTableActivities.Rows(0).Item(0)
    'Defining the calories from the datatable
    Dim calories As Decimal = (DataTableActivities.Rows(0).Item(3)) * (DurationNum.Value / 60)
    'Insert statement to add new training events
    Dim SqlQueryActivityInsert As String = "INSERT INTO tblTraining (RunnerID, ActivityID, Full_Name, Time, Calories_Burnt, Date) VALUES (@RunnerID, @ActivityID, @Full_Name, @Time, @Calories, @Date)"
    Dim SqlCommandActivity As New OleDbCommand
    With SqlCommandActivity
    .CommandText = SqlQueryActivityInsert
    .Parameters.AddWithValue("@RunnerID", LoginForm.UserIDlbl.Text)
    .Parameters.AddWithValue("@ActivityID", ActivityID)
    .Parameters.AddWithValue("@Full_Name", LoginForm.Full_Namelbl.Text)
    .Parameters.AddWithValue("@Time", DurationNum.Value)
    .Parameters.AddWithValue("@Calories", calories)
    .Parameters.AddWithValue("@Date", WeekPicker.Value)
    .Connection = conn
    .ExecuteNonQuery()

    Viorel is right.  The 'Date' field is probably throwing it off.  Date is a reserved word. 
    https://www.drupal.org/node/141051
    Putting square brackets [] around the field name should get it working for you.
    Knowledge is the only thing that I can give you, and still retain, and we are both better off for it.

  • Syntax error in the program SAPLSYMB

    Hi
    I have installed ECC6 on windows 2003 server  sqlserver 2005 as database. We are getting error at the time applying basis patch. The patch process is stopped at import_proper stage.
    When i try to execute any transaction , the error is "syntax error in the program SAPLSYMB". I have cleard the transaction log, still  the errro is same.
    When I try to relogin the error is same, I am unable to execute any transaction.
    Please do the needful
    Regards
    Prasanna.B.S

    Hellow,
    I have the same error, and I executed this command for 12 hours
    tp r3i SAPKB70017 ITP pf=/usr/sap/trans/bin/TP_DOMAIN_ITP.PFL tag=spam -Dclientcascade=yes -Drepeatonerror=8
    the message in cmd is
    earth\sapmnt\trans\tmp\SLOG0914.ITP.LOC is already in use (14474), I'm waiting
    2 sec (20090401065221). My name: pid 4188 on earth (dministrator)
    But this file (SLOG0914.ITP.LOC ) is in 0 kb, is this normally ?
    Please Help me
    Regards
    Graciela

  • Stopping the schema stats gathering process

    Hi,
    I have a large schema in my DB (7 TBs) on which I had triggered a UNIX background job to compute the statistics on that schema. The SQL which i had used was:
    EXEC DBMS_UTILITY.ANALYZE_SCHEMA('<<schema_name>>','COMPUTE');
    However, since the size of the schema is quite big, this stats computation process is running since the last 7 hours and I am not sure about the time it would take to finish with this process.
    My questions are as below:
    1. Is there any method to determine the status of this stats computation process?
    2. If I kill this background job because i now have to run other data loading jobs on the schema and I dont want them to error out because of the exclusive locks on those objects, will it affect the DB performance in any way?
    3. If i kill this background process, will the entire stats computation process be rolled back or would it be stopped at the place from where it was halted?
    Kindly advice.
    Thanks in advance.

    Hi,
    Thanks for the prompt response. I agree that i should be using dbms_stats and estimate for computing the schema stats. I re-analyzed the tables under the schema yeterday and hence i hope i should not face the incorrect cardinality info problem now.
    However, I am facing another problem with the DB now. As a result of the data loading operation on the table, i see that all the subsequent DML operations are now taking a long log time to complete, typically 30 mins for a 10 seconds operation earlier.
    What do you suggest is causing the problem and needs rectification?
    Thanks in advance.

  • How can I get  the MDX-statement which is generated in a query?

    Can I somehow get the MDX statement, which is generated when I create a Query via BeX Query Designer? I am using JCo to connect to BW (3.0b) and to execute MDX statements from a standalone JAVA-application. It would be very helpful to have the statements, so that I don't have to create them by myself.
    If this it not possible...is there any reference regarding the MDX statements, I could use?

    Hi Markus,
    The Query Designer generates no MDX, so you can't find any persisted MDX Statements. But you can do a trick, you can use the SAP BW OLE DB Provider in Excel. This Tool generates MDX Statements check this link:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/uuid/a06a51f3-0201-0010-8591-b742cfafd267
    I hope this helps.
    best regards
    Kai

  • 'Error at the end of form processing' - Adobeforms

    Hi All,
    I am facing an issue while opening travel request form in PDF with an error showing as 'Error at the end of form processing'.
    I checked all configurations from R/3 and everything seems to be fine.
    Appreciate for your valuable inputs for solving the issue.
    Thanks & Regards,
    Srujana.

    Hi,
    You provide some more details for the problem. It seems FP_JOB_CLOSE is returning some error. Check that once.
    Thanks,
    Nitin    

  • Syntax Error in the Query

    Dear All,
    Please tell me syntax error in the below query. When I'm going to write numeric number in this filed "$[ OVPM.DocNUm ]". It's working fine. But when I'm writing this it give me error.Please clear me where am wrong????I
    SELECT T0.[AcctNum] FROM VPM1 T0 WHERE T0.[DocNum] =$ [OVPM.DocNUm ]
    Regards
    Edited by: Anwar Ali Sohail on Sep 27, 2011 11:43 AM

    HI
    Try This
    SELECT T0.[CheckNum] FROM VPM1 T0  INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry WHERE T0.[DocNum] = $[OVPM.DocNum]
    OR
    SELECT T0.[AcctNum] FROM VPM1 T0  INNER JOIN OVPM T1 ON T0.DocNum = T1.DocEntry WHERE T0.[DocNum] = $[OVPM.DocNum]
    Edited by: kambadasan on Sep 27, 2011 4:26 PM

  • What are the varoius type of process chain errors how we can solve them.

    Hi,
    I  need to work with process chains maintainace , Can any body tell me what are the different type of process chain errors generelly we used to get ,how we can solve them . IF possible  please provide me any document also  so that i can solve my
    abnormal problems for process chain errors.
    Thanks in advance .

    Hi,
    1) Invalid characters while loading: When you are loading data then you may get some special characters like @#$%...e.t.c.then BW will throw an error like Invalid characters then you need to go through this RSKC transaction and enter all the Invalid chars and execute. It will store this data in RSALLOWEDCHAR table. Then reload the data. You won't get any error because now these are eligible chars done by RSKC.
    2) IDOC Or TRFC Error: We can see the following error at u201CStatusu201D Screen:Sending packages from OLTP to BW lead to errorsDiagnosisNo IDocs could be sent to the SAP BW using RFC.System responseThere are IDocs in the source system ALE outbox that did not arrive in the ALE inbox of the SAP BW.Further analysis:Check the TRFC log.You can get to this log using the wizard or the menu path "Environment -> Transact. RFC -> In source system".Removing errors:If the TRFC is incorrect, check whether the source system is completely connected to the SAP BW. Check especially the authorizations of the background user in the source system.Action to be taken:If Source System connection is OK Reload the Data.
    For more errors and solutions go thorugh the link below
    http://indelasap.blogspot.com/2009/04/sap-bi-production-support-issues.html
    Regards,
    Marasa.

  • Syntax error near the ['on']

    Can anyone please advise on how to resolve this issue, I created Dim load file but whenever I try loading the Dim it returns - syntax error near the ['on']
    thanks

    I don't see the issue
    Delimiter was set as comma, first line was ignored and it all loaded fine.
    Cheers
    John

  • GETWA_NOT_ASSIGNED error while running abap prog in process chain

    Hi.
    I am getting a runtime error GETWA_NOT_ASSIGNED while running an ABAP program in process chain.
    But when i execute pro in SE38 , it's not giving any error.
    Please any one can suggets what will be error.

    Hi,
      i also used to get error for a program executed through process chain but when it is executed in se38 it used to work... that is because my program try to access a application server folder and reads the file from there... the authorisation to this is not proper through process chain ..... once authorisation to the folder was given properly .. i am able to run...
      Such things can happen in your case also... Try to analyse the dump in st22.... what happened ...
    Regards
    vamsi

  • Cancel the scheduled jobs for process chains - urgent

    Hi,
    How do I cancel the scheduled jobs for process chains which are going to run tonight.
    thanks,
    Radha

    Hello,
    Go into transaction code RSPC and then select the particular process chain by going into the edit mode and in the menu...
    Look for Execution --> Remove from Schedule.
    Let me know if that answered your question.
    Thanks
    Dharma.

  • Adding mail ids & Removing mail ids from the last step of process chain

    Hi
    Can you please guied me how to do this.
    Adding mail ids & Removing mail ids from the last step of process chain.
    Thanks
    Subbu

    You can refer the following thread.
    email alert for process chain
    Still I would suggest to search the forum. There will be many threads and articles on this which can help you out.

  • Problem "The OLE DB provider for linked server reported an error. The provider reported an unexpected catastrophic failure Cannot fetch a row from OLE DB provider for linked server"

    hi
      i'd like to ask question about linked server.
      my linked server used to work but now when i try to select from linked server i was told "The OLE DB provider for linked server reported an error. The provider reported an unexpected catastrophic failure Cannot fetch a row from OLE DB provider
    for linked server"
      but in fact for test connection i was told "the test connection to the linked server succeeded".
      could  anyone help me? thank u very much
    best regards
    martin

    Hi, 
    In addition to Tracy's post we have to know those answers as well:
    * what provider are you using for the connection
    * what do you connect to
    for example, if someone try to connect to oracle using sql server provider then several simple queries are going to work probably OK, but once you are trying to use T-SQL or any complex SQL query then the errors are starting.
    please post the connection string (without the password!) + the query that you are trying to use.
    [Personal Site] [Blog] [Facebook]

  • Removing the "target server" from process chain jobs

    Dear SAP Community,
    Please note we are on BW version 3.5
    We have a very large number of process chains that are used to load data in the production environment. Many of those process chains have a "target server" specified, so that the jobs will run only on the central instance.
    A new application server has just been added to the environment, and we want to remove the "target server" definition so that the dispatcher will be free to load balance the process chain jobs.
    We can see the attributes for each process chain are stored in a table called RSPCCHAINATTR.
    Please let me know: can we update the value of field SERVER in table RSPCCHAINATTR, to set it to blank using SQL-PLUS ?
    And then can we run a /$sync to bring these changes up into the application layer ?
    This would save tons of time & manual effort, and it would set the target server to blank for all of the process chains at once, instead of clicking manually so many times to clear the value for each process chain.
    Please let me know if we can take this approach ? Is there any chance of the process chains becoming inactive by doing this ?
    We want to set the "target server" = blank in all cases, instead of manually clicking into each and every process chain.
    Please let me know, thanks.
    Keith Helfrich
    Edited by: Keith Helfrich on Aug 17, 2010 11:45 AM

    Check tcode RSBATCH, If I'm not wrong all process types are assigned to central server. Remove that server name and save.
    Now, If u execute process chain, system will prompt you assign server/host name. To skip this follow the below.
    Again use RSBATCH, under 'Background and Parallel Processes' tab, click 'Switch Off F4 Popup for Server/Host/Group', enter * (star) under Users for 'Users for Whom NO Server/Host/Group Popup Should be Processed'.
    Now, If u execute process chain, it should run on either of servers.
    Since u added Appln Server, best bet would be creating a server group. See the below link.
    How to run Process Chain jobs WITHOUT a target server

Maybe you are looking for

  • New tab next to current tab

    ok so... why has the simple process of browsing the web been made so damn annoying ? i want to open a new tab next to a current tab and what do i have to do for this to happen ? 1) i see if there is any option for it in the options - there is nothing

  • Transferring Elements to a new computer

    I downloaded Photoshop Elements a couple years ago and just bought a new Mac. Can I transfer Elements and Bridge to my new Mac? I put the files on a drive and transferred it to my new computer, but they aren't working right. Any suggestions?

  • CDF type to Unix Executable File

    When downloading a Comma Delimited File Database, Safari saves the download as a "Unix Executable File" and my database (Filemaker) will not recognize the file type. What is the problem (or solution)? Thanks in advance

  • Target Computer in F110

    Hi, Can anyone please advice what is the use of Target Computer in APP F110 during Schedule Payment proposal and Schedule Payment Run.Can it be possible that I can download the report or the payment list from this Target Computer. Right now I am gett

  • Audio/web conferencing feature

    Is there a way to integrate telephone and web users with ConnectNow which will allow both sides to communicate.  I have been running into problems where my web users can hear eveyone who is on telephone and on the web.  However, my telephone users ca