ERROR:  parser: parse error at or near "re"

hi Experts,
I've an update statement that does - update scene set text = 'You're right' where id = 196 and ref = 10017;
My sql statement:
sql = "update scene set text = '"+c_text+"' where id = "+c_id+" and ref = "+c_ref+";";
My error:
ERROR: parser: parse error at or near "re"
Please offer ur suggestions on how should I update a text with a ' symbol in my word - You're. Thanks.
Dawn.

hi All,
I've found the solution. I can add a backlash so that it'll be recognised.
Eg: You\'re right
Dawn.

Similar Messages

  • Multi-value parameter report - error : Incorrect syntax near ',' with multi-valued parameter in SSRS

    Hey,
    I created a report in Reporting Services  where I added multi-value parameter
    ( Filter).  When I run my report, and try to select more than one parameter, I get an error:  Incorrect syntax near ','
    then i put in parameter expression :  join(Parameters!Filter.Value,",")  
    and add : dbo.ufnSplit  before calling parameter in query :
    >>>  set @valwhere = 'table.field IN (select * from dbo.ufnSplit(' + @Filter + ' , '',''))'
    but i still have errors : incorrect syntax near 'text'  which is the second value of the picklist of the parameter,
    Please Any idea ?
    Thanks !!

    I have sometimes had to collate as default with the SQL query
    currently I've just using
    CompanyName in
    (selectitemfromdbo.fnSplit(@function,','))
    In the SSRS report text box I have Join(Parameters!Company.Value,",")

  • SMS error 3 on nearly every text. Possibly due to other company towers?

    Carrier: South Central Communications
    Blackberry 8530
    v5.0.0.395 (platform 4.2.0.167)  <<< I think that's what I'm supposed to be posting. I've never done this before
    How do I find free space? The only apps I've installed are MSN messenger & Facebook, and neither one has ever worked for me.
    I've removed the battery & done other resets, internet cache clean etc.
    I would like to start by saying I know this question has been asked, however, none of the threads I've found by searching have any information that I found at all useful. If I missed one, please, point it out.
    Wednesday, January 5, when I got home from work (around 6:30pm local time), my texts stopped sending reliably. I get the SMS error 3 on nearly every one, and I stopped receiving texts as well. I can make calls, but they tend to drop.
    When I went upstairs (lower level of my home is half underground, windows @ ground level), my texts started sending more reliably. I assumed the usually poor signal in the lower level was just worse than usual. I have gotten the error message sporadically in the past. I was not able to send or receive any texts until the next morning, when they started working again almost as usual. I had my usual 0-2 bars displaying throughout this, did not think to check signal strength in dbm.
    Thursday evening (last night) as the evening went on, my texts started going through less and less frequently. Around 11pm local time, they just stopped altogether again. Going upstairs did NOT help at this point. This morning, I am able to send and receive occasional texts, though the majority of the time I still get the error.
    My signal strength was -106dbm when I first started looking for answers (about an hour ago) and is -91 now, all texts still failing. I'm @ work today and my signal is usually crappy here, except when I'm roaming, but I'm usually able to text just fine.
    I also occasionally notice I'm roaming when I'm home in the lower level.
    I know that at the first of this year, AT&T was taking over the local towers that once belonged  to AllTel. Could this switchover be the cause of my diminished capability? I really hope not, I hope it's something I can fix myself. On the other hand, if it's just because they're working on the towers and I have such poor signal that I fail to get any signal at all when they're working on it, it will likely resolve when they're done, correct?
    Please offer any information that might be relevant.
    I'll gladly read any article or forum I'm directed to, there's just such an abundance of information available I do not know where to begin. I am a very beginning user. I was supposed to have my data plan hooked up almost a month ago but I keep forgetting to go back in. They had to get some data key to install on my phone so that it would work.
    I've only had this phone a couple months and this is the first time I've ever really had an issue with it, besides my calls not going through because it was set to the wrong country code initially.
    Thank you for your time.
    EDIT: Just set my phone to "home only" We'll see if that nixes the problem If it does, I can just blame AT&T

    tonimarieeubank wrote:
    My country code for SMS and Facebook is set on
    Canada and should be USA. When I try to save as USA it automatically changes back to Canada. This has become a problem using YouTube. How can Country Code be reset.
    Please refrain from hi-jacking another individuals thread for issues totally irrelevant to the OP's issue. This is considered rude and unacceptable.
    Please create a new thread, in the forum appropriate to your model telephone, for the issue you're experiencing. You'll stand a much better chance of getting an answer that will resolve your issue.
    "Cats may taste like chicken, but they have more bones than rabbits."
    Blackberry 101
    Tips & Tricks
    Videos to learn from on youtube

  • [Execute SQL Task] Error: Executing the query "DECLARE_@XMLA nvarchar(3000) ,__@DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly,

    Hi
    DECLARE @XMLA nvarchar(3000)
    , @DateSerial nvarchar(35);
    -- Change date to format YYYYMMDDHHMMSS
    SET @DateSerial = CAST(GETDATE() AS DATE);
    --SELECT @DateSerial
    Set @XMLA = 
    N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
     <ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
    xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
    xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
    <KeyErrorLimit>-1</KeyErrorLimit>
    <KeyNotFound>IgnoreError</KeyNotFound>
    <NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
     </ErrorConfiguration>
     <Parallel>
    <Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
    xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
    xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
     <Object>
     <DatabaseID>MultidimensionalProject5</DatabaseID>
     <CubeID>giri</CubeID>
     <MeasureGroupID>Fact Internet Sales</MeasureGroupID>
     </Object>
     <Type>ProcessFull</Type>
     <WriteBackTableCreation>UseExisting</WriteBackTableCreation>
     </Process>
      </Parallel>
    </Batch>';
    EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
     iam executive the    query when iam getting below error.
      [Execute SQL Task] Error: Executing the query "DECLARE
    @XMLA nvarchar(3000)
    , @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
    correctly, or connection not established correctly. 
     how to solve this error;
     please help me

    What are you trying to do? What sort of data source is  SHALL-PCAdventureWorksDw?
    When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
    If you explain why you think this would work in the first place, maybe we can help you.
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Receiver JDBC Channel Error : Incorrect syntax near 'OR'

    hi,
    we are facing the below error at the receiver communication channel:
    Error while parsing or executing XML-SQL document: Error processing request in sax parser: Error when executing statement for table/stored proc. 'table' (structure 'statement'): com.microsoft.sqlserver.jdbc.SQLServerException: Incorrect syntax near 'OR'.
    When we again reprocess the message,it shows the exact error at the channel.
    Any ideas why the first error shows up?

    Hi, Anu
    The most probable it's that your target XML it's not correct because it haven't a correct format.
    Please, check your target XML and see
    http://help.sap.com/saphelp_nwpi711/helpdata/en/48/465581929734d9e10000000a42189d/frameset.htm
    Regards,
    Carme

  • Syntax error [nQSError: 27002] Near NA : Syntax error [nQSError: 26012] .

    All,
    I would like to cache few dashboard SQL's manually. For that I am seeding this logical SQL to BI. I got this SQL from the Advanced tab of analytics.
    Call SASeedQuery('SELECT s_0, s_1, s_2, s_3, s_4, s_5, s_6, s_7, s_8, s_9, s_10, s_11, s_12 FROM (
    SELECT
    0 s_0,
    "RProBIEE"."Date"."Calendar Month" s_1,
    "RProBIEE"."Date"."Calendar Year" s_2,
    "RProBIEE"."Stores"."Sbs Name" s_3,
    "RProBIEE"."Vendors"."Vend Name" s_4,
    DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name") s_5,
    "RProBIEE"."PO Amounts"."PO Quantity" s_6,
    "RProBIEE"."PO Amounts"."PO Received Quantity" s_7,
    "RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 s_8,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Month","RProBIEE"."Vendors"."Vend Name") s_9,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year") s_10,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year","RProBIEE"."Date"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."PO Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar
    Year",DESCRIPTOR_IDOF("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST');
    and I get below error
    te"."Calendar Month") s_11,
    REPORT_AGGREGATE("RProBIEE"."PO Amounts"."PO Received Quantity"/"RProBIEE"."P
    O Amounts"."PO Quantity"*100 BY "RProBIEE"."Date"."Calendar Year",DESCRIPTOR_IDO
    F("RProBIEE"."Stores"."Sbs Name"),"RProBIEE"."Vendors"."Vend Name") s_12
    FROM "RProBIEE"
    WHERE
    (Stores."Sbs Name" NOT IN ('NA', 'UNK'))
    ) djm ORDER BY 1, 5 ASC NULLS LAST, 2 ASC NULLS LAST')
    [10058][State: S1000] [NQODBC] [SQL_STATE: S1000] [nQSError: 10058] A general er
    ror has occurred.
    [nQSError: 43113] Message returned from OBIS.
    [nQSError: 27002] Near <NA>: Syntax error [nQSError: 26012] .
    Statement preparation failed
    Processed: 1 queries
    Encountered 1 errors

    Hi,
    When u press editing data target button in session variable a new popup window opens 'Session variable Initialization block variable target'
    In that Just give one variable name in User
    for example in EditDatasource i have given syntax as
    SELECT
    FND_GLOBAL.RESP_ID,
    FND_GLOBAL.RESP_APPL_ID,
    FND_GLOBAL.SECURITY_GROUP_ID,
    FND_GLOBAL.RESP_NAME,
    FND_GLOBAL.USER_ID,
    FND_GLOBAL.EMPLOYEE_ID,
    FND_GLOBAL.USER_NAME
    FROM DUAL
    in target give EBS_RESP_ID and select ok, again open datatarget and give in User as ' EBS_REPS_APPL_ID' like wise.......
    I think you can understand it and go a head.........

  • Error[nQSError: 27002] Near " : Syntax error [nQSError: 26012] why?

    Hi to All
    when i try to create a RPD variable equivalent to OBIEE. It is showing the error as [nQSError: 27002] Near <"BusinessModel"."L_AP.AP_CHECKS_ALL"."CHECK_NUMBER" )In "BusinessModel"."Variables"."Var-PO Number Detail"
    Why i am getting this error. Anyybody pls shed light on this issue. My project is struck without a solution..
    Thanks in advance
    Thenmozhi

    looks like your SQL of init block is not right... can you paste the sql

  • @prompt syntax error with Optional

    Hi Everyone,
    My first post here, hope you guys can help me out. I have some predeifned conditions on a UDT universe which does not parse but works fine. However, In IDT i am making the same but unable. As I have seen so far with the .UNX universe any predefined conditions which does not parse on IDT does not work on the report as well unlike UNV universe. So here is my issue:
    This does not parse on .UNV but works fine on the report:
    convert(varchar, Vw_Ln_Umb.rim_no)  =  @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL',}) OR 'ALL' =
    @variable('Customer No:')
    I have corrected the mistake of the 7th parameter which is the default value as follows:
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent,{'ALL'})
    OR 'ALL' =  @variable('Customer No:')
    and i get the following error : Incorrect syntax near the keyword 'OR'.
    When I remove the "OR 'ALL' =  @variable('Customer No:')"
    I get the error: Incorrect syntax near ')'.
    So i have to correct the filter condition as
    convert(varchar, Vw_Ln_Umb.rim_no) = @Prompt('Customer No:','A','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    but this does not allow me to have ALL as the default value which inturn acts as an optional prompt at report level.
    Kindly help me either fix this or create pre-defined conditions with optional prompts.
    Mahee

    Hi mahee,
    Apply this filter condition
    if you want to select single value in report use "Mono"
    Vw_Ln_Umb.rim_no = @Prompt('Customer No:','N','Limit Details\Customer No.',Mono,Free,Not_Persistent)
    if you want to select multiple value in report use "Multi"
    Vw_Ln_Umb.rim_no IN @Prompt('Customer No:','N','Limit Details\Customer No.',Multi,Free,Not_Persistent)
    Remove extra comma in your filter condition.
    Regards
    Mustafa

  • Postgresql error  help

    I'm using postgresql and I keep getting this error after a value from a jsp page is submitted and then the servlet is suppose to it's work. this is the error I get:
    ERROR: parser: parse error at or near "profiles"
    here is my sql statment that's in a method
       SQL= "Select profiles.profile_name, user_id, companies.company_id, users.first_name, users.last_name" +
                            "countries.country, countries.province, countries.city, users.title FROM profiles INNER JOIN companies ON profiles.owner_id_bus. = companies.company_id" +
                            "INNER JOIN countries ON companies.location_id = countries.countries_id  INNER JOIN users ON companies.default_contact_id = users.users_id" +
                            "WHERE profiles.profile_name='" + name + "'";

    Is that the exact line of code? I'm not sure it is the problem, but when you break your lines, you are omitting the space between words... for instance, "users.last_name" + "countries.country" results in "users.last_namecountries.country" when the strings are appended together.
    Also, is this an error that is returned through an SQLException from postgresql? or from Java itself (I'm assuming the DBMS).
    A lot of times when I can't seem to figure out what is wrong with a query I'm using in JDBC, I'll type (or paste, preferrably) that exact query into the DBMS's interface and see what happens. You can sometimes get better error messages or at least a better idea of what's wrong that way.
    Hope this helps.

  • Error while executing a JOB

    Post Author: rkolturu
    CA Forum: Data Integration
    I tried to execute a job which is compiled and error free but get the error below has any one of you any workaround for this problem
    5308 4880 PAR-010102 12.12.2007 08:44:52 |SessionJOB_XYZ
    5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : 00297-182
    5308 4880 PAR-010102 12.12.2007 08:44:52 0-189393172: near found expecting .
    5308 4880 PAR-010102 12.12.2007 08:44:52 Syntax error at line : <>: near found .
    5308 4880 PAR-010102 12.12.2007 08:44:52 2 error(s), 0 warning(s).
    5308 4880 PAR-010102 12.12.2007 08:44:52 . Please check and fix the syntax and retry the operation.

    Hi,
    If  CI & DB are on different host this error normally occures.SAP return codes 236 means no connection to gateway, can you check it?
    Also check whether TCP/IP RFC connection SAPXPG_DBDEST_*  is working fine or not.If it is not working fine then please check whether you have mentioned below details
    Program              sapxpg
    Target Host          DB Host name
    Gateway Host    DB host/gateway host
    Gateway service sapgw##
    Also refer SAP Note  108777 - CCMS: Message 'SAPXPG failed for BRTOOLS' & Note 446172 - SXPG_COMMAND_EXECUTE (program_start_error) in DB13
    Hope this helps.
    Thanks,
    Sushil

  • I am getting error while creating Control file for a fla file upoad in HANA

    Hi Experts,
    I am getting the following error when I try to create crtrol file for a flat file extraction in SAP HANA.
    Could not execute 'import data into table P935718."COPATBL" from 'COPATBL.csv' record delimited by '\n' fields ...'
    SAP DBTech JDBC: [257] (at 14): sql syntax error: incorrect syntax near "into": line 2 col 1 (at pos 14)
    Here is the code I have used to create control file after I creating the table.
    import data
    into table P935718."COPATBL"
    from 'COPATBL.csv'
        record delimited by '\n'
        fields delimited by ','
        optionally enclosed by '"'
    error log 'P935718.COPATBL.err'
    p935718 is my user ID, COPATBL is my table created, COPABL.CSV is a flat file.
    Please help me in this regard.
    Thanks,
    Guna

    Hello,
    guessing from the error message it looks that you are trying to execute "import data" as SQL command.
    Please note that import data is NOT SQL command but it is syntax for control file. You need to create file with this syntax on server and then use command: IMPORT FROM '/<path>/<filename>.ctl'
    In a shortcut:
    1.- create comma separated CSV file with your data - <source cvs>.csv
    2.- upload CVS file to HANA server
    3.- create the control file <filename>.ctl:
    import data
    into table <schema>."<table name>"
    from '<source cvs>.csv'
    record delimited by '
    fields delimited by ','
    optionally enclosed by '"'
    error log '<file name>.err'
    4.- execute command:
    IMPORT FROM '/<path>/<filename>.ctl'
    Please check following threads:
    How to load CSV files into HANA
    Will HANA supports Bulkload
    Tomas

  • Fetching SSIS error message into Audit table using SP

    Hi Experts,
    I want to fetch SSIS Error Info along with Task Name into Audit table 'Error_Info' column. This is nvarchar(max) datatype, i wrote below Stored Procedure for this (Column names passing dynamically in SP)
    CREATE PROC [dbo].[usp_AuditErrorHandler]
    @AuditTableName nvarchar(MAX)
    ,@Audit_Status nvarchar(100)
    ,@Audit_ErrorDescription sql_variant
    ,@Audit_PkgEnd_dttm nvarchar(100)
    ,@task sql_variant
    ,@errordescription sql_variant 
    ,@Audit_ID nvarchar(10)
    ,@LogID INT
    AS
    BEGIN
    DECLARE @STRQuery NVARCHAR(MAX)
    SET @STRQuery = ' 
    UPDATE '+@AuditTableName+'
    SET '+@Audit_Status+' = ''Failed''
    ,'+@Audit_PkgEnd_dttm+' = GETDATE()
    ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+@errordescription +'''
    WHERE ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    The above procedure is working fine in SSMS and inserting complete error info into table, but when i am executing thru SSIS Pkg i am getting error like
    "[Execute SQL Task] Error: Executing the query "exec usp_AuditErrorHandler ?,?,?,?,?,?,?,?" failed with the following error: "Incorrect syntax near '@P1'.". Possible failure reasons: Problems with the query, "ResultSet"
    property not set correctly, parameters not set correctly, or connection not established correctly."
    So, i tot of checking with string lenght and modifed the code by adding left () to @errordescription as below.
    UPDATE '+@AuditTableName+'
    SET '+@Audit_Status+' = ''Failed''
    ,'+@Audit_PkgEnd_dttm+' = GETDATE()
    ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+LEFT(@errordescription ,100)+'''
    WHERE ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    Here, it is inserting till 119 chars, if i give more than 119 chars pkg is failing with above error.
    I want to get insert Complete error info into the column.
    Can anybody suggest on this?? 
    Thanks in advance !!!

    Thanks Arthur for the response, i have tried with the Sql_Variant data type also, here  procedure itself not creating and throwing below error.
    "The data types nvarchar(max) and sql_variant are incompatible in the add operator."
    This is the procedure i am using to fetch error info into Audit table.
    ALTER PROC [dbo].[usp_AuditErrorHandler]
    @AuditTableName nvarchar(MAX)
    ,@Audit_Status nvarchar(100)
    ,@Audit_PkgEnd_dttm nvarchar(100)
    ,@Audit_Task_ErrorCode nvarchar(100)
    ,@Audit_ErrorDescription SQL_VARIANT
    ,@errorcode nvarchar(max)
    ,@task SQL_VARIANT
    ,@errordescription SQL_VARIANT 
    ,@Audit_ID nvarchar(10)
    ,@LogID INT
    AS
    BEGIN
    SET NOCOUNT ON;
    DECLARE @STRQuery SQL_VARIANT
    BEGIN TRY
    SET @STRQuery = '    
    UPDATE  '+@AuditTableName+'
    SET     '+@Audit_Status+' = ''Failed''
           ,'+@Audit_PkgEnd_dttm+' = GETDATE()
           ,'+@Audit_Task_ErrorCode+' = '''+@errorcode+'''
           ,'+@Audit_ErrorDescription+' = ''Task['+ @task +']:'+ @errordescription +'''
    (Error is giving in this line)
    WHERE   ' +@Audit_ID+ ' = ' + CAST(@LogID AS NVARCHAR)
    EXEC (@STRQuery)
    END TRY 
    Below is the Audit Table Schema

  • Syntax error while creating Calculation view script based

    Hi Folks,
    I'm creating Calc view based on script and drafted a simple code but I'm getting syntax error.
    Its just fetching few coloumns from two tables products and purchaseorderitem.
    /********* Begin Procedure Script ************/
    BEGIN
      var_out = select productid , category, nameid, currency, grossamount, quantity
      FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
      where P.productid = B.productid;
    END /********* End Procedure Script ************/
    Could you pls take a look and let me know what wrong I'm doing?
    Error logs are:-
    sap.hana..package.project.folder.mytest.CALCSCRIPTVIEWInternal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "democontent": line 5 col 18 (at pos 439)nSet Schema DDL statement: set schema "SYSTEM"nType DDL: create type "_SYS_BIC"."sap.hana..package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" as table ("PRODUCTID" NVARCHAR(10), "CATEGORY" NVARCHAR(2), "NAMEID" NVARCHAR(10), "CURRENCY" NVARCHAR(5), "GROSSAMOUNT" DECIMAL(15,2), "QUANITYT" DECIMAL(13,3))nProcedure DDL: create procedure "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc" ( OUT var_out "_SYS_BIC"."sap.hana.package.project.folder.mytest/CALCSCRIPTVIEW/proc/tabletype/VAR_OUT" ) language sqlscript sql security definer reads sql data as n /********* Begin Procedure Script ************/ n BEGIN n t var_out = select productid , category, nameid, currency, grossamount, quantityn t FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS Bn t where P.productid = B.productid;nnEND /********* End Procedure Script ************/n

    Hi Rubane,
    I don't have EPM installed here but based on this Table User Defined Functions( Table UDF ) in HANA  you are not properly defining the source table.
    In your case missing 1) schema of EPM, 2) not using double quotes, 3) separation of package and view, 4) missing camel case on purchaseOrderItem:
    FROM sap.hana.democontent.epm.data.products AS P , sap.hana.democontent.epm.data.purchaseorderitem AS B
    On blog:
    from "SAP_HANA_EPM_DEMO"."sap.hana.democontent.epm.data::businessPartner" as a
    SAP_HANA_EPM_DEMO is the schema
    sap.hana.democontent.epm.data is the package
    businessPartner is the view
    Start simple... before the seletion try it out on Studio SQL.
    Regards, Fernando Da Rós

  • Error in generating a .tlb file

    I am trying to generate a .tlb file from the following .idl file:
    uuid(06571790-A880-40B8-98E5-660FD76D73C2),
    version(1.0)
    library src/CreateAgenaModel
    importlib("Stdole2.tlb");
    dispinterface src/CreateAgenaModelSource;
    dispinterface src/CreateAgenaModelDispatch;
    uuid(E2C8B50A-2770-49DE-BF72-B2EA82101DC3),
    version(1.0)
    dispinterface src/CreateAgenaModelSource {
    properties:
    methods:
    uuid(29F43980-0D99-4945-88D2-10634B11C682),
    version(1.0)
    dispinterface src/CreateAgenaModelDispatch {
    properties:
    methods:
    [id(32768)]
    VARIANT_BOOL equals(IDispatch* arg0);
    [id(32769)]
    IDispatch* getClass();
    [id(32770)]
    int hashCode();
    [id(32771)]
    void main(VARIANT arg0);
    [id(32772)]
    void notify();
    [id(32773)]
    void notifyAll();
    [id(32774)]
    BSTR toString();
    [id(32777)]
    VARIANT wait([optional] VARIANT var0);
    uuid(237D32BB-B5D0-44E3-B06D-D7E9176DCB83),
    version(1.0)
    coclass src/CreateAgenaModel {
    [default, source] dispinterface src/CreateAgenaModelSource;
    [default] dispinterface src/CreateAgenaModelDispatch;
    But I keep receiving the following errors:
    C:\j2sdk1.4.2_01\bin>packager -reg C:\j2sdk1.4.2_01\bin\CreateAgenaModel.jar src
    /CreateAgenaModel
    Propagation complete
    Propagation complete
    Propagation complete
    Processing C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\\src\CreateAgenaModel.idl
    CreateAgenaModel.idl
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(5) : error MIDL2
    025 : syntax error : expecting { near "/"
    Processing .\oaidl.idl
    oaidl.idl
    Processing .\objidl.idl
    objidl.idl
    Processing .\unknwn.idl
    unknwn.idl
    Processing .\wtypes.idl
    wtypes.idl
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(8) : error MIDL2
    025 : syntax error : expecting ; or { near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(9) : error MIDL2
    025 : syntax error : expecting ; or { near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(14) : error MIDL
    2025 : syntax error : expecting ; or { near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(22) : error MIDL
    2025 : syntax error : expecting ; or { near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(22) : error MIDL
    2003 : redefinition : src
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(46) : error MIDL
    2025 : syntax error : expecting ; or { near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(47) : error MIDL
    2025 : syntax error : expecting ; near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(48) : error MIDL
    2025 : syntax error : expecting ; near "/"
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(49) : error MIDL
    2003 : redefinition : src
    C:\DOCUME~1\ANGELA~1.ANG\LOCALS~1\Temp\src\CreateAgenaModel.idl(51) : warning MI
    DL2214 : semantic check incomplete due to previous errors
    Failed generating .tlb file.
    Does anyone know who to correct the errors MIDL2025 or MIDL2003?
    Any help I would be very grateful
    Angie

    Url given below would give you info on your error.
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/midl/midl/compiler_errors.asp

  • Syntax error in ce_projection

    I am writing an sql script CV to join two fact tables and display the data based on row filter.Please see the script below.
    When trying to validate the view,it triggers the below error. I couldn't figure out the sytax error in above script. can anyone help me.

    Below is the error message sumeet.
    "Internal deployment of object failed;Repository: Encountered an error in repository runtime extension;Internal Error:Deploy Calculation View: SQL: sql syntax error: incorrect syntax near "B1": line 11 col 84 (at pos 557)nSet Schema DDL statement: set schema"
    I was trying to understand CE_PROJECTION function by using it on the join result. But couldn't do it due to the error.

Maybe you are looking for

  • Problem when inserting xml flow into jspx page

    When I drag and drop the xml into the jspx I should get a pop up menu where I would choose region (Im following a tutorial) but I get nothing. I drag and drop and It just opens it in the design editor. I would appreciate any help you guys could give

  • Major problems with iOS4 firmware update on my 3GS iPhone!  Anyone else?

    First, it appears to have reset my home wireless router in the midst of the update to the default settings, thankyouverymuch. Then the new wallpaper don't allow you to set your home screen to none or blank or plain old black. And in the process of me

  • Boot camp and parallels

    I am switching my work laptop to a mac and and wondering if it is better to 1- Just have a parallel desktop 2- Have a boot camp separate installation 3- Have both with the parallel having my boot camp partition as the VM I am worried that some work p

  • What is a Scorecard Custom Set Formula and how do I use it?

    When creating a Scorecard (in Dashboard Designer) which includes a KPI, in the right "Details" frame, there is a section for "Set Formulas" and under that (along with Time, which I understand) is "Custom" which I can't find any documentation for. How

  • Does BT Fon/Openzone work with an ipod touch gen 1...

    Hi, I am a BT Infinity customer and have opted in to BT Fon. I cannot get my ipod touch gen 1 to work with a BT Fon or Openzone network. I can connect to my BT home hub as well as various friends' networks but for some reason I can't get the BT Fon/B