Map Fields, store procedure results is "Expr1000"

Hi guys.
This is my problem.
I have a sql server 2005 database. In this database i have a store procedure (3100 lines, with temporal tables, unions .. etc).
When i try to create the report in CR9, i do this :
1) i'm go to "set datasource location"
2) select the database
3) select the store procedure
4) put some parameters
5) Accept
When i want to add the fields to the report ....
the only results from the SP is a result field called "Expr1000".
I execute the store in my sql server and this give me all the columns results (174 columns).
My question is:
What is the error , that in CR9 i can't see all the columns results , and only i can see "Expr1000".
Thanks !!!!!
Pablo Reynoso.

This is definitely not the solution for everyone but reading this thread made me do a little more checking on my own.
I too was receiving the "Expr1000" field from the SP when linking it into a new report or even when trying to MAP fields in an existing report template.  In the Map Fields dialog the source SP had no fields displayed for Mapping.
What I discovered was S.U.E. (stupid user error).  While testing some changes to the source SP I changed the return result from returning data to returning the actual sql code I was constructing in the SP.  I often write the code into a local string variable and then use the 'exec(@str);' command as the final step of the SP.  I changed that code to 'Select @str;' which returned the @str string value when I executed the SP from within SQL Manager - to see the actual sql code.
I never changed the code back to using the 'exec(@str);' so I was returning a 4,000+ char string from the SP which when loaded into Crystal the SP "field" became "Expr1000".
After making this little change, returning the data instead of a single LARGE string the report behavior returned to what is was before the testing snafu.
Hope this helps someone else, at least maybe point them to their code changes and not necessarily the CR template.
Dave

