PreparedStatement & regular Statement - different results for same select
I was wondering if someone could either
i) try this out for me to confirm my results or
ii) let me know what I am doing wrong
I'm one of the developers on a product and am currently investigating localization for the Thai language...just checking to see that Java and Swing have no problems with it. The only bewildering thing which has happened is noticing that some values which are fetched from the database display in Thai perfectly and other values display as a garble. Sometimes the exact same column is displayed correctly in one part of the program but is not OK in another part. I think I've figured out what it going on and suspect a bug in Oracle's JDBC:
Some selects were configured as PreparedStatements and those return the Thai properly. The more common case however was for programmers to use a simple Statement object for their select and it is in those that the multi-byte strings don't get returned properly.
The following code shows the problem that I am experiencing. I am basically executing the exact same select in 2 different ways and they are both giving different results as long as the column being queried contains a Thai character. If someone could grab and check it out and let me know if they see the same thing, I'd appreciate it. Just change the column/table name and the username/password/databaseIP to get it to run.
<code>
import java.sql.*;
public class SelectTest {
public static void main(String[] args) {
try {
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
Connection conn = DriverManager.getConnection( "jdbc:oracle:thin:@10.4.31.168:1524:ora8",
"dms_girouard",
"girouard");
String sqlCommand = "select C0620_Title from T0620_SwSheet";
Statement statement = conn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,
ResultSet.CONCUR_READ_ONLY);
ResultSet resultSet1 = statement.executeQuery(sqlCommand);
while (resultSet1.next()) {
if (resultSet1.getString("C0620_Title") != null) {
System.out.println("resultSet1 Title = " + resultSet1.getString("C0620_Title"));
PreparedStatement preparedStatement = conn.prepareStatement(sqlCommand);
ResultSet resultSet2 = preparedStatement.executeQuery();
while (resultSet2.next()) {
if (resultSet2.getString("C0620_Title") != null) {
System.out.println("resultSet2 Title = " + resultSet2.getString("C0620_Title"));
catch (Exception e) {
System.out.println(e.getMessage());
</code>
Hi Peter,
Are you using NCHAR column for Thai , or is your database character set set for Thai.
If you are using a NCHAR column for holding Thai data, then you have to use the
OraclePreparedStatement.setFormOfUse(...) before executing the select.
Regards
Elango. Hi Elangovan,
Thank you for answering.
The datatype on the column is VARCHAR2.
I did my initial tests without doing anything special to make sure the database is localized for Thai, and I was happy to find that almost everything still worked fine - I was able to save and retrieve Thai strings to the database almost perfectly.
The only problem I discovered was the difference between Statement and PreparedStatement selects on a column containing Thai. Colleagues of mine have said they see the same thing when testing on a Oracle database which has been configured specifically for the Thai customer.
I read somewhere that the current JDBC drivers are using an older version of the Unicode standard than the most current version of the Java SDK and that it was causing some problems with Korean. I'm wondering if maybe it's the same problem with Thai.
Similar Messages
-
Different results for same query on different servers
1. database being converted from 7.3.4 to 9.2
2. query is executed on both servers
3. different results!
The tables and data are the same, and indexes are setup on new server. EXPLAIN PLAN was run on both but with (predictably) widely different results.
I know, not much detail here, but has anyone ever ran into anything like this?
Thanks,
PatFolks,
Here is the relevant information for this problem. The attributes have been changed for confidentiality. If you need any other information let me know.
Thanks,
Pat
Query:
SELECT
one,two,three,four,a.five,six,seven,
a.eight,a.nine,
to_char(ten,'99999.99'),to_char(eleven,'99999.99'),
to_char(twelve,'99999.99'),to_char(thirteen,'99999.99'),
fourteen,fifteen,sixteen,seventeen,eighteen,
nineteen,twenty,twentyone
FROM
table1 a,
table2 b
WHERE
a.five = b.five
AND one = 'X'
AND six = ' '
AND three != 12345
AND three IN
(SELECT DISTINCT
three
FROM table3
WHERE
one = 'X'
AND twentytwo = 'XYZ'
AND twentythree != 0
AND twentyfour != 0
AND twentyfive = 'Y'
AND (a.five IN
(SELECT DISTINCT
five
FROM table1
WHERE
one = 'X'
AND three IN (12345)
Table1:
one varchar2(1) not null PK
two varchar2(20) not null PK
three number(5) not null PK
four number(2) not null PK
five number(6) not null PK
six varchar2(4) not null PK
seven number(4) not null
eight varchar2(8) not null
nine date not null
ten number(7,2)
eleven number(7,2)
twelve number(7,2)
thirteen number(7,2)
Table2:
five number(6) not null PK
fourteen varchar2(5) not null
fifteen varchar2(5) not null
sixteen varchar2(2) not null
seventeen varchar2(35) not null
eighteen varchar2(4) not null
nineteen varchar2(2)
twenty varchar2(1)
twentyone number(6)
Table3:
one varchar2(1) not null PK
twentytwo varchar2(12) not null PK
two varchar2(20) not null PK
three number(5) not null PK
four number(2) not null PK
twentysix number(2) not null PK
twentyfive varchar2(1) not null
nine date not null
twentythree number(13,8) not null
twentyfour number(12,8) not null
twentyseven varchar2(1) not null
eight varchar2(8) not null
Explain - Oracle9i (default, with CBO):
SELECT STATEMENT
RECURSIVE EXECUTION SYS_LE_3_0
RECURSIVE EXECUTION SYS_LE_3_1
TEMP TABLE TRANSFORMATION
HASH JOIN
HASH JOIN
HASH JOIN
TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
TABLE ACCESS BY INDEX ROWID TABLE1
BITMAP CONVERSION TO ROWIDS
BITMAP AND
BITMAP MERGE
BITMAP KEY ITERATION
TABLE ACCESS FULL SYS_TEMP_0FD9D6603_AB874A
BITMAP CONVERSION FROM ROWIDS
INDEX RANGE SCAN TABLE1INDEX03
BITMAP MERGE
BITMAP KEY ITERATION
TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
BITMAP CONVERSION FROM ROWIDS
INDEX RANGE SCAN TABLE1INDEX04
TABLE ACCESS FULL SYS_TEMP_0FD9D6602_AB874A
TABLE ACCESS FULL TABLE2
Query results - Oracle9i (with CBO):
X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
(approximately 4550 rows returned)
Explain - Oracle9i (ALTER SESSION SET OPTIMIZER_METHOD=RULE;):
SELECT STATEMENT
MERGE JOIN
SORT JOIN
NESTED LOOPS
NESTED LOOPS
VIEW VW_NSO_1
SORT UNIQUE
TABLE ACCESS BY INDEX ROWID TABLE3
INDEX RANGE SCAN TABLE3INDEXPK
TABLE ACCESS BY INDEX ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
TABLE ACCESS BY INDEX ROWID TABLE2
INDEX UNIQUE SCAN TABLE2INDEXPK
SORT JOIN
VIEW VW_NSO_2
SORT UNIQUE
TABLE ACCESS BY INDEX ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
Explain - Oracle 7.3.4:
SELECT STATEMENT
MERGE JOIN
SORT JOIN
NESTED LOOPS
NESTED LOOPS
VIEW
SORT UNIQUE
TABLE ACCESS BY ROWID TABLE3
INDEX RANGE SCAN TABLE3INDEX03
TABLE ACCESS BY ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
TABLE ACCESS BY ROWID TABLE2
INDEX UNIQUE SCAN TABLE2INDEXPK
SORT JOIN
VIEW
SORT UNIQUE
TABLE ACCESS BY ROWID TABLE1
INDEX RANGE SCAN TABLE1INDEX03
Query results - Oracle 7.3.4:
X|A | 1| 0| 22| | 1|08-MAR-02|XYZ | | 24.00| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|B | 2| 1| 22| | 7|04-DEC-01|XYZ | | 3.25| 8.00| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|C | 3| 1| 22| | 1|14-AUG-02|XYZ | | 10.35| | |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|D | 4| 1| 22| | 6|11-JUL-02|XYZ | | .00| 13.90| |ABCDE|FGHIJ|AB|ABCDEFG |ABC | | | |
X|E | 5| 5| 23| | 1|22-FEB-01|XYZ | | 211.80| | |ABCDE|EFGHI|AB|HIJKLMN |DEF | | | |
(approximately 1150 rows returned)
Indexes (used):
TABLE1INDEX03 (three)
TABLE1INDEX04 (five)
TABLE2INDEXPK (five)
TABLE3INDEXPK (one,twentytwo,two,three,four,twentysix)
Discussion:
Notice the repeating result for X,E,5,5,23,.... in the Oracle9i retrieval using CBO.
The execution of this query returned approximately four times the number of rows as
Oracle 7.3.4 using RBO. This is a function of how many "fours" there are in table3
that have matching "threes and fours" in table1. If you put a DISTINCT clause at the
very front of the query (SELECT DISTINCT one,two,three ....) then the result is
accurate and the same as Oracle 7.3.4. In one execution of this query, 27,000 rows
are expected to be returned, but the server returned over 1 million rows!
When RBO was used on Oracle9i, the results were identical to the ones on Oracle 7.3.4. -
Different View for same document library on a Wiki Page
Hi,
I am developing a Provided hosted app which have a functionality to create a document library with two Views. Also we need to show this document library in a wiki page with two different views.
I am using CSOM (C#). I am able to create the document library and the two views programmatically. But when I add the document library in the wiki page the default view (All Documents) is shown for both the web parts. There is an hidden view created with
the WebPartDefinition from the xml provided through code.
Through CSOM we are able make a View as default with the link below.
http://sharepoint.stackexchange.com/questions/90433/add-document-library-xsltlistviewwebpart-using-csom-or-web-services
In my case both the webparts will get the same view, where I need different view for same document library in a wiki page.
Also I tried to update the web parts with the following code.
string viewString = @"<View Name='{0}' MobileView='TRUE' Type='HTML' Url='/SitePages/Home.aspx' Level='1' BaseViewID='1' ContentTypeID='0x' ImageUrl='/_layouts/15/images/dlicon.png?rev=23' >
<Query><Where><Eq><FieldRef Name='KeyDocument'/><Value Type='Boolean'>1</Value></Eq></Where></Query>
<ViewFields><FieldRef Name='FileLeafRef'/><FieldRef Name='DocumentOwner'/><FieldRef Name='Modified'/>
<FieldRef Name='_UIVersionString'/><FieldRef Name='Editor'/></ViewFields>
<RowLimit Paged='TRUE'>30</RowLimit><JSLink>clienttemplates.js</JSLink><XslLink Default='TRUE'>main.xsl</XslLink>
<Toolbar Type='Standard'/></View>";
WebPartDefinition wpd = wpfound.FirstOrDefault();
string formattedstring = String.Format(viewString, wpd.Id);
wpd.WebPart.Properties["XmlDefinition"] = formattedstring;
wpd.SaveWebPartChanges();
web.Context.ExecuteQuery();
I created two views (viewString) as shown above.
The above code did not throw error, but it did not update the web part.
Please advise how to move forward.Hi Samir,
When we click outside of the list view webpart on a webpart page (or allitems.aspx page) with containing multiple webparts, the list view webpart will lose the focus, and the selected items will be deselected, this is by design.
You can look at the following article with using the approach/workaround of Javascript to prevent the specified list view webpart from losing focus.
http://sharepoint.stackexchange.com/questions/44360/list-view-loses-focus-when-additional-webpart-added-to-page
//Set focus on our list web part
var webPart = document.getElementById('WebPartWPQ1');
WpClick({target: webPart});
//Prevent it from losing focus
SP.Ribbon.WebPartComponent.$3_1.deselectWebPartAndZone = function() { };
Thanks
Daniel Yang
TechNet Community Support -
How to Maintain two different prices for same material in different qty?
Dear all,
How to maintain two different prices for same material in different batch quantities in purchase order(ie.,info record)?
(Vendor is supplying quantities in 2 different batches & also in different prices)
Expecting valuable reply.
JeyakanthanIn a PO you can create 2 items, and each item can be maintained with a different price in the conditions.
In info record it is not possible to have different prices for the same period, except for scales.
so if you have a price of e.g. 2 USD for 1000 kg and 1,90 USD for 2000 kg then you can maintain this in scales, but you still have to have 2 items in the PO so that each one can individually find its price.
Alternative you can create contracts (as well with more than one item) to reflect the different prices and batches. -
How to make Different Price for same product in one Sale Order
How can i customizing my system?
I need to sale for different price same product A in one sale order. And price condition type cant be manually. i can separate them by position. for ex. in first position: product A is one price and in 2nd product A with discount. i tried to do it by changing a price group for 2nd position to determinate a discount condition but it generates invoice split.
Someone have any suggestions?Hi
you can have it automatically determined after some custo and using userexit_pricing_prepare_tkomp in MV45AFZZ and RV60AFZZ.
The idea is to use ítem category field (PSTYV) as a part of pricing data to determine different prices for same material by changing manually ítem category when creating a sales order
- you'll need to create a new ítem category copied from the one you´re using and do all assignments
- add field PSTYV, if not there, to pricing field catalog. This thread has an example on how to and coding required for userexits
http://scn.sap.com/thread/1693234
- Adjust your pricing sequence as per new table
- Maintain specific prices in new table for materials with this new ítem category
Finally, when creating a sales order change, when required, default ítem category by new one to get specific price for material.
Regards,
JM -
I have installed adobe CC on two different computers for same account so I can work at two different places. I uploaded files to it yesterday and I can't find it on the CC folder on second computer. What can I do?
Hi DeafScientist,
Please try the below mentioned links.
Creative Cloud Help | Browse, sync, and manage assets
Error: "Unable to sync files"
Creative Cloud File Sync | Known issues
Kindly revert if you are unable to sync files.
Thanks,
Atul Saini -
Engineering and Manufacturing Org has different name for same item
Dear All,
I have an Engineering department generally Create items and configure bills, routings then, transfer all to Manufacturing org.
My client has typical requirement as follows...
Engineering and manufacturing department has different name for same item.
Eg: Item A in Manufacturing org may be called as Item AA in Engg org. I have to maintain 2 names for same item. How to map this requirement in R12.
Regards,
SaravananCan oyu not make it an organization level item and specify the proce there instead of keeping it a master level item?
Regards,
Utsav. -
Selecting different parameters for same plot
So I am currently working on a VI to integrate on a system. In this VI I would like to have a plot that will aloow me to select different parameters for both X and Y axes. I was thinking of having a drop down menu with the different parameters, ie Time vs Pressure, Pressure vs Temperature. How can I go about making this?
I would also like to have the choice of plotting multiple signals on the same graph, ie Temperature 1 & Temperature 2 vs Time.
Right now I am only able to graph one paramater vs time, I am graphing Pressure vs Time on this current VI.
Thanks for the helpYou did not mention, whether you want an online plotting feature, or you have already all data, and you just want to plot them? The following regards to the online data collection case:
I would go with a XY-Graph. I would store the XY value pairs in arrays (or you can go with cluster and arrays inside), and building them incrementally. You can store them in shift register(s), but also think about how to avoid the memory leak (if your shift register(s) reaches a size limit, delete some data from the beginning).
The drop-down menu could be connected to an Event structure, where you can change the axis labels via property nodes, and also change the source of data for the Graph.
edit: you can also add multiple Y-axis to the Graph, if you find it useful -
Different results of same calculation between SQL and PL/SQL
This SQL statement:
select 1074 * (4 / 48) from dual;Gives the result 89.5.
However this PL/SQL block
declare
tmp NUMBER;
begin
SELECT 1074 * (4 / 48) into tmp from dual;
dbms_output.put_line('Result '||tmp);
end;Gives a different result:
Result 89.49999999999999999999999999999999999996
If I change and give my variable tmp a precision and scale, say (38,36) then the result is 89.5.
Edit. I have done this on both 10g (10.2.0.4.0) and 11g (11.1.0.7.0) with the same result in both.
Edited by: kendenny on Jul 9, 2010 10:19 AM for additional informationWhat's your current NUMWIDTH value in SQL*Plus (I'm assuming you are using that as your tool)?
SQL> set numwidth 50
SQL> select 1074 * (4 / 48) from dual;
1074*(4/48)
89.49999999999999999999999999999999999996 -
The Outlook 2013 "Search People" box does not function properly. It frequently displays incorrect results or a mess of duplicate results. I've reported previous issues about this and consolidating my posts into one (with screenshots this
time). Hopefully this message will be forwarded to or seen by the Outlook programmers. It really needs to be fixed.
Outlook 2010 and other prior versions worked perfectly. You search for name, you get ONE result with the info you're looking for. FAST AND EASY. But with Outlook 2013 Microsoft has created a heck of a mess resulting in huge frustration and productivity loss
with such simple but important tasks.
I have hundreds of contacts stored in my Outlook address book, and they all have COMPLETE contact info added.
One major issue that I'm experiencing in the new Outlook 2013 is that I now get average of 4 or more duplicate name results appearing for the same contact. And each result contains different and incomplete contact info, making it impossible for me to quickly
find the basic info I'm looking for. The cause of this issue is that Outlook 2013 now provides results from not only your local address book(s), but it also shows results based on your email history and social media accounts setup.
And there's no way to turn this off, or at least specify what folders and/or accounts the People Search box should use.
To make matters worse, the Microsoft developers conveniently forgot to add some form of an indicator (like a small icon besides each name result in the list) that clearly indicates what result is from what source. So you must manually click on each
result one at a time and repeat the search until you locate the correct one.
For one specific example, I have a contact stored in my local address book called
Infusionsoft. When I type "Infusionsoft" in the People Search box to quickly find a phone number, Outlook 2013 shows me 7 results with the same name. See the screenshot below:
As you can see in the screenshot above, every result just says "Infusionsoft", so I have to manually click on each name result one at a time and repeat the process until I find the correct one from my address book. This same thing happens with other
random contacts.
From what I can tell, Outlook is pulling results based on based on recent emails I've received from different people with "@infusionsoft.com" in their email address. So the first result shows "[email protected]" (just the email
address), the second result shows "[email protected]", the third result shows "[email protected]" and so forth. I don't want Outlook to show all of that. I just want what's in my address book!
And you would think that the last result would be the correct one from my address book, but no. Sometimes its the 5th result, and other times it's the 3rd or 7th result. So there's no freaking order of things here.
We simply need the ability to turn off searching of email history and other accounts when using the People Search box. Problem fixed.
(And please don't tell me that I need to "link" every incorrect result to one main contact. You shouldn't expect everyone to have to tediously link any and all results that appear to a record. ESPECIALLY when 5+ results for each contact appear regularly.)
ISSUE 2: Some names must be typed in a different way for the Search People to locate them
Another big issue I'm having with the Search People box is that some name searches don’t show the correct result, unless I search for their names in a different way.
For one specific example, I have a contact stored in my address book named "Dave Johnson". When I type "Dave Johnson" in the Search People box, one result appears, but it's just his email address, only. It's not the result that's stored in my Outlook address
book with his phone number, addresses, etc. Screen shot below:
If I type in Dave's name reverse order (Johnson Dave), no results are found at all.
Now if I just type in just"Johnson" all by itself, it finds Dave's correct result (the one stored in my Outlook Address Book). Along with everybody else that has "Johnson" in their name (see screenshot below)...
I double-checked how I have Dave's name programed in my address book, and it's in there as "Dave Johnson" for both the Full Name and File As fields.
Also, the name order shouldn't make any difference when using the People Search Box anyway. Sometimes I can find people by Last Name, First Name or First Name, Last Name. Only with random contacts does it get difficult finding their info and
I have to do strange things like this to find them from the People Search box.
ISSUE 3: Some Search People results only yield an email address only.
For other random contacts, some search results only yield an email address with no other contact details. But I can open the persons contact card from the address book manually, with the same email address shown! Screenshot below...
In the screenshot above, I have outlined the Search People box results in red, and the Address Book results in green. You can clearly see that "Robert White" is a contact stored in my local address book with full contact details, but the Search People result
only shows his email address! Again, it's not consitent. It's hit or miss with different people.
ISSUE 4: Some results just don't appear at all, but they are in the address book
Another issue I'm experiencing with the People Search Box is that some people simply cannot be found. But I can see their contact info just fine if I click on the "People" tab down at the bottom of the page and type in their name in the "Search Contacts"
field. Why can't the People Search box find certain people? I opened up their contact details and cannot find a single thing that would prevent them from showing up in results.
These are clearly serious bugs that need to be fixed. And I'm shocked as to how this got missed--or ignored during alpha and beta testing. I see the "idea" behind the developers having the Search People box search everything outside of the
address book, but in real world application this causes a heck of a lot of problems & confusion, and it needs to be fixed ASAP.
For technical details, I have Outlook 2013 running on two computers using hosted Exchange 2010. One system is Windows 7 and other is Windows 8. The same problems occur on BOTH computers. As far as my Outlook account setup, I have all contacts stored in the
main address book (no sub-folders or other folders).
Can someone help communicate this message to the Outlook developers??? The "Frown" button limits me to 100 characters and one image. There's no way I can communicate this level of detail and steps to duplicate in 100 characters!Thanks for your reply.
1) The instant search boxes in each individual page work just fine. If I am on the People page and type in a name in the "Search Contacts" field, it searches my contacts and displays the results that I want. But I should not have to leave whatever screen
I'm in to find people now. In Outlook 2010 and earlier versions, I could be on the calendar page and then search for a contact without clicking off the calendar completely. For productivity-sake, it's a huge waste of time and hassle now.
2) I'm familiar with how contact linking works, and quite frankly it's a huge mess in general. I NEVER create multiple contacts for the same person. I get that Outlook 2013 get confused now when it detects a LinkedIn or Facebook account for the same person
already in my Outlook address book, but we need to have options that allow us to turn off results from some or all social networks. This is a big part of the problem.
Think about it this way - The average person has 150+ LinkedIn connections, and more for Facebook. Many people today have accounts for both and they are setup with the same email address. When Outlook 2013 has to scan all the networks IN ADDITION to your
local address book(s), it's a no brainer that it can get very confused trying to display results.
Another big part of the problem is that Outlooks new search system also scans your email history. I receive emails from people who use multiple email addresses, or emails from companies with multiple reps or ticket systems that send you a unique
ticket ID # ending in the same email address domain. Now Outlook displays people search results based on everything under the sun in my email history. This is beyond frustrating (see my "Infusionsoft" screenshot above in the first post).
Again, I want to stress that for the search examples I referenced, I only have one entry in my Outlook address book for each person. And that's all I want to find when I search for people--what's already in my own address book!
In summary:
We need an OPTION to turn off searching external networks when using the People Search box
We need an option to tell Outlook to not scan email history for people search results (I think this needs to be disabled entirely actually. It's not helpful at all)
There should be a fixed priority for displaying people search results, with local address book results FIRST, followed by social network results.
There should be a clear icon/indicator next to each result that gives you a clue as to where the result is coming from. Your address book? Facebook? LinkedIn? We should not need to click on each result to get a hint as to where it's coming from.
Work out the bugs in general with the new search system.
One other thing that I didn't mention is that the Search People box also shows results for people I'm not even "friends" or connected with on the different social networks. But I've noticed that some people use the same email address for those networks that
I already have programmed for them in my address book, which is why Outlook sometimes shows me these results. Does that make sense?
I'll try rebuilding the index, but after testing Outlook 2013 on 3 different machines so far and seeing the same results (all slightly different results on each machine and very inconsistent), I doubt this will address the issue. -
Different Schemas in different environments for same tables used in a Universe
Hi,
I have a Universe in Development where I have tables pointed to a schema (DW) in DEV but in TEST/INT I have the same tables under a different schema (TESTDW). So when I promote the Universe & reports from DEV to TEST, I will be getting errors as the schema is incorrect. So we need to find a way so that we can define the schema globally instead of having it at the individual table.
I know we can repoint the schemas, etc but i need to avoid extra work in other environments.
Known Solutions: Promote the reports to TEST, then select all the tables & change the schema by Right Clicking the selected tables and selecting Change Qualifier/Owner.
One of the few reasons, I don't want to follow this route, because I have lot of derived tables which I need to change it manually by editing the SQL Statement, & also If I add new tables or columns again in future & promote them to TEST, then again I have to change the schema.
Did anyone faced this kind of issue?Is there any other way that we can use like Begin_Sql , etc?
(FYI, I am using BO4.0 SP5)Mark, Thanks a lot for your concern. We actually have same schema name across all 3 environments but there is a huge project going on in my company which is kind of hard to explain, so our team has decided to go ahead with a different names for schemas as 2 different teams will be working on paralelly on these schemas & they will combine them after a year or so. (I know this is not a solution)
Thanks Swapnil for Synonyms solution. Your solution might have worked, if we were using BO 4.1 SP5 but unfortunately we are using BO 4.0 and in this version I can't view any synonym tables in the universe. -
Date function giving different results for different connections
Hi there,
I am relatively new to BusinessObjects universe design, so please forgive me if this turns out to be a UTS (user-too-stupid) error.
I have created two universes. They are identical apart from the fact that they connect to different data marts (a live one and a testing one).
Within both universes there is an object with the following SQL:
CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
When I use the universe using WEBI connected to one data mart, I correctly get a set of dates and a corresponding set of dates with the day set to 1 (e.g. 23 Mar 2005 and 1 Mar 2005), but I change the WEBI query to point to the other universe, it incorrectly sets the month to 1 and leaves the day alone (i.e. the above to 23 Jan 2005).
When I run this using MS SQL Server Management Studio as part of a query against either data mart, I get the same results for both data marts:
SELECT
DispatchDateCalendar.date,
CAST(CAST(( DispatchDateCalendar.yearNumber ) AS VARCHAR) + '/' + CAST(( DispatchDateCalendar.monthNumber ) AS VARCHAR) + '/01 00:00:00' AS DATETIME)
FROM
DIMVolume INNER JOIN DIMIssue ON (DIMVolume.volumeKey=DIMIssue.volumeKey)
INNER JOIN DIMCalendar DispatchDateCalendar ON (DIMIssue.issuePublicationDate=DispatchDateCalendar.date)
WHERE
DIMVolume.volumePublicationYear = 2008
Has anyone got any advise on how I go about finding the cause of this problem and correcting it?
I asked our DBA who said he wouldn't know where to start looking.
Thanks in advance,
PaulDon't have any links (oracle documentation search?). Currently the databases I work with are mostly NLS_CHARACTERSET WE8MSWIN1252 and I need to ensure that '£' and other characters are displayed correctly so a few years ago (after a little googling about the difference between windows and command line tools) I put host chcp 1252 in my glogin.sql.
-
Regular Expression: Different results when using FIND or regex classes
Hi,
has anybody an idea why the FIND REGEX statement and the regex class delivers different results when searching for
^\*
in
I try to find every place with an asterisk as first sign of the line.
The FIND statement
DATA gv_string TYPE string.
DATA gv_pattern TYPE string.
DATA gt_match_result TYPE match_result_tab.
gv_string = '****'.
gv_pattern = '^\*'.
FIND ALL OCCURRENCES OF REGEX gv_pattern
IN gv_string
RESULTS gt_match_result.
returns one hit as expected. But the class cl_abap_regex and cl_abap_matcher returns four hits in this example:
DATA gv_string TYPE string.
DATA gv_pattern TYPE string.
DATA gt_match_result2 TYPE match_result_tab.
DATA gx_regex TYPE REF TO cl_abap_regex.
DATA gx_matcher TYPE REF TO cl_abap_matcher.
gv_string = '****'.
gv_pattern = '^\*'.
TRY.
CREATE OBJECT gx_regex
EXPORTING
pattern = gv_pattern.
CATCH cx_sy_regex .
BREAK-POINT.
EXIT.
ENDTRY.
TRY.
CREATE OBJECT gx_matcher
EXPORTING
regex = gx_regex
text = gv_string.
CATCH cx_sy_matcher .
BREAK-POINT.
EXIT.
ENDTRY.
gt_match_result2 = gx_matcher->find_all( ).
BREAK-POINT.
Looks like the class doesn't consider the start of line symbol (^). Is there an error in my implementation?
Any help is appreciated.
MatthiasHi Jim,
thank you for your reply. But to negate a value set of single characters you have to use
[^ ]
I used just the character
^
This is defined as anchor character for the start of a line (See the documentation link you posted -> chapter 'Special characters for search strings') .
As I understand it, should the FIND REGEX statement does the same as the CL_ABAP_REGEX and CL_ABAP_MATCHER classes. Therefore, I do not understand, why both implementations deliver another result.
And I didn't find an answer for that. Does anyone else?
Matthias -
P/L A/c for a single day gives different results for different users
Hi!
We have SAP B1 8.81 (PL 09) in our office. P/L Account for a particular date gives different value for a single account (Other Income Account) for one user and a consistent value for all other users. The user in question is a super user and does not seem to pick a specific entry posted in the Other Income Account for that day thus giving erroneous result. I have checked the Trial Balance for that day and it gives proper result. Only the P/L account gives erroneous data. Could anyone help with the reason for this.
Thanks
SreekumarHi Jitin,
Thanks for your reply.
I tried the way you mentioned. However, the result is the same.
The entry that I'm talking about is an automatic journal entry posted through the Outgoing Payment option.
To make it more clear, an outgoing payment to a vendor was posted on 05/19/11 for 1,42,178.32. The check was drawn only for 71,089.16 which was the correct amount and the remaining amount (71,089.16) got posted in the Other Income account. The P/L account for this date is not picking the amount of 71,089.16 in the Other Income Account.
Thanks & Regards
Sreekumar
Edited by: Sreekumar on Jan 31, 2012 5:58 PM -
RSA3 data in R/3 and PSA data in BI are different values for same Doc No.
Hello BI experts,
I have a weird situation in BI. RSA3 and PSA are not reconciled for same Doc no.
Data Source: 0FI_AR_4 (enhanced in user exit with some custom fields as well)
Extracting data using Infopakcage in BI as a Init load into PSA.
The values in RSA3 in R/3
Doc No Amount
1400003125 714.29
The values in PSA in BI
Doc No Amount
1400003125 581.56
Anyone come across this situation. Any help would be greatly appreciated.
Thanks much,
Anil1. yes selections are same in RSA3 and in Infopackage
2. Yes pulling all data records in RSA3. Thats only record exits for that doc#
3. Its not a delta, we are pulling in RSA3 all records and Initial load to PSA.
Thanks much,
Anil
Maybe you are looking for
-
Hi, I have been rebuilding our iTunes library on a external hard drive, no problems to start with. The pc crashed the other day and I lost some of the files. I can see the music files on the external hard drive, but I haven't been able to get iTunes
-
Hi all, How to add a attachment in Adobe forms. i.e how do we attach the document link to the adobe forms. Thank you! Prasad
-
OT: Melodyne Tutorial Videos
I didn't realize that Melodyne has a nice set of instructional videos until I got their latest newsletter. They're here: http://bit.ly/acklK6
-
I am using Adobe Prelude CC and want to export my project to Premiero Prp CC, but it doesn´t allow me. It says that the project that I am trying to export is can´t be opened in my Premiere because it was made in a newer version but actually I downloa
-
Query running very slow with db file sequential read waits which all indexes would be recommended
My query is doing lot of db file sequential reads I want to create few indexes and extended stats please help me with your suggestions. Can anybody suggest I am unable to paste my query here -don't know why it's not getting pasted--is it not permitte