HTTPConnection POST -- missing data
Help!
I have a client-server MIDP app; the client communicates with the server using HTTPConnection POST requests.
The application is running on PalmOS (with MIDP4PalmOS) on the Handspring Visor Prism.
(I am using a Xircom Wireless Ethernet module.)
The first request/response works fine.
Subsequent request/responses do not work.
Network sniffing shows missing HTTP data.
That is, some HTTP data is not transmitted to the server.
Sometimes the body, sometimes the Content-Length and sometimes the Content-Type is missing (or all of
them).
I have noticed that if I use the header "Connection" "close" then I can go longer before the data starts to get dropped, but eventually it does.
Any ideas? Are there any known issues with POST and MIDP4PalmOS?
Thanks for any help...
Hi,
Have you solved this thing?
I would like to now how?
Best Regards,
Ove
Email: [email protected]
Similar Messages
-
I'm trying to print a poster I created and posted on my website, it was created in power point, saved as pdf, and uploaded using wordpress. It looks good online but is missing data when printed. It contains almost all the information except for about 6 lines, which happen to be important. Any thought are appreciated.
No its weird, everything was the same. I sort of resolved it, since he can view the PDF fine on his comupter but also wanted to print it, I just exported all the slides as JPEGS and made a new InDesign book with those on the pages and exported that as a PDF. Seemed to work for him, I just don't know what happened!
-
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
Selecting missing date range with previous records value
Hello,
SQL> select * from v$version;
BANNER
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - Production
PL/SQL Release 11.2.0.1.0 - Production
CORE 11.2.0.1.0 Production
TNS for 32-bit Windows: Version 11.2.0.1.0 - Production
NLSRTL Version 11.2.0.1.0 - Production
SET DEFINE OFF;
create table t(NBR_OF_S number, NBR_OF_C number, S_DATE date);
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(34, 40, TO_DATE('05/01/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(27, 29, TO_DATE('03/01/2012 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(21, 23, TO_DATE('12/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(19, 20, TO_DATE('10/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(18, 19, TO_DATE('09/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(17, 17, TO_DATE('08/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(16, 16, TO_DATE('06/01/2011 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(9, 9, TO_DATE('12/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(5, 5, TO_DATE('11/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
Insert into T
(NBR_OF_S, NBR_OF_C, S_DATE)
Values
(2, 2, TO_DATE('01/01/2010 00:00:00', 'MM/DD/YYYY HH24:MI:SS'));
COMMIT;
SQL> select * from t order by 3 desc;
NBR_OF_S NBR_OF_C S_DATE
34 40 01-MAY-12
27 29 01-MAR-12
21 23 01-DEC-11
19 20 01-OCT-11
18 19 01-SEP-11
17 17 01-AUG-11
16 16 01-JUN-11
9 9 01-DEC-10
5 5 01-NOV-10
2 2 01-JAN-10
10 rows selected.I want the output like as follows, all those missing date i need to carry on the last one's number
NBR_OF_S NBR_OF_C S_DATE
34 40 01-MAY-12
27 29 01-APR-12
27 29 01-MAR-12
21 23 01-FEB-12
21 23 01-JAN-12
21 23 01-DEC-11
19 20 01-NOV-11
19 20 01-OCT-11
18 19 01-SEP-11
17 17 01-AUG-11
16 16 01-JUL-11
16 16 01-JUN-11
9 9 01-MAY-11
9 9 01-APR-11
9 9 01-MAR-11
9 9 01-FEB-11
9 9 01-JAN-11
9 9 01-DEC-10
5 5 01-NOV-10
2 2 01-OCT-10
2 2 01-SEP-10
2 2 01-AUG-10
2 2 01-JUL-10
2 2 01-JUN-10
2 2 01-MAY-10
2 2 01-APR-10
2 2 01-MAR-10
2 2 01-FEB-10
2 2 01-JAN-10Any help would be greatly appreciate.
Note: The date value I have created for this sample is monthly, based on the condition the data value I may need to generate weekly also. That's Monthly or weekly either one
Thanks,And what is AMT? You didn't provide such column in your original post. Anyway, MODEL solution based on original post:
select nbr_of_s,
nbr_of_c,
s_date
from t
model
partition by(rowid)
dimension by(1 d)
measures(
nbr_of_s,
nbr_of_c,
s_date,
months_between(lag(s_date) over(order by s_date desc),s_date) cnt
rules(
nbr_of_s[for d from 1 to cnt[1] increment 1] = nbr_of_s[1],
nbr_of_c[for d from 1 to cnt[1] increment 1] = nbr_of_c[1],
s_date[for d from 1 to cnt[1] increment 1] = add_months(s_date[1],cv(d) - 1)
order by s_date desc
NBR_OF_S NBR_OF_C S_DATE
34 40 01-MAY-12
27 29 01-APR-12
27 29 01-MAR-12
21 23 01-FEB-12
21 23 01-JAN-12
21 23 01-DEC-11
19 20 01-NOV-11
19 20 01-OCT-11
NBR_OF_S NBR_OF_C S_DATE
18 19 01-SEP-11
17 17 01-AUG-11
16 16 01-JUL-11
16 16 01-JUN-11
9 9 01-MAY-11
9 9 01-APR-11
9 9 01-MAR-11
9 9 01-FEB-11
NBR_OF_S NBR_OF_C S_DATE
9 9 01-JAN-11
9 9 01-DEC-10
5 5 01-NOV-10
2 2 01-OCT-10
2 2 01-SEP-10
2 2 01-AUG-10
2 2 01-JUL-10
2 2 01-JUN-10
NBR_OF_S NBR_OF_C S_DATE
2 2 01-MAY-10
2 2 01-APR-10
2 2 01-MAR-10
2 2 01-FEB-10
2 2 01-JAN-10
29 rows selected.
SQL> SY.
Edited by: Solomon Yakobson on Jun 11, 2012 1:34 PM -
ORA-01173: data dictionary indicates missing data file from system tablespa
Hello
My Database is 11gR1 and Linux is the OS. Thought of posting it as a new thread as things have changed a lot.
2 of my database file were lost due to hardware failure. (the datafile do not belong to SYSTEM TABLESPACE) and and the second was datafile for undo tablespace.
I created control files with command not mentioning the lost datafiles:
CREATE CONTROLFILE REUSE DATABASE "BSSGLB" NORESETLOGS NOARCHIVELOG
MAXLOGFILES 32
MAXLOGMEMBERS 5
MAXDATAFILES 600
MAXINSTANCES 10
MAXLOGHISTORY 1168
LOGFILE
GROUP 1 '/DB/app/oracle/oradata/bssglb/redo01.log' SIZE 500M,
GROUP 2 '/DB/app/oracle/oradata/bssglb/redo02.log' SIZE 500M,
GROUP 3 '/DB/app/oracle/oradata/bssglb/redo03.log' SIZE 500M
-- STANDBY LOGFILE
DATAFILE
'/DB/app/oracle/oradata/bssglb/system01.dbf',
'/DB/app/oracle/oradata/bssglb/sysaux01.dbf',
'/DB/app/oracle/oradata/bssglb/users01.dbf',
'/DB/app/oracle/oradata/bssglb/bss01.dbf',
'/var/oracle/oradata/bssglb/bss02',
'/var/oracle/oradata/bssglb/system02.dbf'
CHARACTER SET US7ASCII
I have all the files mentioned in the datafile section of the above command.
But somehow when i try to open the DB, first it asks for the media recover. When i recover database then it disconnects database saying:
ERROR at line 1:
ORA-01092: ORACLE instance terminated. Disconnection forced
Process ID: 4768
Session ID: 170 Serial number: 5
Contents of the alert log file are:
Beginning crash recovery of 1 threads
parallel recovery started with 3 processes
Started redo scan
Completed redo scan
1 redo blocks read, 0 data blocks need recovery
Started redo application at
Thread 1: logseq 7, block 2, scn 20356182450
Recovery of Online Redo Log: Thread 1 Group 1 Seq 7 Reading mem 0
Mem# 0: /DB/app/oracle/oradata/bssglb/redo01.log
Completed redo application
Completed crash recovery at
Thread 1: logseq 7, block 3, scn 20356202453
0 data blocks read, 0 data blocks written, 1 redo blocks read
Sun Feb 20 08:16:23 2011
Thread 1 advanced to log sequence 8
Thread 1 opened at log sequence 8
Current log# 2 seq# 8 mem# 0: /DB/app/oracle/oradata/bssglb/redo02.log
Successful open of redo thread 1
MTTR advisory is disabled because FAST_START_MTTR_TARGET is not set
Sun Feb 20 08:16:23 2011
SMON: enabling cache recovery
Errors in file /Oracle/app/oracle/diag/rdbms/bssglb/bssglb/trace/bssglb_ora_4550.trc:
ORA-01173: data dictionary indicates missing data file from system tablespace
Error 1173 happened during db open, shutting down database
USER (ospid: 4550): terminating the instance due to error 1173
Sun Feb 20 08:16:25 2011
Instance terminated by USER, pid = 4550
ORA-1092 signalled during: alter database open...
ORA-1092 : opiodr aborting process unknown ospid (4550_182910338848)
Sun Feb 20 08:16:26 2011
ORA-1092 : opitsk aborting process
Guys please help me out of this situation.
Regards, ImranSTOP opening new threads for ongoing solution to SAME problem
Re: I have copy of data files! How to install and add these files to database!
Re: Failure of network storage!
Re: I have copy of data files! How to install and add these files to database!
Handle: misterimran
Email: misterimran
Status Level: Newbie
Registered: Jan 15, 2002
Total Posts: 1,109
Total Questions: 130 (115 unresolved)
so many questions & so few answers!
Edited by: sb92075 on Feb 19, 2011 7:49 PM -
HttpConnection.POST to an ASP page
First - I'm new to J2ME & I'm a novice to java in general. I'm an ASP programmer & I need to write an app for a nextel phone in J2ME.
I have written a test application that just sends an http request to my asp page and the page should send back the appropriate response to be displayed on the phone, however the asp page does not seem to be receiving the data. However it IS sending back a response. I have tried removing flush() from the dataOutputStream, but that didn't fix the problem. Here is the code inside my MIDlet:
private void loginViaHTTPConnection(String strLogin) throws IOException {
HttpConnection hconn = null;
InputStream is = null;
OutputStream os = null;
StringBuffer data = new StringBuffer();
try {
hconn = (HttpConnection)Connector.open(url);
hconn.setRequestMethod(HttpConnection.POST);
hconn.setRequestProperty("IF-Modified-Since",
"20 Jan 2001 16:19:14 GMT");
hconn.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
hconn.setRequestProperty("Content-Language", "en-CA");
os = hconn.openOutputStream();
// send request to the ASP script
String str = "PIN=" + strLogin;
byte postmsg[] = str.getBytes();
for(int i=0;i < postmsg.length;i++) {
os.write(postmsg);
//os.flush();
//receive response
is = hconn.openDataInputStream();
int ch;
while((ch = is.read()) != -1) {
data.append((char) ch);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(hconn != null) {
hconn.close();
resultItem.setText(data.toString());
display.setCurrent(resultScreen);
The ASP code is:
<%
PIN = request("PIN")
If PIN = "" Then
response.write "INVALID"
Else
response.write "GOOD"
End If
%>
The response returned is always "INVALID" no matter what I pass it.
Any help would be greatly appreciated.deepspace
Thank you, Thank you, Thank you!!!
That worked like a charm.
Working Code in case anyone's interested:
private void loginViaHTTPConnection(String strLogin) throws IOException {
HttpConnection hconn = null;
InputStream is = null;
OutputStream os = null;
StringBuffer data = new StringBuffer();
try {
String str = "PIN=" + strLogin + '\r';
hconn = (HttpConnection)Connector.open(url);
hconn.setRequestProperty("IF-Modified-Since",
"20 Jan 2001 16:19:14 GMT");
hconn.setRequestProperty("User-Agent",
"Profile/MIDP-2.0 Configuration/CLDC-1.0");
hconn.setRequestProperty("Content-Language", "en-CA");
hconn.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
hconn.setRequestMethod(HttpConnection.POST);
// Send request to ASP page
os = hconn.openOutputStream();
os.write(str.getBytes());
os.flush();
//receive response
is = hconn.openDataInputStream();
int ch;
while((ch = is.read()) != -1) {
data.append((char) ch);
} finally {
if(is!= null) {
is.close();
if(os != null) {
os.close();
if(hconn != null) {
hconn.close();
resultItem.setText(data.toString());
display.setCurrent(resultScreen);
} -
Hi
Data is being transferred from HR system to SRM system using PFAL
but idocs in SRM system are getting failed with error ' missing data'
detailed desc shows that infotype 1001 subtype A209 data is missing and Business partner cannot be created.
How it can be resolved, can it be resolved by sending data (including Infotype 1001) again,
if yes, then what we will do with idocs which are in error(we cannot archive)
2 - can issue be resolved using failed idocs?
thanksData is being transferred from HR system to SRM system using PFAL
but idocs in SRM system are getting failed with error ' missing data'
detailed desc shows that infotype 1001 subtype A209 data is missing and Business partner cannot be created.
How it can be resolved, can it be resolved by sending data (including Infotype 1001) again,
if yes, then what we will do with idocs which are in error(we cannot archive)
The key here is post data objects in sequence.
Yes you can send data again and try resposting. IF you dont need IDOCs you may delete them WE11
2 - can issue be resolved using failed idocs?
report them once missing data is in system -
I have 4 asynchronous running VIs that share data between each other via queues. The producer VI puts the data on 2 different queues; one for a consumer VI to write data to a file and one for 2 consumer VIs to display data. The first display VI takes all the data (in waveform format) and converts it to a string for display in a table. The second display VI takes a subset of the data and converts it to DBL for display on individual indicators.
I am not experiencing any lost data being written to the data file. I am experiencing missing data for the displays. I put a test sine wave on one of the data channels to figure out which queue output is having the problem. There are about 90 channels of data being collected.
The table VI only displays the latest data point for each channel in the table. I didn't notice any missing data until I wired the test channel into a chart. I thought could be an update issue. However, ...
The subset VI displays all the data from the test channel in a chart and there is missing data. Out of all the channels only one is being displayed.
The producer VI puts the data on the queue using Lossy Enqueue Element function. The consumers get the data from the queue using the Preview Queue Element function.
Any ideas on where to begin to diagnosis the problem? I would post code but I haven't successfully posted any files to this forum. Is there any other location I could post?Bob_Schor wrote:
Can you point to an example, or provide one? This sounds like an Interesting Technique to Learn ...
I do this all the time. My prime example is with data that needs logged and updated to the GUI. So I have one loop that processes data and then sends it by generating a User Event. I then have a data logging loop that is registered for the event that can log the data. I will then have another loop that handles the GUI that is registered for the event to just update an indicator.
This example is a lot dumber than that (it just updates two indicators). Saved in 2014. Let me know if you need an older version.
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
User Event.zip 17 KB -
Hi All
I have a set of 492 records is there any way other than INSERT to post the data on this forum?
ThanksThanks GVR, I have a source table with three fields. Each field is at a different level of heirarchy , there are total of 6 levels and i have to flaten the table. Atotal of 492 records
OWNER_ID PARENT_ID LEVEL_ID
200 7000 4
622 1000 4
623 2000 4
624 3000 4
625 4000 4
626 5000 4
627 6000 4
1000 9000 3
1020 7000 4
1040 7000 4
1051 1070 6
1052 1070 6
1053 1070 6
1054 1070 6
1055 1070 6
1056 1070 6
1060 7000 4
1070 1080 5
1071 1080 5
1080 1000 4
1081 1071 6
1082 1071 6
1083 1071 6
1084 1071 6
1085 1071 6
1086 1071 6
1087 1071 6
1091 1070 6
1092 1070 6
1093 1070 6
1100 1000 4
1101 1100 5
1102 1100 5
1103 1100 5
1104 1100 5
1170 7000 4
1200 1000 4
1201 1200 5
1202 1200 5
1203 1200 5
1204 1200 5
1300 1000 4
1301 1300 5
1302 1300 5
1303 1300 5
1304 1300 5
1317 1
1400 1000 4
1401 1400 5
1402 1400 5
1403 1400 5
1411 1000 4
1412 622 5
1413 622 5
1414 622 5
1415 622 5
1418 622 5
1500 1000 4
1501 1500 5
1502 1500 5
1503 1500 5
1504 1500 5
2000 9000 3
2070 2080 5
2071 2080 5
2080 2000 4
2081 2070 6
2082 2070 6
2083 2070 6
2084 2070 6
2085 2070 6
2086 2070 6
2088 2070 6
2091 2071 6
2092 2071 6
2093 2071 6
2094 2071 6
2095 2071 6
2096 2071 6
2097 2071 6
2100 2000 4
2101 2100 5
2102 2100 5
2103 2100 5
2200 2000 4
2201 2200 5
2202 2200 5
2203 2200 5
2204 2200 5
2220 7000 4
2240 7000 4
2270 7000 4
2280 7000 4
2300 2000 4
2301 2300 5
2302 2300 5
2303 2300 5
2304 2300 5
2360 7000 4
2370 7000 5
2400 2000 4
2401 2400 5
2402 2400 5
2403 2400 5
2404 2400 5
2410 8000 5
2420 8000 5
2421 2000 4
2422 623 5
2423 623 5
2424 623 5
2425 623 5
2428 623 5
2460 8000 5
2500 2000 4
2501 2500 5
2502 2500 5
2503 2500 5
2504 2500 5
2505 2500 5
2590 7000 4
2591 7000 4
2600 2000 4
2601 2600 5
2602 2600 5
2603 2600 5
2604 2600 5
3000 9000 3
3010 7000 4
3040 7000 4
3070 3080 5
3071 3080 5
3080 3000 4
3081 3070 6
3082 3070 6
3083 3070 6
3084 3070 6
3085 3070 6
3086 3070 6
3091 3070 6
3092 3070 6
3093 3070 6
3094 3070 6
3100 3000 4
3101 3100 5
3102 3100 5
3103 3100 5
3104 3100 5
3105 3100 5
3106 3100 5
3200 3000 4
3201 3200 5
3202 3200 5
3203 3200 5
3204 3200 5
3300 3000 4
3301 3300 5
3302 3300 5
3303 3300 5
3304 3300 5
3431 3000 4
3432 624 5
3433 624 5
3434 624 5
3435 624 5
3438 624 5
3500 3000 4
3501 3500 5
3502 3500 5
3503 3500 5
3504 3500 5
3600 3000 4
3601 3600 5
3602 3600 5
3603 3600 5
3604 3600 5
3605 3600 5
4000 9000 3
4070 4080 5
4071 4080 5
4080 4000 4
4081 4070 6
4082 4070 6
4083 4070 6
4084 4070 6
4085 4070 6
4086 4070 6
4087 4070 6
4088 4070 6
4089 4070 6
4090 4070 6
4091 4070 6
4092 4070 6
4093 4070 6
4094 4071 6
4095 4071 6
4096 4071 6
4097 4071 6
4098 4071 6
4099 4071 6
4100 4000 4
4101 4100 5
4102 4100 5
4103 4100 5
4104 4100 5
4105 4100 5
4106 4100 5
4160 622 5
4161 622 5
4200 4000 4
4201 4200 5
4202 4200 5
4203 4200 5
4260 623 5
4261 623 5
4300 4000 4
4301 4300 5
4302 4300 5
4360 624 5
4361 624 5
4400 4000 4
4401 4400 5
4402 4400 5
4403 4400 5
4441 4000 4
4442 625 5
4443 625 5
4444 625 5
4445 625 5
4448 625 5
4460 625 5
4461 625 5
4560 626 5
4561 626 5
4600 4000 4
4601 4600 5
4602 4600 5
4603 4600 5
4660 627 5
4661 627 5
4700 4000 4
4701 4700 5
4702 4700 5
4703 4700 5
4704 4700 5
5000 9000 3
5014 7000 4
5070 5080 5
5071 5080 5
5079 5070 6
5080 5000 4
5081 5070 6
5082 5070 6
5083 5070 6
5084 5070 6
5085 5070 6
5086 5070 6
5087 5070 6
5088 5070 6
5089 5070 6
5090 5071 6
5091 5071 6
5092 5071 6
5093 5071 6
5094 5071 6
5095 5071 6
5096 5071 6
5097 5071 6
5100 5000 4
5101 5100 5
5102 5100 5
5103 5100 5
5104 5100 5
5133 7000 4
5178 7000 4
5200 5000 4
5201 5200 5
5202 5200 5
5203 5200 5
5204 5200 5
5250 8000 5
5251 7000 4
5252 7000 4
5253 7000 4
5300 5000 4
5301 5300 5
5302 5300 5
5303 5300 5
5304 5300 5
5365 7000 4
5366 7000 4
5400 5000 4
5401 5400 5
5402 5400 5
5403 5400 5
5404 5400 5
5451 5000 4
5452 626 5
5453 626 5
5454 626 5
5455 626 5
5458 626 5
5500 5000 4
5501 5500 5
5502 5500 5
5503 5500 5
5504 5500 5
6000 9000 3
6070 6080 5
6071 6080 5
6080 6000 4
6081 6070 6
6082 6070 6
6083 6070 6
6084 6070 6
6085 6070 6
6086 6070 6
6100 6000 4
6101 6100 5
6102 6100 5
6103 6100 5
6300 6000 4
6301 6300 5
6302 6300 5
6303 6300 5
6304 6300 5
6305 6300 5
6400 6000 4
6401 6400 5
6402 6400 5
6403 6400 5
6404 6400 5
6461 6000 4
6462 627 5
6463 627 5
6464 627 5
6465 627 5
6468 627 5
6500 6000 4
6501 6500 5
6502 6500 5
6503 6500 5
6504 6500 5
6505 6500 5
6600 6000 4
6601 6600 5
6602 6600 5
6603 6600 5
6604 6600 5
7000 1317 3
7085 7000 4
7086 7000 4
7087 7000 4
8000 7000 4
8070 7000 4
9000 1317 2
9001 6071 6
9002 6071 6
9003 6071 6
9004 6071 6
9005 6071 6
9006 1071 6
9008 2070 6
9009 2070 6
9010 2070 6
9011 3071 6
9012 3070 6
9013 3071 6
9014 3071 6
9015 3071 6
9016 3071 6
9017 3071 6
9018 3071 6
9019 3071 6
9020 3071 6
9021 9142 5
9022 9142 5
9023 9142 5
9025 7000 4
9026 9142 5
9027 7000 4
9028 7000 4
9031 7000 4
9032 9031 5
9033 9142 5
9034 9142 5
9036 7000 4
9037 9031 5
9038 7000 4
9039 7000 4
9040 7000 4
9041 7000 4
9042 7000 4
9043 9142 5
9044 7000 4
9045 627 5
9048 626 5
9050 625 5
9052 624 5
9053 623 5
9054 623 5
9056 622 5
9057 9142 5
9058 6070 6
9059 6070 6
9060 6070 6
9061 9142 5
9062 9142 5
9063 9142 5
9064 1000 4
9065 2000 4
9066 3000 4
9067 4000 4
9068 5000 4
9069 6000 4
9070 1070 6
9071 7000 4
9072 7000 4
9075 9142 5
9076 9142 5
9077 9142 5
9078 9142 5
9079 9142 4
9080 7000 4
9081 5100 5
9082 5200 5
9084 1317 2
9085 9084 3
9086 9085 4
9087 9085 4
9088 9085 4
9089 9085 4
9090 9085 4
9091 9085 4
9092 7000 4
9093 7000 4
9094 7000 4
9095 7000 4
9096 7000 4
9097 7000 4
9098 7000 4
9099 7000 4
9100 7000 4
9101 7000 4
9102 7000 4
9103 7000 4
9104 7000 4
9105 7000 4
9106 7000 4
9107 7000 4
9108 7000 4
9109 7000 4
9110 7000 4
9111 7000 4
9112 7000 4
9113 7000 4
9114 7000 4
9115 7000 4
9116 7000 4
9117 7000 4
9118 7000 4
9119 7000 4
9120 7000 4
9121 7000 4
9122 7000 4
9123 7000 4
9124 7000 4
9125 7000 4
9126 7000 4
9127 7000 4
9128 7000 4
9129 7000 4
9130 7000 4
9131 7000 4
9132 7000 4
9133 7000 4
9134 9133 4
9135 9133 5
9136 9133 5
9137 9133 5
9138 9133 5
9139 7000 4
9140 5500 5
9141 9142 5
9142 1317 2
9143 9142 3
9144 9142 3
9145 9142 3
9146 9142 3
9147 9142 3
9148 9142 3
9149 9142 3I have a query
SELECT COALESCE (owner_level_6,
owner_level5,
owner_level4,
owner_level3,
owner_level2,
owner_level1
) AS owner_id,
k.*
FROM (SELECT t1.owner_id AS owner_level1, t2.owner_id AS owner_level2,
t3.owner_id AS owner_level3, t4.owner_id AS owner_level4,
t5.owner_id AS owner_level5, t6.owner_id AS owner_level_6
FROM stg_wms_setup_owner t1,
setup_owner t2,
setup_owner t3,
setup_owner t4,
setup_owner t5,
setup_owner t6
WHERE t1.owner_id = t2.parent_id(+)
AND t2.owner_id = t3.parent_id(+)
AND t3.owner_id = t4.parent_id(+)
AND t4.owner_id = t5.parent_id(+)
AND t5.owner_id = t6.parent_id(+)
AND t1.parent_id IS NULL) k
ORDER BY owner_idand its giving me the expected output BUT i'm missing 71 records at level 4
Resultant dataset
OWNER_ID OWNER_LEVEL1 OWNER_LEVEL2 OWNER_LEVEL3 OWNER_LEVEL4 OWNER_LEVEL5 OWNER_LEVEL_6
200 1317 7000 200
1020 1317 7000 1020
1040 1317 7000 1040
1051 1317 9000 1000 1080 1070 1051
1052 1317 9000 1000 1080 1070 1052
1053 1317 9000 1000 1080 1070 1053
1054 1317 9000 1000 1080 1070 1054
1055 1317 9000 1000 1080 1070 1055
1056 1317 9000 1000 1080 1070 1056
1060 1317 7000 1060
1081 1317 9000 1000 1080 1071 1081
1082 1317 9000 1000 1080 1071 1082
1083 1317 9000 1000 1080 1071 1083
1084 1317 9000 1000 1080 1071 1084
1085 1317 9000 1000 1080 1071 1085
1086 1317 9000 1000 1080 1071 1086
1087 1317 9000 1000 1080 1071 1087
1091 1317 9000 1000 1080 1070 1091
1092 1317 9000 1000 1080 1070 1092
1093 1317 9000 1000 1080 1070 1093
1101 1317 9000 1000 1100 1101
1102 1317 9000 1000 1100 1102
1103 1317 9000 1000 1100 1103
1104 1317 9000 1000 1100 1104
1170 1317 7000 1170
1201 1317 9000 1000 1200 1201
1202 1317 9000 1000 1200 1202
1203 1317 9000 1000 1200 1203
1204 1317 9000 1000 1200 1204
1301 1317 9000 1000 1300 1301
1302 1317 9000 1000 1300 1302
1303 1317 9000 1000 1300 1303
1304 1317 9000 1000 1300 1304
1401 1317 9000 1000 1400 1401
1402 1317 9000 1000 1400 1402
1403 1317 9000 1000 1400 1403
1411 1317 9000 1000 1411
1412 1317 9000 1000 622 1412
1413 1317 9000 1000 622 1413
1414 1317 9000 1000 622 1414
1415 1317 9000 1000 622 1415
1418 1317 9000 1000 622 1418
1501 1317 9000 1000 1500 1501
1502 1317 9000 1000 1500 1502
1503 1317 9000 1000 1500 1503
1504 1317 9000 1000 1500 1504
2081 1317 9000 2000 2080 2070 2081
2082 1317 9000 2000 2080 2070 2082
2083 1317 9000 2000 2080 2070 2083
2084 1317 9000 2000 2080 2070 2084
2085 1317 9000 2000 2080 2070 2085
2086 1317 9000 2000 2080 2070 2086
2088 1317 9000 2000 2080 2070 2088
2091 1317 9000 2000 2080 2071 2091
2092 1317 9000 2000 2080 2071 2092
2093 1317 9000 2000 2080 2071 2093
2094 1317 9000 2000 2080 2071 2094
2095 1317 9000 2000 2080 2071 2095
2096 1317 9000 2000 2080 2071 2096
2097 1317 9000 2000 2080 2071 2097
2101 1317 9000 2000 2100 2101
2102 1317 9000 2000 2100 2102
2103 1317 9000 2000 2100 2103
2201 1317 9000 2000 2200 2201
2202 1317 9000 2000 2200 2202
2203 1317 9000 2000 2200 2203
2204 1317 9000 2000 2200 2204
2220 1317 7000 2220
2240 1317 7000 2240
2270 1317 7000 2270
2280 1317 7000 2280
2301 1317 9000 2000 2300 2301
2302 1317 9000 2000 2300 2302
2303 1317 9000 2000 2300 2303
2304 1317 9000 2000 2300 2304
2360 1317 7000 2360
2370 1317 7000 2370
2401 1317 9000 2000 2400 2401
2402 1317 9000 2000 2400 2402
2403 1317 9000 2000 2400 2403
2404 1317 9000 2000 2400 2404
2410 1317 7000 8000 2410
2420 1317 7000 8000 2420
2421 1317 9000 2000 2421
2422 1317 9000 2000 623 2422
2423 1317 9000 2000 623 2423
2424 1317 9000 2000 623 2424
2425 1317 9000 2000 623 2425
2428 1317 9000 2000 623 2428
2460 1317 7000 8000 2460
2501 1317 9000 2000 2500 2501
2502 1317 9000 2000 2500 2502
2503 1317 9000 2000 2500 2503
2504 1317 9000 2000 2500 2504
2505 1317 9000 2000 2500 2505
2590 1317 7000 2590
2591 1317 7000 2591
2601 1317 9000 2000 2600 2601
2602 1317 9000 2000 2600 2602
2603 1317 9000 2000 2600 2603
2604 1317 9000 2000 2600 2604
3010 1317 7000 3010
3040 1317 7000 3040
3081 1317 9000 3000 3080 3070 3081
3082 1317 9000 3000 3080 3070 3082
3083 1317 9000 3000 3080 3070 3083
3084 1317 9000 3000 3080 3070 3084
3085 1317 9000 3000 3080 3070 3085
3086 1317 9000 3000 3080 3070 3086
3091 1317 9000 3000 3080 3070 3091
3092 1317 9000 3000 3080 3070 3092
3093 1317 9000 3000 3080 3070 3093
3094 1317 9000 3000 3080 3070 3094
3101 1317 9000 3000 3100 3101
3102 1317 9000 3000 3100 3102
3103 1317 9000 3000 3100 3103
3104 1317 9000 3000 3100 3104
3105 1317 9000 3000 3100 3105
3106 1317 9000 3000 3100 3106
3201 1317 9000 3000 3200 3201
3202 1317 9000 3000 3200 3202
3203 1317 9000 3000 3200 3203
3204 1317 9000 3000 3200 3204
3301 1317 9000 3000 3300 3301
3302 1317 9000 3000 3300 3302
3303 1317 9000 3000 3300 3303
3304 1317 9000 3000 3300 3304
3431 1317 9000 3000 3431
3432 1317 9000 3000 624 3432
3433 1317 9000 3000 624 3433
3434 1317 9000 3000 624 3434
3435 1317 9000 3000 624 3435
3438 1317 9000 3000 624 3438
3501 1317 9000 3000 3500 3501
3502 1317 9000 3000 3500 3502
3503 1317 9000 3000 3500 3503
3504 1317 9000 3000 3500 3504
3601 1317 9000 3000 3600 3601
3602 1317 9000 3000 3600 3602
3603 1317 9000 3000 3600 3603
3604 1317 9000 3000 3600 3604
3605 1317 9000 3000 3600 3605
4081 1317 9000 4000 4080 4070 4081
4082 1317 9000 4000 4080 4070 4082
4083 1317 9000 4000 4080 4070 4083
4084 1317 9000 4000 4080 4070 4084
4085 1317 9000 4000 4080 4070 4085
4086 1317 9000 4000 4080 4070 4086
4087 1317 9000 4000 4080 4070 4087
4088 1317 9000 4000 4080 4070 4088
4089 1317 9000 4000 4080 4070 4089
4090 1317 9000 4000 4080 4070 4090
4091 1317 9000 4000 4080 4070 4091
4092 1317 9000 4000 4080 4070 4092
4093 1317 9000 4000 4080 4070 4093
4094 1317 9000 4000 4080 4071 4094
4095 1317 9000 4000 4080 4071 4095
4096 1317 9000 4000 4080 4071 4096
4097 1317 9000 4000 4080 4071 4097
4098 1317 9000 4000 4080 4071 4098
4099 1317 9000 4000 4080 4071 4099
4101 1317 9000 4000 4100 4101
4102 1317 9000 4000 4100 4102
4103 1317 9000 4000 4100 4103
4104 1317 9000 4000 4100 4104
4105 1317 9000 4000 4100 4105
4106 1317 9000 4000 4100 4106
4160 1317 9000 1000 622 4160
4161 1317 9000 1000 622 4161
4201 1317 9000 4000 4200 4201
4202 1317 9000 4000 4200 4202
4203 1317 9000 4000 4200 4203
4260 1317 9000 2000 623 4260
4261 1317 9000 2000 623 4261
4301 1317 9000 4000 4300 4301
4302 1317 9000 4000 4300 4302
4360 1317 9000 3000 624 4360
4361 1317 9000 3000 624 4361
4401 1317 9000 4000 4400 4401
4402 1317 9000 4000 4400 4402
4403 1317 9000 4000 4400 4403
4441 1317 9000 4000 4441
4442 1317 9000 4000 625 4442
4443 1317 9000 4000 625 4443
4444 1317 9000 4000 625 4444
4445 1317 9000 4000 625 4445
4448 1317 9000 4000 625 4448
4460 1317 9000 4000 625 4460
4461 1317 9000 4000 625 4461
4560 1317 9000 5000 626 4560
4561 1317 9000 5000 626 4561
4601 1317 9000 4000 4600 4601
4602 1317 9000 4000 4600 4602
4603 1317 9000 4000 4600 4603
4660 1317 9000 6000 627 4660
4661 1317 9000 6000 627 4661
4701 1317 9000 4000 4700 4701
4702 1317 9000 4000 4700 4702
4703 1317 9000 4000 4700 4703
4704 1317 9000 4000 4700 4704
5014 1317 7000 5014
5079 1317 9000 5000 5080 5070 5079
5081 1317 9000 5000 5080 5070 5081
5082 1317 9000 5000 5080 5070 5082
5083 1317 9000 5000 5080 5070 5083
5084 1317 9000 5000 5080 5070 5084
5085 1317 9000 5000 5080 5070 5085
5086 1317 9000 5000 5080 5070 5086
5087 1317 9000 5000 5080 5070 5087
5088 1317 9000 5000 5080 5070 5088
5089 1317 9000 5000 5080 5070 5089
5090 1317 9000 5000 5080 5071 5090
5091 1317 9000 5000 5080 5071 5091
5092 1317 9000 5000 5080 5071 5092
5093 1317 9000 5000 5080 5071 5093
5094 1317 9000 5000 5080 5071 5094
5095 1317 9000 5000 5080 5071 5095
5096 1317 9000 5000 5080 5071 5096
5097 1317 9000 5000 5080 5071 5097
5101 1317 9000 5000 5100 5101
5102 1317 9000 5000 5100 5102
5103 1317 9000 5000 5100 5103
5104 1317 9000 5000 5100 5104
5133 1317 7000 5133
5178 1317 7000 5178
5201 1317 9000 5000 5200 5201
5202 1317 9000 5000 5200 5202
5203 1317 9000 5000 5200 5203
5204 1317 9000 5000 5200 5204
5250 1317 7000 8000 5250
5251 1317 7000 5251
5252 1317 7000 5252
5253 1317 7000 5253
5301 1317 9000 5000 5300 5301
5302 1317 9000 5000 5300 5302
5303 1317 9000 5000 5300 5303
5304 1317 9000 5000 5300 5304
5365 1317 7000 5365
5366 1317 7000 5366
5401 1317 9000 5000 5400 5401
5402 1317 9000 5000 5400 5402
5403 1317 9000 5000 5400 5403
5404 1317 9000 5000 5400 5404
5451 1317 9000 5000 5451
5452 1317 9000 5000 626 5452
5453 1317 9000 5000 626 5453
5454 1317 9000 5000 626 5454
5455 1317 9000 5000 626 5455
5458 1317 9000 5000 626 5458
5501 1317 9000 5000 5500 5501
5502 1317 9000 5000 5500 5502
5503 1317 9000 5000 5500 5503
5504 1317 9000 5000 5500 5504
6081 1317 9000 6000 6080 6070 6081
6082 1317 9000 6000 6080 6070 6082
6083 1317 9000 6000 6080 6070 6083
6084 1317 9000 6000 6080 6070 6084
6085 1317 9000 6000 6080 6070 6085
6086 1317 9000 6000 6080 6070 6086
6101 1317 9000 6000 6100 6101
6102 1317 9000 6000 6100 6102
6103 1317 9000 6000 6100 6103
6301 1317 9000 6000 6300 6301
6302 1317 9000 6000 6300 6302
6303 1317 9000 6000 6300 6303
6304 1317 9000 6000 6300 6304
6305 1317 9000 6000 6300 6305
6401 1317 9000 6000 6400 6401
6402 1317 9000 6000 6400 6402
6403 1317 9000 6000 6400 6403
6404 1317 9000 6000 6400 6404
6461 1317 9000 6000 6461
6462 1317 9000 6000 627 6462
6463 1317 9000 6000 627 6463
6464 1317 9000 6000 627 6464
6465 1317 9000 6000 627 6465
6468 1317 9000 6000 627 6468
6501 1317 9000 6000 6500 6501
6502 1317 9000 6000 6500 6502
6503 1317 9000 6000 6500 6503
6504 1317 9000 6000 6500 6504
6505 1317 9000 6000 6500 6505
6601 1317 9000 6000 6600 6601
6602 1317 9000 6000 6600 6602
6603 1317 9000 6000 6600 6603
6604 1317 9000 6000 6600 6604
7085 1317 7000 7085
7086 1317 7000 7086
7087 1317 7000 7087
8070 1317 7000 8070
9001 1317 9000 6000 6080 6071 9001
9002 1317 9000 6000 6080 6071 9002
9003 1317 9000 6000 6080 6071 9003
9004 1317 9000 6000 6080 6071 9004
9005 1317 9000 6000 6080 6071 9005
9006 1317 9000 1000 1080 1071 9006
9008 1317 9000 2000 2080 2070 9008
9009 1317 9000 2000 2080 2070 9009
9010 1317 9000 2000 2080 2070 9010
9011 1317 9000 3000 3080 3071 9011
9012 1317 9000 3000 3080 3070 9012
9013 1317 9000 3000 3080 3071 9013
9014 1317 9000 3000 3080 3071 9014
9015 1317 9000 3000 3080 3071 9015
9016 1317 9000 3000 3080 3071 9016
9017 1317 9000 3000 3080 3071 9017
9018 1317 9000 3000 3080 3071 9018
9019 1317 9000 3000 3080 3071 9019
9020 1317 9000 3000 3080 3071 9020
9021 1317 9142 9021
9022 1317 9142 9022
9023 1317 9142 9023
9025 1317 7000 9025
9026 1317 9142 9026
9027 1317 7000 9027
9028 1317 7000 9028
9032 1317 7000 9031 9032
9033 1317 9142 9033
9034 1317 9142 9034
9036 1317 7000 9036
9037 1317 7000 9031 9037
9038 1317 7000 9038
9039 1317 7000 9039
9040 1317 7000 9040
9041 1317 7000 9041
9042 1317 7000 9042
9043 1317 9142 9043
9044 1317 7000 9044
9045 1317 9000 6000 627 9045
9048 1317 9000 5000 626 9048
9050 1317 9000 4000 625 9050
9052 1317 9000 3000 624 9052
9053 1317 9000 2000 623 9053
9054 1317 9000 2000 623 9054
9056 1317 9000 1000 622 9056
9057 1317 9142 9057
9058 1317 9000 6000 6080 6070 9058
9059 1317 9000 6000 6080 6070 9059
9060 1317 9000 6000 6080 6070 9060
9061 1317 9142 9061
9062 1317 9142 9062
9063 1317 9142 9063
9064 1317 9000 1000 9064
9065 1317 9000 2000 9065
9066 1317 9000 3000 9066
9067 1317 9000 4000 9067
9068 1317 9000 5000 9068
9069 1317 9000 6000 9069
9070 1317 9000 1000 1080 1070 9070
9071 1317 7000 9071
9072 1317 7000 9072
9075 1317 9142 9075
9076 1317 9142 9076
9077 1317 9142 9077
9078 1317 9142 9078
9079 1317 9142 9079
9080 1317 7000 9080
9081 1317 9000 5000 5100 9081
9082 1317 9000 5000 5200 9082
9086 1317 9084 9085 9086
9087 1317 9084 9085 9087
9088 1317 9084 9085 9088
9089 1317 9084 9085 9089
9090 1317 9084 9085 9090
9091 1317 9084 9085 9091
9092 1317 7000 9092
9093 1317 7000 9093
9094 1317 7000 9094
9095 1317 7000 9095
9096 1317 7000 9096
9097 1317 7000 9097
9098 1317 7000 9098
9099 1317 7000 9099
9100 1317 7000 9100
9101 1317 7000 9101
9102 1317 7000 9102
9103 1317 7000 9103
9104 1317 7000 9104
9105 1317 7000 9105
9106 1317 7000 9106
9107 1317 7000 9107
9108 1317 7000 9108
9109 1317 7000 9109
9110 1317 7000 9110
9111 1317 7000 9111
9112 1317 7000 9112
9113 1317 7000 9113
9114 1317 7000 9114
9115 1317 7000 9115
9116 1317 7000 9116
9117 1317 7000 9117
9118 1317 7000 9118
9119 1317 7000 9119
9120 1317 7000 9120
9121 1317 7000 9121
9122 1317 7000 9122
9123 1317 7000 9123
9124 1317 7000 9124
9125 1317 7000 9125
9126 1317 7000 9126
9127 1317 7000 9127
9128 1317 7000 9128
9129 1317 7000 9129
9130 1317 7000 9130
9131 1317 7000 9131
9132 1317 7000 9132
9134 1317 7000 9133 9134
9135 1317 7000 9133 9135
9136 1317 7000 9133 9136
9137 1317 7000 9133 9137
9138 1317 7000 9133 9138
9139 1317 7000 9139
9140 1317 9000 5000 5500 9140
9141 1317 9142 9141
9143 1317 9142 9143
9144 1317 9142 9144
9145 1317 9142 9145
9146 1317 9142 9146
9147 1317 9142 9147
9148 1317 9142 9148
9149 1317 9142 9149 I think the query was doing fine until i added the 5th table to the JOIN in the query, not sure whats happening and why its not adding the records from the fourth table. -
VS2008 - ReportDocument missing data when exporting to PDF
Hi all,
First and foremost, I'm using:
- VS2008 with CR Basic (10.5.3700.0)
- CR 2008 SP4 (12.4.0.966)
- SQL Server 2008
I've developed a small VB.Net application that's supposed to simply load a report, set appropriate connections and parameters and finally export it to PDF.
While it works on simple reports, I'm having trouble with a report that uses a Stored Procedure to link between two tables. The PDF shows all the data that's obtained directly from tables, but misses the details that depend on the Stored Procedure.
This same report previews perfectly on CR 2008 SP4, where it's been developed.
What I've tried, based on SDN and general web search:
- Different ODBC and OLE DB (both SQLOLEDB and SQLNCLI / SQLNCLI10): No change.
- Compile in x86 and x64: No change.
- Add report to VS2008 project and preview it: No change; same data shown, same data missing.
- SQL Trace while previewing with CR2008 and exporting with .Net application: This showed something interesting; one fairly simple SQL query when using CR2008 (that successfully returns data when pasted to SQL) was transformed into a query with several joins and cross joins (that does not return data when pasted to SQL) when using the application. Links being somehow changed, I presumed.
- Printout all the Database.Links from the ReportDocument prior to exporting: showed they were all correct.
- Following a post on this forum I've inserted a VerifyDatabase command after loading and setting connections: I now get an "Error in formula" stating that one of the Stored Procedure's fields that's used in a formula "is not known". Commenting this line results (again) in a successfull export of a PDF... but with the same missing data.
Any thoughts?
Thanks in advance!
Regards,
Nuno
Edited by: Nuno Pinto on Oct 6, 2011 3:41 AM
Edited by: Nuno Pinto on Oct 6, 2011 3:46 AMI don't think the language was the problem, but I had problems teasing out the correct info I needed (e.g.; CR 10.5 vs. 12.x, 32 bit vs. 64 and so on. But I know where the problem is now:
SAP Business One reports
This is a special OEM build of Crystal Reports.
It uses a database driver that CR 10.5 does not ship (something like crdb_SAPBusinessOne.dll (?))
So, you can not use CR 10.5 as it is missing the driver.
Using CR 2008 assemblies (12.x) will potentially be also problematic. While you will have the SAP One driver, you may not have the neccessary database logon APIs exposed.
E.g.; more than likely, this will not work. But, you can try the following;
Make sure you are using CR 2008 (e.g.; remove all of your CR 10.5 references)
Look at the KB [1553921 - Is there a utility that would help in writing database logon code?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333533353333333933323331%7D.do]. there is a utility attached to the KB that will write out the DB logon code for you - in VB and C#. Use that code to try to connect to the report. The utility uses InProc RAS SDK which is part of CR 2008 and it is a free runtime - just like CR SDK. For basic info on working with InProc RAS SDK see the article [How to Use The RAS SDK .NET With In-Process RAS Server|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32]
Now, keep in mind that I have never seen, never mind worked with a report based on SAP Business One (thus my ignorance as to the name of the actual CR DB driver). So this may work. Or not. All I can do from here is keep my fingers crossed. But please do share any successes or failures...
- Ludek
Edited by: Ludek Uher on Oct 7, 2011 1:46 PM -
LIS - To get the data for the missing data for the infostructure S906
Hi
We have performed an unicode conversion In our SAP ECC 6.0 system, after the conversion, the infostructure S906 (copy of S006) was not updated for the period 22nd June to 25th June 09.
Then we regenerated the infostructure S906 using the tcode MCS/ on 26th June and after which the update rules are working correctly in S906.
Now when we run the SOP report for this week, the data is missing for the period 22nd June to 25th June 09.
We have gone thru the note 64636 - to setup the infostructure from the begining, which needs more downtime.
Is there a possibility to get the missing data for the above period only, instead of setting up the infostructure from the beginning.
Thanks & Regards
SenthilYou did not tell us what kind of update are you using. Some transactions (e.g. OLI1) allow to run it by posting date; others (e.g. OLI9) for a range of the documents. You can find what document numbers were created in the period of question and then run it for them. Although I would recommend the full rebuild.
-
Help needed with missing data problem in CRVS2010
We recently upgraded the reporting engine in our product to use Crystal Reports for Visual Studio 2010 (previously engine was CR9). Our quote report, which has numerous subreports and lots of conditional formatting, started losing data when a quote took more than a single page to be printed. We knew the SQL results included the data, but the report was not printing those lines at all or sometimes printing a partial line. In addition, the running total on the report would exclude the lines that were being missed on the next page. In one example submitted by a customer, 3 lines were skipped between pages.
I think I have identified two potential issues that document the possibility of data not being included in the report.
The first potential issue is an issue with the "suppress blank section" option being checked. This issue is supposedly fixed with ADAPT01483793, being released someday with service pack 2 for CRVS2010.
The second potential issue is using shared variables. This issue is supposedly fixed with ADAPT01484308, also targeted for SP2.
Our quote report does not explicitly use shared variables with any of the subreports, but it does have several subreports, each in its own section that has the "supress blank section" option checked. We have other reports that use this feature, as well, and they are not exhibiting the problem.
One different thing about the quote report is that it has a section with multiple suppression options selected. The section has a conditional suppression formula, which controls whether the section is included at all within the report. The section also has the suppress blank section option selected. There are multiple fields within the report that are each conditionally suppressed. In theory, the section's suppress formula could evaluate to true, yet all of the fields within the section are suppressed (due to null values), and then the "suppress blank section" option would kick in.
The missing data only seems to happen when the section is not being suppressed, and at least one of the fields is being included in the report. If I clear the "suppress blank section" check box, and change the section formula to also include the rules applied to the fields in the section, the missing data problem seems to be resolved.
Is this related to ADAPT01483793? Will it be fixed in service pack 2?
If more details are needed, I would be happy to provide a sample report with stored data.Hi Don,
Have a look at the Record Selection formula in CR Designer ( stand alone ) and when exported to RPT format opening that report in the Designer also.
There's been a few issues with => logic in the record selection formula. It could be you are running into this problem. Look for NOT inserted into your selection formula.
Oh and SP2 is coming out shortly so it may resolve the issue. But if you want you could purchase a support, or if you have a support contract then create a case in SMP and get a rep to work with you to debug the issue.
If you have not try the Trial Version of CR 2011, put it on a VM-ware image or Test PC so you don't corrupt anything for production and have a look at and test it in that designer also. If you purchase a case and it is a bug then you'll get a credit back for the case.
Don
Edited by: Don Williams on Oct 26, 2011 7:40 AM -
Insert old missing data from one table to another(databaase trigger)
Hello,
i want to do two things
1)I want to insert old missing data from one table to another through a database trigger but it can't be executed that way i don't know what should i do in case of replacing old data in table_1 into table_2
2)what should i use :NEW. OR :OLD. instead.
3) what should i do if i have records exising between the two dates
i want to surpress the existing records.
the following code is what i have but no effect occured.
CREATE OR REPLACE TRIGGER ATTENDANCEE_FOLLOWS
AFTER INSERT ON ACCESSLOG
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
V_COUNT NUMBER(2);
V_TIME_OUT DATE;
V_DATE_IN DATE;
V_DATE_OUT DATE;
V_TIME_IN DATE;
V_ATT_FLAG VARCHAR2(3);
V_EMP_ID NUMBER(11);
CURSOR EMP_FOLLOWS IS
SELECT EMPLOYEEID , LOGDATE , LOGTIME , INOUT
FROM ACCESSLOG
WHERE LOGDATE
BETWEEN TO_DATE('18/12/2008','dd/mm/rrrr')
AND TO_DATE('19/12/2008','dd/mm/rrrr');
BEGIN
FOR EMP IN EMP_FOLLOWS LOOP
SELECT COUNT(*)
INTO V_COUNT
FROM EMP_ATTENDANCEE
WHERE EMP_ID = EMP.EMPLOYEEID
AND DATE_IN = EMP.LOGDATE
AND ATT_FLAG = 'I';
IF V_COUNT = 0 THEN
INSERT INTO EMP_ATTENDANCEE (EMP_ID, DATE_IN ,DATE_OUT
,TIME_IN ,TIME_OUT,ATT_FLAG)
VALUES (TO_NUMBER(TO_CHAR(:NEW.employeeid,99999)),
TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_IN
NULL,
TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_IN
NULL ,'I');
ELSIF V_COUNT > 0 THEN
UPDATE EMP_ATTENDANCEE
SET DATE_OUT = TO_DATE(:NEW.LOGDATE,'dd/mm/rrrr'), -- DATE_OUT,
TIME_OUT = TO_DATE(:NEW.LOGTIME,'HH24:MI:SS'), -- TIME_OUT
ATT_FLAG = 'O'
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_IN <= (SELECT MAX (DATE_IN )
FROM EMP_ATTENDANCEE
WHERE EMP_ID = TO_NUMBER(TO_CHAR(:NEW.employeeid,99999))
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL )
AND DATE_OUT IS NULL
AND TIME_OUT IS NULL ;
END IF;
END LOOP;
EXCEPTION
WHEN OTHERS THEN RAISE;
END ATTENDANCEE_FOLLOWS ;
Regards,
Abdetu..INSERT INTO SALES_MASTER
( NO
, Name
, PINCODE )
SELECT SALESMANNO
, SALESMANNAME
, PINCODE
FROM SALESMAN_MASTER;Regards,
Christian Balz -
Missing Data from Legacy System
Hello All,
My client went live end of January this year. They had a month of transaction data in their legacy system which they did not bring into SAP. Since this is their first year on SAP and recently implemented Extended Withhold Tax one month data is missing; when they run the 1099s at the end of the year they are going to be reported incorrectly.
How can we bring over that missing data from legacy system over to SAP without having to clear those invoices in SAP?
Thank You In AdvanceHi Shashi,
Have a look : <a href="http://www.box.net/shared/9tda040za6">Transferring Data with DB Connect</a>
<a href="http://sapbwneelam.blogspot.com">More Docs...</a>
Hope it Helps
Srini -
How can I connect dots across missing data points in a line chart?
Hi all!
I have a table in Numbers that I update every few days with a new value for the current date (in this case body metrics like weight, etc.), which looks something like this:
Column 1 Column 2 Column 3
Aug 16, 2011 87.1 15.4
Aug 17, 2011 86.6
Aug 18, 2011 86.1
Aug 19, 2011
Aug 20, 2011 85.7 14.6
Aug 21, 2011 85.3
Every once in a while there will be a missing value for a given date (because I didn't take a reading on that day). When I plot each column against the date on a line chart, there is a gap where there are missing data points. The line does not connect "across" missing data points. Is there a way to make the line connect across missing data points?
Thanks for any help. This thing has been driving me nuts!Leave your nuts in peace.
Don't use line charts but scatter charts.
These ones are able to do the trick.
Of course to do that you must study a bit of Numbers User Guide.
In column D of the Main table, the formula is :
=IF(ISBLANK($B),99999,ROW())
In column E of the Main table, the formula is :
=IF(ISBLANK($C),99999,ROW())
Now I describe the table charter.
In column A, the formula is :
=IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,0)),"")
In column B,the formula is :
=IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $D,ROW())-1,1),"")
In column C, the formula is :
=IFERROR(DAY(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,0)),"")
In column D, the formula is :
=IFERROR(OFFSET(Main :: $A$1,SMALL(Main :: $E,ROW())-1,2),"")
In this table, select the range A1 … D5
and ask for a Scatter chart.
You will get what you need.
I asked that points are joined by curves
I just edited the parameters of Xaxis and Yaxis to get a cleaner look.
I repeat one more time that knowing what is written in the User Guides is useful to be able to solve problems with no obvious answer.
Yvan KOENIG (VALLAURIS, France) samedi 27 août 2011 15:59:20
iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.0
My iDisk is : <http://public.me.com/koenigyvan>
Please : Search for questions similar to your own before submitting them to the community
To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !
Maybe you are looking for
-
iPad2 wifi. After updating to 4.3.5, sound from all my games no longer works. Has anyone else experienced this?
-
Accessories For IPod Touch 5G?
Hello, this is RJ Micheal which is my real name. I just wanna know if the new iPod touch (5G) will cases, screen protesters & more accessories be available on October?
-
Regarding ABAP Dump found when saving the job.
Hi all, Generally we create a job and once the job is created,we rasie Sales Order,Purchase Order and so on. When we create a job we give the details of the Sold -to-party,client,parent and child job text,advertising category,project type, sales orga
-
Print blank pages befor content starts
Hi, While printing html through content editor web part. It prints blank pages before content starts. I have images in my html document. When I set the width of img to 400 px it works fine.. but if I say width:100% it prints so many blank pages extra
-
Is osx mountain lion compatible with mac pro (4,1) w/ raid card?
I noticed Apple isn't selling the Mac Pro's with raid cards anymore, so it makes me wonder of Mountain Lion is compatible with my Mac Pro which uses the apple mac pro raid card. Anyone know??