Similar Messages

  • Mapping to store procedure

    Hi,
    I want to have a custom mapping to a database table. the only difference
    that I need in synchronization between JDO and table is during insert. I
    need to execute a store procedure that do actual insert in the table and
    after that makes some other inserts in another table. I've already have
    the code for that store procedure but I don't know how to make the mapping
    between the JDO and table and insert stored procedure.
    Thank you
    Stefan

    Stefan-
    Check out the samples/timestampField/ directory in the Kodo 2.5.0
    distribution for a simple example of using a custom mapping. You can
    adapt this mapping to execute the custom logic when you need to do the
    insert.
    See also:
    http://docs.solarmetric.com/javadoc/com/solarmetric/kodo/impl/jdbc/ormapping/ClassMapping.html#insert(com.solarmetric.kodo.runtime.StateManagerImpl,%20com.solarmetric.kodo.impl.jdbc.SQLExecutionManager)
    In article <b5snsj$jkq$[email protected]>, stefan wrote:
    Hi,
    I want to have a custom mapping to a database table. the only difference
    that I need in synchronization between JDO and table is during insert. I
    need to execute a store procedure that do actual insert in the table and
    after that makes some other inserts in another table. I've already have
    the code for that store procedure but I don't know how to make the mapping
    between the JDO and table and insert stored procedure.
    Thank you
    Stefan--
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • Error saving map. Stored procedure returned non-zero result BizTalk Bug

    Hallo all
    MSDN is reporting this Bug.
    "Error saving map. Stored procedure returned non-zero result." error message when you deploy the BizTalk Server 2010 applications in BizTalk Server 2010 Administration Console"
    http://support.microsoft.com/kb/2673264/en-us
    I am having this problem in BizTalk 2013. Is this correct? or I am doing something wrong..
    This error occured as I was about to deploy BizTalk application from Visual studio 2012 to BizTalk 2013.
    If this bug is available in 2013, where can I get a fix for it..
    Thanks in Advance
    AKE

    Hi AKE,
    Fix for this bug in BizTalk Server 2013 is not publicly available yet. Only option to get the fix for this bug is to contact:
    http://support.microsoft.com/contactus/?ws=support
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

  • Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.

    I am using VS 2012 and BizTalk 2013 and attempting to deploy an application to BizTalk when I get these errors:
    Error 47
    at Microsoft.BizTalk.Deployment.Assembly.BtsMap.Save()
       at Microsoft.BizTalk.Deployment.Assembly.BtsArtifactCollection.Save()
       at Microsoft.BizTalk.Deployment.Assembly.BtsAssembly.Save(String applicationName)
       at Microsoft.BizTalk.Deployment.BizTalkAssembly.PrivateDeploy(String server, String database, String assemblyPathname, String applicationName)
       at Microsoft.BizTalk.Deployment.BizTalkAssembly.Deploy(Boolean redeploy, String server, String database, String assemblyPathname, String group, String applicationName, ApplicationLog log)
    0 0
    Error 49
    Failed to add resource(s). Change requests failed for some resources. BizTalkAssemblyResourceManager failed to complete end type change request. Failed to deploy map "XXX.BTS2013.XXX.Maps.map_XXXX_R01_InsLabProc".
    Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present. Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.
    0 0
    Error 46
    Failed to deploy map "XXX.BTS2013.XXX.Maps.map_XXXX_R01_InsLabProc".
    Error saving map. Stored procedure returned non-zero result. Check if source and target schemas are present.
    0 0
    I also tried to Import a MSI file from our test environment to see if that would work...got the same errors.  After spending hours (not kidding) looking for an answer, all I could find is that a hotfix would work.  So, I got the hotfix from Microsoft
    Support and applied it then rebooted.  Still getting the same errors.  I'm absolutely at a stand still.  Interesting that I got this application to deploy yesterday and then the next time I deployed it I started getting these errors.  I'm
    ready to pull my hair out!
    Is there an answer for this out there somewhere?  Any help would be appreciated.
    Thanks,
    Dave

    Hi Dave,
    Which hotfix have you applied? I don't think a hotfix of this issue is available for BizTalk 2013 yet. You should create a
    support ticket with Microsoft to get a solution.
    If this answers your question please mark as answer. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • Call store procedure from pre-mapping

    Hi,
    I am currently working on OWB client version 10.2.0.4.36.My requirement is to call store procdure from pre-mapping tranformation.How to achieve this & how to pass parameters to the store procedure?
    Please let me know.
    Thanks,
    Siva

    Thanks for the quick reply.I am doing the same way as suggested.But am getting warning,when I validate it and is expecting to synchronize it.What warning you got exactly and i think you have not deployed the procedure.
    The reason for this procedure is to select max value from one of the table and then drop & recreate the sequence with max value + 1.
    Inside the procedure,am doing this all dynamically.which means am passing Columnname,tablename & sequencename to this procedure.
    Do you think is this good approach or any other advisable approach?Can you explain you requirement then only we can suggest the better way .
    Cheers
    Nawneet

  • Different results of an store procedure

    Hi everyone,
    I have a partitioned table (by day of the week) and an store procedure that selects some records from a especific partition (that one that represents "today").
    Inside Oracle client I get the result I'm expecting, but when I call the procedure from a java client I get a different result (it searches in another partition).
    Any ideas?? if you need some code let me know.
    Thanks in advance,
    Charlie Garcia.

    Well, partitioned by day of the week means the column is declared as?
    I'm assuming there's a bind mismatch between the defined value in the table, and what you are passing in to the routine.
    So for example, your table is partitioned on a date column and you pass in a string to your stored routine. Then Oracle has to do a conversion for you (if it can) and compare the value you passed in, to the converted value.
    for example, if you pass in '01-05-01' as a string, what date would you say that is?
    ME_XE?select to_date('01-05-03', 'dd-mm-yy') from dual;
    TO_DATE('01-05-03','DD-MM-
    01-MAY-2003 12 00:00
    1 row selected.
    Elapsed: 00:00:00.00
    ME_XE?select to_date('01-05-03', 'mm-dd-yy') from dual;
    TO_DATE('01-05-03','MM-DD-
    05-JAN-2003 12 00:00
    1 row selected.
    Elapsed: 00:00:00.01
    ME_XE?select to_date('01-05-03', 'yy-dd-mm') from dual;
    TO_DATE('01-05-03','YY-DD-
    05-MAR-2001 12 00:00
    1 row selected.

  • How can i pass NULL value in Store Procedure?

    Hi guys,
    I am calling one store procedure from MS SQL Server 200, i had create the follow layout:
    But i need pass to MSQL SEVER the CPF = NULL, when i execute the procedre the CPF send empty value (not null).
    I already changed Communication Channel parammeter "Interpretation of Empty String Values" to "Null Value" value.
    But the interface always send empty string instead of null.
    How can anybody help me, please?
    Edited by: João Noberto dos Santos Junior on Jun 24, 2009 5:00 PM

    Hi,
    To achieve this through "Interpretation of Empty String Value" in the cc, you will have to implement a patch which is sent to you by SAP when an OSS is raised. By default its not available, i mean you can configure it but it will actually not work.
    As a temporary solution you can map your element with a constant/mapwithdefault field with value mentioned as NULL.
    Regards,
    Anshul

  • Store procedure call to fetch data in JDBC sender adapter

    Hi guys,
    I have to fetch data from a Oracle server through JDBC adpater.
    the partner has in place some store procedure that have to be used with this purpose.
    But al the time I try to call a store procedure I got error that variables are not binded.
    I fill up the query sql statement field with following text
    call <store procedure name> (v1 OUT VARCHAR2, v2 in varchar2)
    Does anyone know the syntax to access such store procedure within jdbc adapter?
    As far as I know the jdbc call the store procedure with Callable statement but the paremeters need to be linked to datatype,but here I do not see such possibility.

    HI
    A stored procedure is a subroutine available to applications accessing a relational database system. Stored procedures (sometimes called a sproc or SP) are actually stored in the database data dictionary.
    Typical uses for stored procedures include data validation (integrated into the database) or access control mechanisms. Furthermore, stored procedures are used to consolidate and centralize logic that was originally implemented in applications. Large or complex processing that might require the execution of several SQL statements is moved into stored procedures and all applications call the procedures only.
    Stored procedures are similar to user-defined functions (UDFs). The major difference is that UDFs can be used like any other expression within SQL statements, whereas stored procedures must be invoked using the CALL statement
    Stored procedures can return result sets, i.e. the results of a SELECT statement. Such result sets can be processed using cursors by other stored procedures by associating a result set locator, or by applications. Stored procedures may also contain declared variables for processing data and cursors that allow it to loop through multiple rows in a table. The standard Structured Query Language provides IF, WHILE, LOOP, REPEAT, CASE statements, and more. Stored procedures can receive variables, return results or modify variables and return them, depending on how and where the variable is declared.
    http://help.sap.com/saphelp_nw04/helpdata/en/1d/756b3c0d592c7fe10000000a11405a/content.htm
    One of the usage is to prevent the query to directly write to the database
    http://en.wikipedia.org/wiki/Stored_procedure
    Check these:
    http://help.sap.com/saphelp_nw04s/helpdata/en/b0/676b3c255b1475e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/4d/8c103e05df2e4b95cbcc68fed61705/frameset.htm
    Integration with Databases made easy – Part 1.
    JDBC Stored Procedures
    http://help.sap.com/saphelp_nw04/helpdata/en/45/023c41325fa831e10000000a1550b0/frameset.htm
    Calling stored procs in MaxDb using SAP Xi
    cheers

  • How to run a mapping from plsql procedure in some common group?

    Hi,
    I have a Workflow process, when I running him from OWB I saw in OWB Browser first the name of this process and under this process mappings that in this process.
    In one mapping I have some pre-mapping procedure that doing something and prepare some parameters for other mapping and run it (steps for running a mapping I take from sqlplus_exec_template.sql script) and I can't put this mapping into Workflow process for some reasons.
    But in OWB browser this mapping doesn't belong to my Workflow process, they located on the one level.
    How to modify steps for running mapping so that my mapping is located under this Workflow process in OWB Browser?

    Hi,
    It sounds like what you are trying to do, is run one mapping in a pre-mapping process of another mapping. You use a wrapper that implements sqlplus_exec_template.sql in PL/SQL. Is that correct?
    I don't think that by the way you execute this mapping, it ends up in the context of the process flow. The reason is because according to Warehouse Builder the mapping is being invoked standalone (through the wrapper that implements the template). As a result, the context in which Warehouse Builder would log the messages is lost.
    What I suggest you do (assuming I understand the problem correctly), is run the mapping as a separate mapping in the process flow. Because in the current release we do not support passing output parameters in the process flow, you will have to (temporarily) store the results of the first mapping in a table and pick it up from there in the other mapping. In the next major release (autumn 2004) we will support passing parameters between activities.
    Thanks,
    Mark.

  • Which is better to use Store Procedure or Views in Crystal Reports ?

    Hi,
    which one is more better to use Store Procedure or Views in Crystal Reports ?
    Thanks.

    It depeneds on the requirement. Well, but from performance point of view as u know that stored procedures are already compiled on DB side, they would be more efficient. Views are handled differently. Here CR has nothing to do with it.
    But if the stored procedure u r using is having 2 Select statements, CR will only display the results from the first select statement. In that case you need to use Views as one can use more than one views in the report and join them.
    Using a Generic view which is created by the DBA for a larger audience will result in performance issues meaning if a View "V" has 25 fields and View is based on 5 tables  and ur report is using only 5 fields which are coming only from 2 tables inside the view,in this case u will end up in joining 3 more tables unnecessarily.
    Hope this helps!

  • Informix Store Procedure

    Hi,
    I executed a Store Procedure in Informix DB to started a process. This Procedure has the following return parameters:
    CHAR,
    SMALLINT,
    CHAR,
    CHAR;
    My problem is in Inbound Message Payload that received the following error message, because it can´t use "(" as tag definition:
    The XML page cannot be displayed
    Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later.
    A name was started with an invalid character. Error processing resource 'http://xidev:50000/mdt/messagecontentservlet?attac...
      <(expression)>01</(expression)>
    ---^
    Does anyone knows another way to solve this problem?
    Regards
    Damian

    People, i have the same problem, but solutuion is:
    change in the declaration of procedure to return the result set
    ex:
    CREATE FUNCTION Nome_Arquivo ()
    RETURNING CHAR(100) AS arquivo  DEFINE vArq LIKE fs_full.nome_arquivo;;
      select first 1 nome_arquivo INTO vArq
      from fs_full;;
      RETURN vArq;;
    END FUNCTION
    Routine created.
    In RETURNING use "AS" enter field names your date types.
    its work.
    abs

  • How to pass xml data as objects into Database using store procedures

    Hi All,
         I don't have much knowledge on store procedure,can anybody help how to pass the xml as objects in Database using store procedure.
    My Requirement is I have a table with three fields EMPLOYEE is table name and the fields are EMP_ID,EMP_TYPE AND EMP_DET,I have to insert the employees xml data into corresponding fields in the table.
    Input Data
    <ROWSET>
       <ROW>
         <EMP_ID>7000</EMP_ID>
          <EMP_TYPE>TYPE1</EMP_TYPE>
         <EMP_DET>DEP</EMP_DET>
      <ROW>
      <ROW>
         <EMP_ID>7000</EMP_ID>
         <EMP_TYPE>TYPE2</EMP_TYPE>
        <EMP_DET>DEP2</EMP_DET>
    <ROW>
    <ROW>
         <EMP_ID>7000</EMP_ID>
         <EMP_TYPE>TYPE3</EMP_TYPE>
        <EMP_DET>DEP3</EMP_DET>
    <ROW>
    <ROWSET>
    So each row values has to inserted into resp fields in the table.
    Regards
    Mani

    Do you have a similar structure in your stored procedure ?
    In that case you can simply call the procedure from soa using db adapter and do a mapping to assign the values.

  • SQL Server Store Procedure, selecting rows from multiple tables

    i have got a store procedure that is pulling data from one table, now i have got the same data collected in a different table,
    as the IDs are different i cannot put all data from the second table into the first one. so now i have to have two select statements in one store procedure. Although the corresponding data is same but the field names in both table are different. for instance
    BRIEF_TITLE would be briefTitle in the second table. how can i merge the data from two different tables into one. the result is bonded to ASP.net grid view control.

    >> I have a store procedure that is pulling data from one table, now I have got the same data collected in a different table, as the IDs are different I cannot put all data from the second table into the first one. <<
    This is redundancy. The idea of databases even before RDBMS, was to remove redundancy. Oh, columns are not fields. These are basic concepts. 
    >> so now I have to have two select statements in one store procedure. Although the corresponding data is same but the field [sic] names in both table are different.<<
    NO! Where is your data dictionary that assures data elements have one and only one name everywhere in the enterprise!  You are is serious trouble here. The data element names should be universal and used everywhere with the same casing, so that case sensitive
    standards will work. 
    >> for instance BRIEF_TITLE would be briefTitle in the second table.<< 
    The quick kludge is a VIEW with the ISO-11179 names over the camelCase crap
    The moron who did the second table does not know ISO-11179 Standards and missed the research that showed us that camelCase does not work. Your eye is trained to jump to an Uppercase letter since it is the start of a semantic unit (proper name, sentence, paragraph,
    emphasis, etc). When we researched this stuff at AIRMICS, this could add 8-12% to the time to maintain code in large systems. Your eyes twitch! 
    You really need to get your act together with a good text editor/ pretty printer tools. Get a copy of my SQL Programming Style and adapt it to those tools. 
    >> The result is bonded to ASP.net grid view control. <<
    We are the SQL guys; we do not are about the presentation layers :) 
    --CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
    in Sets / Trees and Hierarchies in SQL

  • Store Procedure required to check Quantity total

    Dear Experts,
    Kindly help me in writing Store Procedure, my requirement is to have an validation on Inventory Transfer Form where i have created two udf fields in row level as A & B contains where user enter value which is calculated as A * B  that is equal to  total Quantity,  for ex. (A * B = Quantity).
    So i need here a validation check before adding this document, that Field A value multiply by Field  B value that should to be total Quantity in case changes made in field A or Field B but not update before saving this document it would result be wrong Quantity total.
    To avoid such user entering mistakes a SP is required to check whether the Quantity total is equal to Field A value * Field B value.
    Thanking in Advance....
    Regards,
    Krishnakumar

    Hi!  Gordon,
    Already there is an FMS to Calculate Field A value * Field B value and it through it's result to the Field Quantity. Now am looking to have an validation check or control that should actually check before document get saved that the value entered in Field value A multiply by Field value B  is that get tallied with the Field Quantity.
    For ex: Field A value contain figure 100 and Field  B value contain figure 200 then the Field A * Field B = Quantity i.e. (100 * 200 = 20,000). In case if the user change the field Value of A or B without updating the Field Quantity then it result in correct Quantity.
    So I need a Store Procedure that check the field value of A & B and check the product sum Field value Quantity if it matches then it should allow to save the document other wise it should print a Error message "Calculation Error".
    I hope you understand what am exactly required, so i need  your helping hands to get this Store Procedure.
    Thanks in Advance,
    Regards,
    Krishna
    Edited by: krishnaoctopus on Jun 14, 2011 2:49 PM

  • Testconnectivity fails at Mapi mail store Error 1818 Cancelled

    Hello
    I got one single Exchange 2010 SP3 Server installed. Everything working fine.
    I want to activate Outlook anywhere. Did this following the usual Procedure.
    I got everything activated, am listening on Ports 6001 6002 and 6004 on my exchange Server and i think everything is working fine. I also followed this article http://blogs.technet.com/b/exchange/archive/2008/06/20/3405633.aspx
    I can't get this Testexchangeconectivity Tool get working it always fails on this Point
    Trying to Ping the MAPI Mail Store "FQDN of Exchange:6001" with an RPC Error 1818 call cancelled.
    Any Ideas?
    Daniel Meili

    Hi,
    The error 1818 indicates that the RPC call timed out. From your description, I would like to clarify the following things for troubleshooting:
    1. Make sure that you have installed the Windows feature "RPC over HTTP Proxy".
    2. Disable Outlook Anywhere and wait a few minutes before you enable it again and check the result.
    What's more, here is a thread for your reference.
    ARR won't let through RPC
    https://social.technet.microsoft.com/Forums/office/en-US/8ad5a2c1-93b1-45ba-9d79-fe68c5711b09/arr-wont-let-through-rpc?forum=exchangesvrclients
    Hope this can be helpful.
    Best regards,
    Amy Wang
    TechNet Community Support

Maybe you are looking for

  • JBO 29114 ADF context is not set up to process messages

    Hi, I have created a Rest web service and hosted it on my own IP address.. I am trying to create a mobile application using the URL data control for the rest service created. I get the below error when I do so: *"JBO 29114 ADF context is not set to p

  • [SOLVED]Ruby on Rails won't run with apache/passenger

    Hi I want to run Redmine, a Ruby on Rails application, on a personal server using MariaDB as the database and Apache with the Phusion Passenger module as the application platform. So far I am able to run Redmine with the default WeBrick server, but i

  • How can I do this... (video link included)

    http://www.youtube.com/watch?v=C929TN2zbQY I would like to do something similar to this - but with a moving picture in a newspaper article instead. Or like the pictures that move in Amelie Where would i start - I imagine the principle is pretty simpl

  • Got a new pc, but when I sign in, Adobe won't let me download my PS

    I'm signed in, but Adobe just asks me to purchase a plan. How do I get my PS on my new pc?

  • Search Time Machine For HTML Code

    I need to find when an email address was changed in the code of an HTML file I've been working on the last couple of days. The Time Machine preview pane will render the browser view of the html and I can see the changes over time, but I can't see the