Substrating a value from its previous value
suppose i have the data in a column like
col
200
230
250
290
300
then the output should show
col output
200 Null
230 30
250 20
290 40
300 10
can anybody help?
Here is the sample ->
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.75
satyaki>
satyaki>with t
2 as
3 (
4 select 200 cola from dual
5 union all
6 select 230 from dual
7 union all
8 select 250 from dual
9 union all
10 select 290 from dual
11 union all
12 select 300 from dual
13 )
14 select cola, (cola - prev_cola) output
15 from (
16 select cola,
17 lag(cola,1,null) over(order by cola) prev_cola
18 from t
19 );
COLA OUTPUT
200
230 30
250 20
290 40
300 10
Elapsed: 00:00:00.01
satyaki>
satyaki>Regards.
Satyaki De.
Similar Messages
-
how can i unlink an iphone from its previous users email so i can turn it on to my own email address, also i cant get in contact with the previous owner
If you are referring to Activation Lock, the password for the Apple ID signed into the device is required, there is no way around this. If you do not have the information and cannot contact the previous owner, the device is useless.
-
An update statement to use cumulative columns from the previous record
I need to create a update statement which updates a record based on a column from previous record and its column where they are grouped by another columns and ordered by date in ASC. Note that I need answer from SQL 2005+.
Suppose I have records:
TransactionID ProductID TransactionDate Quantity QuantityOnHand
1 1 1/2/2014
2 ? 2
2 1 1/3/2014
3 ? 5 = 3+2
3 1 1/4/2014
1 ? 6 = 5 + 1
4 1 1/5/2014
9 ? 15 = 6 + 9
I wrote this statement but did not work:
UPDATE it2 SET it2.QuantityOnHand =it2.Quantity + ISNULL(it1.QuantityOnHand,0)
FROM IT it1
LEFT JOIN (SELECT TransactionID,ProductID, Quantity,QuantityOnHand FROM IT GROUP BY ProductID ORDER BY TransactionDate) it2 ON It2.TransactionID>it1.TransactionID
WHERE It2.ProductID=it1.ProductID
This means update the record and get the QuantityOnHand from its previous record if any grouped by the ProductID that are ordered by TransactionDate. Note that in this example there is only one product ID. Here the QuantityOnHand column should be updated
and TransactionDate is in ordered!
Mike
DDL:
CREATE TABLE [dbo].[IT](
[TransactionID] [int] NOT NULL PRIMARY KEY,
[ProductID] [int] NULL,
[TransactionDate] [datetime] NULL,
[Quantity] [float] NULL,
[QuantityOnHand] [float] NULL
) ON [PRIMARY]
DML:
INSERT INTO [dbo].[IT] VALUES (1 ,1,'1/2/2014',2,NULL)
INSERT INTO [dbo].[IT] VALUES (2,1,'1/3/2014',4,NULL)
INSERT INTO [dbo].[IT] VALUES(3 ,1 ,'1/4/2014' ,2,NULL)
INSERT INTO [dbo].[IT] VALUES(4 ,1 ,'1/5/2014' ,9,NULL)Hi
please replace this text (which is not records but just text, and therefore we can not query it):
TransactionID ProductID Quantity QuantityOnHand
1 1
2 ? 2
2 1
3 ? 5 = 3+2
3 1
1 ? 6 = 5 + 1
4 1
9 ? 15 = 6 + 9
with a DDL+DML queries to help us help you.
>> DDL+DML are queries to create your relevant table and a query to insert the sample data.
Thanks
[Personal Site] [Blog] [Facebook] -
How to get a value from the previous element (XSLT/XPATH gurus ahoy!)
Hi All,
I am building an RTF template for a "letter of reference"-report. Sometimes there are several rows in the data, that need to be printed as one. This is due to consecutive temporary contracts, which will be printed out as one period of service.
Here's a simplified data example to illustrate the problem.
<ROW>
<START_DATE>01-01-1980</START_DATE>
<END_DATE>01-01-1988</END_DATE>
</ROW>
<ROW>
<START_DATE>01-01-1988</START_DATE>
<END_DATE>01-01-1990</END_DATE>
</ROW>
<ROW>
<START_DATE>01-01-2000</START_DATE>
<END_DATE>01-01-2005</END_DATE>
</ROW>
With the data above, I should print two lines:
01-01-1980 - 01-01-1990
01-01-2000 - 01-01-2005
I need to compare START_DATE of an element (except for the first one) with the END_DATE of the previous element, to find out whether to print the END_DATE for that element or not. How can I get that value from the previous element?
Thanks & Regards, Matildause this to get the following End_date
<?following-sibling::../END_DATE?>
Try this
<?for-each:/ROOT/ROW?>
==================
Current StartDate <?START_DATE?>
Current End Date <?END_DATE?>
Next Start Date <?following-sibling::ROW/END_DATE?>
Previous End Date <?preceding-sibling::ROW[1]/END_DATE?>
================
<?end for-each?>
o/p
==================
Current StartDate 01-01-1980
Current End Date 01-01-1988
Next Start Date 01-01-1990
Previous End Date
================
==================
Current StartDate 01-01-1988
Current End Date 01-01-1990
Next Start Date 01-01-2005
Previous End Date 01-01-1988
================
==================
Current StartDate 01-01-2000
Current End Date 01-01-2005
Next Start Date
Previous End Date 01 -
Revision: 1427
Author: [email protected]
Date: 2008-04-26 07:47:02 -0700 (Sat, 26 Apr 2008)
Log Message:
Fix a bug from my previous checkin: For variables that had a primitive value,
we were not preserving the variable's attributes, such as static,
public/protected/private, etc.
Modified Paths:
flex/sdk/trunk/modules/debugger/src/java/flash/tools/debugger/concrete/DManager.javaThis should help you to get started !
select banner as "Oracle version" from v$version where banner like 'Oracle%';
create table otn5test(
id number,
data xmltype
insert into otn5test values (1, xmltype('<catalog>
<cd>
<title>Hide your heart</title>
<artist>Bonnie Tyler</artist>
<country>UK</country>
<company>CBS Records</company>
<price>9.90</price>
<year>1988</year>
</cd>
<cd>
<title>Empire Burlesque</title>
<artist>Bob Dylan</artist>
<country>USA</country>
<company>Columbia</company>
<price>10.90</price>
<year>1985</year>
</cd>
</catalog>
select otn5test.id, x.*
from otn5test,
xmltable('/catalog/cd[artist/text()="Bob Dylan"]' passing otn5test.data
columns title varchar2(20) path 'title') x;
select otn5test.id,
xmlcast(xmlquery('/catalog/cd[artist/text()="Bob Dylan"]/title'
passing otn5test.data returning content)
as varchar2(20)) from otn5test;
drop table otn5test;
sqlplus> @otn-5.sql
Oracle version
Oracle Database 11g Release 11.2.0.1.0 - 64bit Production
Table created.
1 row created.
ID TITLE
1 Empire Burlesque
ID XMLCAST(XMLQUERY('/C
1 Empire Burlesque
Table dropped. -
Delete version resource and its previous versions
I try to delete a versioning resource but I do not succeed. I create a version resource, when I delete it from the repository, xmldb delete it, but it don’t delete the previous versions. If I try to get a previous version by RESID I get it (why they not have been cancelled?). How can I cancel the resource and its previous versions? After many operations the occupied space increases but the repository is empty.
I use 10g (10.2.0.1.0) whit XMLDBI have found that the table xdb.xdb$resource contains contains all the resource, also the cancelled resources. I find it by the query
select extractvalue(value(p) ,'/Resource/CreationDate') pp, extractvalue(value(p) ,'/Resource/DisplayName') dn
-- ,abspath(9999)
from xdb.xdb$resource p
I find also all version resources. How can I really delete the resources?
thanks -
Get the sales order text from ITS and save it in SAP.
Hi,
I have created an application to create sales order from ITS. In this app i'm having a text field to fet the header text for the order. & after that I'm calling an RFC which has a BAPI to create the sales order.
Now, when i enter the text for header texts in frontend (separated by ENTER), then it saves only the first line of the text.
I've tried using :
SPLIT ordernotes AT cl_abap_char_utilities=>cr_lf INTO TABLE t_ordnotes.
and using FM: CREATE_TEXT,
but still, it is saving only the first line.
Can anyone please help me with this ?????
Its urgent.
Thanks in advance,
Hemant.Hi
See the sample BDC program that is used to upload the Material LONG Texts into SAP using MM01 Tcode
check this may be helpful
REPORT zmm_longtext
NO STANDARD PAGE HEADING
LINE-SIZE 255.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab1 OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab1.
Internal Table for Upload of Long Texts Data
DATA: BEGIN OF itab OCCURS 0,
matnr LIKE mara-matnr, " Material
text LIKE tline-tdline, " Long Text
END OF itab.
To create Long Text lines for CREATE_TEXT function module
DATA:BEGIN OF dt_lines OCCURS 0.
INCLUDE STRUCTURE tline. " Long Text
DATA:END OF dt_lines.
Variable declarations for CREATE_TEXT function module
DATA : dl_name TYPE thead-tdname, " Object Name
dl_lan TYPE thead-tdspras, " Language
gv_matnr TYPE matnr.
Constants
CONSTANTS:
Object ID for Long Text of Material Basic Data 1
c_best TYPE thead-tdid VALUE 'GRUN',
c_material TYPE thead-tdobject VALUE 'MATERIAL'. " Object
Parameters
PARAMETERS p_file LIKE rlgrap-filename.
At selection-screen on Value Request for file Name
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
Get the F4 Values for the File
CALL FUNCTION 'F4_FILENAME'
EXPORTING
program_name = syst-cprog
dynpro_number = syst-dynnr
IMPORTING
file_name = p_file.
Start Of Selection
START-OF-SELECTION.
*To Upload Flat file
CALL FUNCTION 'UPLOAD'
EXPORTING
filename = p_file
filetype = 'DAT'
TABLES
data_tab = itab1
EXCEPTIONS
conversion_error = 1
invalid_table_width = 2
invalid_type = 3
no_batch = 4
unknown_error = 5
gui_refuse_filetransfer = 6
OTHERS = 7.
SORT itab1 BY matnr.
LOOP AT itab1.
CLEAR gv_matnr.
SELECT SINGLE matnr INTO gv_matnr
FROM mara WHERE bismt = itab1-matnr.
IF itab1-text NE ' '.
itab-matnr = gv_matnr.
itab-text = itab1-text.
APPEND itab.
ENDIF.
CLEAR itab.
ENDLOOP.
DELETE itab WHERE matnr EQ ' '.
Upload the Texts
SORT itab BY matnr.
LOOP AT itab.
dt_lines-tdformat = 'ST'.
dt_lines-tdline = itab-text.
APPEND dt_lines.
dl_lan = sy-langu.
dl_name = itab-matnr.
Call the Function Module to Create Text
CALL FUNCTION 'CREATE_TEXT'
EXPORTING
fid = c_best
flanguage = dl_lan
fname = dl_name
fobject = c_material
save_direct = 'X'
fformat = '*'
TABLES
flines = dt_lines
EXCEPTIONS
no_init = 1
no_save = 2
OTHERS = 3.
IF sy-subrc <> 0.
WRITE:/ 'Long Text Creation failed for Material'(001),
itab-matnr.
ELSE.
WRITE:/ 'Long Text Created Successfully for Material'(002),
itab-matnr.
ENDIF.
AT END OF matnr.
REFRESH dt_lines.
ENDAT.
ENDLOOP.
<b>Reward points for useful Answers</b>
Regards
Anji -
Problem in unattended installation of Windows 10 OS image from its ISO
Hi There,
I am trying to install unattended Windows 10 OS image from its ISO by unattended.xml. While doing it windows boot screen get stuck at windows setup screen where it ask input for Language, TIme format and Keyboard input method. For same
process if I use windows 8.1 ISO for installation it works fine. From technet I come to know that Windows 10 has NT DISM version as 6.4 and 8.1 has 6.3. But I am not getting how I can make these change in my automation..
We are creating a FLP file which includes (unattended.xml and few other files)and then specify that file to Vmware workstation Windows 10 image floppy drive and Windows 10 iso to DVD drive and then booting the VM.
Same process works for Windows 8.1 OS unattended installation but it is getting failed for Windows 10.
Please help.
Regards,
NortonboyHi Alex,
I am using ISO :- 9841.0.140912-1613.FBL_RELEASE_CLIENTPRO-CORE_OEMRET_X64FRE_EN-US.ISO
Answer file :- autounattend.xml.
Yeah same answer file works for Win 8.1 but when I am useing above ISO which is same what you mentioned but still it stuck.
I am using below content in autounattend.xml
##################################3
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<SetupUILanguage>
<UILanguage>en-us</UILanguage>
</SetupUILanguage>
<InputLocale>en-us</InputLocale>
<SystemLocale>en-us</SystemLocale>
<UILanguage>en-us</UILanguage>
<UserLocale>en-us</UserLocale>
</component>
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>true</SkipAutoActivation>
</component
<component name="Microsoft-Windows-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<UserData>
<AcceptEula>true</AcceptEula>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key></Key>
</ProductKey>
</UserData>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
<ComplianceCheck>
<DisplayReport>OnError</DisplayReport>
</ComplianceCheck>
<DiskConfiguration>
<WillShowUI>OnError</WillShowUI>
<DisableEncryptedDiskProvisioning>true</DisableEncryptedDiskProvisioning>
<Disk>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
<CreatePartitions>
<CreatePartition>
<Extend>true</Extend>
<Order>1</Order>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition>
<Active>true</Active>
<Format>NTFS</Format>
<Label>Windows</Label>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
<InstallToAvailablePartition>false</InstallToAvailablePartition>
</OSImage>
</ImageInstall>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Security-SPP-UX" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
<component name="Microsoft-Windows-LUA-Settings" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<EnableLUA>false</EnableLUA>
</component>
<component name="Security-Malware-Windows-Defender" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<DisableAntiSpyware>true</DisableAntiSpyware>
</component>
<component name="Microsoft-Windows-SystemRestore-Main" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<DisableSR>1</DisableSR>
</component>
<component name="Microsoft-Windows-SQMAPI" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<CEIPEnabled>0</CEIPEnabled>
</component>
<component name="Networking-MPSSVC-Svc" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<DomainProfile_EnableFirewall>false</DomainProfile_EnableFirewall>
<PrivateProfile_EnableFirewall>false</PrivateProfile_EnableFirewall>
<PublicProfile_EnableFirewall>false</PublicProfile_EnableFirewall>
<DomainProfile_DisableNotifications>true</DomainProfile_DisableNotifications>
<PrivateProfile_DisableNotifications>true</PrivateProfile_DisableNotifications>
<PublicProfile_DisableNotifications>true</PublicProfile_DisableNotifications>
</component>
<component name="Microsoft-Windows-Shell-Setup" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<UserAccounts>
<AdministratorPassword>
<Value>password</Value>
<PlainText>true</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>symantec</Value>
<PlainText>true</PlainText>
</Password>
<Description>Automation Account</Description>
<DisplayName>Automation Account</DisplayName>
<Group>Administrators;Power Users</Group>
<Name>Automation</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<ProtectYourPC>3</ProtectYourPC>
<NetworkLocation>Other</NetworkLocation>
</OOBE>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>
<TimeZone>Pacific Standard Time</TimeZone>
</component>
<component name="Microsoft-Windows-International-Core" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" processorArchitecture="amd64">
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
</settings>
</unattend>
Do you guys have any inputs on this issue
Nortonboy -
Clearing out TEB to replay from a previous point?
How can one clear all the text entered in the TEB varables, if the user has to restart from a previous point?
Although you can change the value of the variable to an empty variable (null variable), I suspect you want to see that reflected in the TEB. That is not possible with the default TEB, you'll need this widget (free) from Jim LeichLiter:
http://captivatedev.com/2012/09/16/adobe-captivate-6-x-free-widget-text-entry-box-with-var iables/
I did not blog about this particular widget, but about the TextArea widget, that Jim enhanced as well: http://blog.lilybiri.com/extended-textarea-widget-more-functionality I give you this link because it explains how to reset questions that are created with that widget, same is valid for the enhanced TEB.
Lilybiri -
"COM object that has been separated from its underlying RCW cannot be used.
I am constantly getting the following error when closing my app if we viewed/printed a report. What do I need to do to correct this error? For the following error, I opened my app, viewed a report on the screen using the 'CrystalReportViewer', closed the report viewer window, closed my app. When closing the app, the following error occurs.
CR version: 11.5.3300.0
VB.NET v2.
System.Runtime.InteropServices.InvalidComObjectException was unhandled
Message="COM object that has been separated from its underlying RCW cannot be used."
Source="mscorlib"
StackTrace:
at System.Runtime.InteropServices.UCOMIConnectionPoint.Unadvise(Int32 dwCookie)
at CrystalDecisions.ReportAppServer.%. {(_ISCDClientDocumentEvents_OnClosedEventHandler u)
at CrystalDecisions.ReportAppServer.%.remove_OnClosed(_ISCDClientDocumentEvents_OnClosedEventHandler value)
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.DisconnectEventRelay()
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper. (Boolean \b, Boolean )
at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Dispose(Boolean bDisposeManaged)
at System.ComponentModel.Component.Dispose()
at CrystalDecisions.CrystalReports.Engine.ReportDocument. (Boolean :)
at CrystalDecisions.CrystalReports.Engine.ReportDocument. (Boolean ;)
at CrystalDecisions.CrystalReports.Engine.ReportDocument.Close()
at CrystalDecisions.CrystalReports.Engine.ReportDocument.
(Object >, EventArgs ?)Hello,
First thing is to install Service Pack 6 which you can get from the download page by clicking on BusinessObjests tab above and then downloads on the left...
When you close your viewer be sure to add/have Youreportobject.close and Youreportobject.Dispose. Adding a GC.Collect may help also.
Thank you
Don -
Trouble extracting data from a previously written file
I am trying to extract two arrays from a previously written file, which contains two arrays, seperated by a /t char. The files are saved in this format;
Wavelength(nm)ower(W):
*lambda1**power1*
*lambda2**power2*
"lambda#" and "power#" are both actually numbers, but I wanted to illustrate that they correlate.
Furthermore, with the extracted data, I would like to write a new file, which uses the information (during another sweep) to calculate a third value (called EQE), which is dependant on the power and current at a given wavelength. So while the VI is reading current per lambda, it should also be able to find out what the power value at said lambda was and calculate the EQE.
The VIs I have so far are attached. The third portion of "problem.vi" is enclosed in a while loop, so it repeats a lot of times.
Thank you very much
Solved!
Go to Solution.
Attachments:
Problem.vi 36 KBMAELV wrote:
How would I begin from the second line?
Use a Read Text File function. Right-click on it and there will be an option to read lines or characters. If you set it to read lines and leave the number unwired, it will by default read a single line. You don't care about the header data, so don't worry about the output unless you want to show it on the front panel for debug reasons. From there, read the rest of the file as you already have.
MAELV wrote:
When I have execution highlighted, the wavelength index number seems to get stuck fairly quickly (at say #51) where as the power index continually lower to zero.
I'm not sure what you mean by this. Can you post an example file as well so I can play around with what you are seeing?
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
Attachments:
Read Lines.png 5 KB -
Passing/retrieving hidden fields from Its template(IAC) to BSP page
Hi i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...is there any way we can retrieve the data....is there any equivalent of request.getattribute() method which we use in jsp to fetch the hidden fields....
<i>i m passing hidden fields from its template to custom BSP page...but not able to retrieve the hidden field in bsp page...</i>
from ITS template how are you calling/passing parameter to BSP
thru a form submit? or are you just openning the BSP thru a url link, in either case
you could pass the data as a form field (post) or in the url of the BSP (GET)
for example if the form field name in ITS template is myformfiled and you are submitting that to the BSP page then in the corresponding bsp page declare a page attribute withe same name (myformfiled) and mark the auto check box.
now the value passed from ITS template will be available within BSP in the ABAP variable myformfiled which you can use the way you want.
Hope this is clear
Raja -
I am attempting to prepare our Exchange 2010 Server (RTM) for an upgrade to SP3.
When attempting to run "setup.com /PrepareAD" to prep the AD schema, the command fails and I receive the following error in the ExchangeSetup log:
[12/19/2013 21:50:48.0650] [1] Beginning processing Get-OrganizationConfig
[12/19/2013 21:50:48.0665] [1] Searching objects of type "OrganizationConfig" with filter "$null", scope "SubTree" under the root "$null".
[12/19/2013 21:50:48.0806] [1] Previous operation run on domain controller 'DC1.company.com'.
[12/19/2013 21:50:48.0806] [1] Preparing to output objects. The maximum size of the result set is "unlimited".
[12/19/2013 21:50:49.0945] [1] Ending processing Get-OrganizationConfig
[12/19/2013 21:51:42.0753] [1] [REQUIRED] A reboot from a previous installation is pending. Please restart the system and rerun setup.
[12/19/2013 21:51:43.0190] [1] Ending processing test-setuphealth
[12/19/2013 21:51:43.0221] [0] The Exchange Server setup operation didn't complete. More details can be found in ExchangeSetup.log located in the <SystemDrive>:\ExchangeSetupLogs folder.
[12/19/2013 21:51:43.0283] [0] End of Setup
I am receiving this error when attempting to run "setup.com /PrepareAD" from either of our two GCs and I get the same error from both GCs, so the issue doesn't appear to be related to the individual servers.
What should I be checking, to clear this error so the AD schema update can be performed?
Environment
Exchange: Exchange Server 2010 RTM
Server: Windows 2008 R2 (fully patched)
Domain and Forest functionality: Windows 2008 R2 nativeOne follow up:
If I go into regedit, I see that under HKLM\System\CurrentControlSet\Control\Session Manager there is an entry from when I recent installed Google Chrome.
The entry looks like:
MultiString: PendingFileRenameOperation
Value Data: \??\C:\Program FIles (x86)\Google\Chrome
Is this "pending rename" what's causing SP3 to refuse to install, because it thinks the OS install state isn't 'clean'? -
Reboot from a previous install pending
K...
I was having issues with owa in general. Have Exchange 2007 SP1 running on Server 2008. I uninstalled the client access portion and when I go to reinstall, i continually get "Error. A reboot from a previous installation is pending. Please restart the system and rerun setup. I check in the registry to see if there was something in "FileRenameOperations" and nothing. Rebooted just for the hell of it and still getting the same error. I have no idea what is going on. I am currently using this server as the front end and the back end has all the mailboxes on it. Reinstalling IIS7 is not an option considering it is running SCCM 2007 which the boss would go ape if we lost it just because of this error. Anyone out there have any suggestions?Hi There,
(for those with similar issues)
There seems to be another orphan value you could check. See:
http://technet.microsoft.com/en-us/library/cc164360(v=EXCHG.80).aspx
regards
D... -
I was executing the following code in Excel 2013 that is linked to a button I use to add multiple rows in a chosen section of a worksheet
Sub Add_Rows_dc()
Sheet53.Unprotect ("xxx")
X = Range("C1").Value + 1 'Section Counter
Y = ListSheet.Range("I" & X).Value 'Existing rows counter
Z = ListSheet.Range("H" & X).Value 'Position counter
Righe = InputBox("How many rows would you like to add?", , "1")
If Righe < 1 Then GoTo err ' test for invalid row number
RigheSheet.Rows(X).Copy
Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
GoTo Fine
err:
Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
Fine:
'Formulas update
Z = ListSheet.Range("H" & X).Value 'Position counter update
Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
Sheet53.Protect "xxx", , , , , True
End Sub
From time to time it returns me the error "2147417848 The object invoked has disconnected from its clients" and the debug point out the line
Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
I cannot find any specific reason due to the fact that the error seems randomic, sometimes the code is perfectly executed, sometimes not.
I wrote this piece of code in Excel 2010 and never encountered such problem before reusing it in Excel 2013
Has someone an insight or a suggestion?
Thank you very muchRe: strange error
Try it this way...
(might work, might not)
Sub Add_Rows_dc_R1()
Dim X As Double
Dim Y As Double
Dim Z As Double
Dim Righe As Variant
Dim Mess As Long
Sheet53.Unprotect ("xxx")
X = Range("C1").Value + 1 'Section Counter
Y = ListSheet.Range("I" & X).Value 'Existing rows counter
Z = ListSheet.Range("H" & X).Value 'Position counter
Righe = InputBox("How many rows would you like to add?", , "1")
If Righe < 1 Then GoTo errX ' test for invalid row number
RigheSheet.Rows(X).Copy
Rows(Z - 1 & ":" & Righe + Z - 2).Insert Shift:=xlDown
GoTo Fine
Fine:
'Formulas update
Z = ListSheet.Range("H" & X).Value 'Position counter update
Range("U" & Z - Righe - 2 & ":AF" & Z - 2).FillDown
Sheet53.Protect "xxx", , , , , True
Exit Sub
errX:
Mess = MsgBox("PLEASE INSERT A VALID NUMBER OF ROWS", vbCritical)
End Sub
Jim Cone
Portland, Oregon USA
free & commercial excel programs (n/a xl2013)
https://jumpshare.com/b/O5FC6LaBQ6U3UPXjOmX2
Maybe you are looking for
-
Please help! Strange problem with HTTPD.Conf and OC4J (I think)
Hi, We have been trying to configure the 10g "infrastructure" Apache server/instance to work with our own authentication module, and as part of this, we need to configure a directory alias containing some of our JSPs. To do this, the only thing that
-
in my project the timeline and/or the cursor move very jerky (in a continual chattery motion ) in windows 8.1 i have set the Windows Software Compatibility setting for their "Window 7 emulator" and the condition still persists. also the "fullscreen
-
Hi Experts How to find the OSS NOTES implemented in a program. Regards Ganesh Reddy.
-
Mplayer full screen w/ cvidix or sdl
been trying to run mplayer w/o x in full screen. cvidix runs fine, but it doesn't stretch (yes, i know the -fs option), and sdl, while it does run full screen, scrambles with the colors.
-
Headphone sound quality extremely poor, why?
Had dust in the head phone socket, cleared this out and now the sound is extremely poor quality. Is the socket damaged beyond repair?