Warmup scripts
Hello,
I have many warmup scipts in powershell for SP 2010, but none of them seems to work, at least i could not make them work.
I just wish to let you know the particular code fragment which ultimately fails:
$wc = new-object net.webclient;
$wc.credentials = [System.Net.CredentialCache]::DefaultCredentials;
$pageContents = $wc.DownloadString("http://mywebapp/default.aspx");
--OR--
$wc = new-object net.webclient;
$wc.Credentials = New-Object System.Net.NetworkCredential("domainuser", "password", "mydomain");
$pageContents = $wc.DownloadString("http://mywebapp/default.aspx");
What i get with both is:
Exception calling "DownloadString" with "1" argument(s): "The remote server returned an error: (401) Unauthorized."
The user i used is actually Primary Site Collection Administrator, which has all rights over all the sites.
The MOSS 2010 farm is recently installed, with default configuration.
I also allowed the anonym access within the webapp.
Does anybody have any idea what could be the issue ?
Thank you
Dear Leonid Lyublinski,
no luck :(, i have logged in to the server as FarmAdmin,
and tried, still get the Unauthorized access.
Each time i run the script my FarmAdmin account appears in the EventLog,
Audit Failed, see below.
How could it be, my FarmAdmin is a localadmin on the server
+ as far as i know the Initial Config Wizard assign more rights to the FarmAdmin account
(sql db_owner, etc)
Any thoughts ? What should i check about my FarmAdmin account ?
Thank You
Dear Nico,
it does the same, unfortunately, with the same error.
Thank You
An account failed to log on.
Subject:
Security ID: NULL SID
Account Name: -
Account Domain: -
Logon ID: 0x0
Logon Type: 3
Account For Which Logon Failed:
Security ID: NULL SID
Account Name: myFarmAdmin :)
Account Domain: myDomain :)
Failure Information:
Failure Reason: An Error occured during Logon.
Status: 0xc000006d
Sub Status: 0x0
Process Information:
Caller Process ID: 0x0
Caller Process Name: -
Network Information:
Workstation Name: SRVMOSS01
Source Network Address: (my ip address could not tell:)
Source Port: 59070
Detailed Authentication Information:
Logon Process:
Authentication Package: NTLM
Transited Services: -
Package Name (NTLM only): -
Key Length: 0
This event is generated when a logon request fails. It is generated on the computer where access was attempted.
The Subject fields indicate the account on the local system which requested the logon. This is most commonly a service such as the Server service, or a local process such as Winlogon.exe or Services.exe.
The Logon Type field indicates the kind of logon that was requested. The most common types are 2 (interactive) and 3 (network).
The Process Information fields indicate which account and process on the system requested the logon.
The Network Information fields indicate where a remote logon request originated. Workstation name is not always available and may be left blank in some cases.
The authentication information fields provide detailed information about this specific logon request.
- Transited services indicate which intermediate services have participated in this logon request.
- Package name indicates which sub-protocol was used among the NTLM protocols.
- Key length indicates the length of the generated session key. This will be 0 if no session key was requested.
Similar Messages
-
Sharepoint warmup script for https sites
we want to warm up https site which is based on sharepoint 2010.
When we run some sample powershells it shows access forbidden error so we are not able to warm up https site.
Its slow on first load so need some warmup script for https sites.
sharepointerJust ensure that the service account that you use to trigger the Powershell scripts has access to IIS and SharePoint. Most often, the SharePoint Farm account would be used for scheduling the warm up scripts on the WFE server.
I trust that answers your question...
Thanks
C
http://www.cjvandyk.com/blog -
Start Mode = Always Running Instead of Warmup Scripts
I was thinking about changing the "Start Mode" option on the App Pool for some of my key sites from "On Demand" to "Always On" so I don't have to mess with warmup scripts. Is there any reason to NOT use this feature? It seems
to make better sense then a script.1) Not supported
2) Wouldn't help anyways, the 'expensive' part isn't Application Pool startup, but the JIT'ing of assemblies, which would require 'walking' sites that leveraged those assemblies (e.g. just hitting the home page of a Team site with no content wouldn't JIT
all assemblies that may be used throughout the Web Application)
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Warm-up script unable to wake up a site
Hi There,
I am trying a warm script on 2013 but some sites fail to open.
Reason:
Site: https:// xyz.net
Exception calling "GetResponse" with "0" argument(s): "The remote server returned an error: (401) Unauthorized."
At C:\Users\zspsetupdev\Desktop\Newspwakeup\sa.ps1:86 char:5
+ $response = $request.GetResponse()
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : WebException
Failed waking :
Here is my code below, Please suggest :(
if ((Get-PSSnapin "Microsoft.SharePoint.PowerShell" -ErrorAction SilentlyContinue) -eq $null)
Add-PSSnapin "Microsoft.SharePoint.PowerShell"
$InputfileName="SP2013-warmup-extra.txt";
$LogfileName="scriptrun.log";
$ScriptPath = Split-Path -parent $MyInvocation.MyCommand.Definition;
$extrasitelistfile= $ScriptPath + "\" +$InputfileName;
$Logfile=$ScriptPath + "\" + $LogfileName;
#Check if log file exists and delete. Each time new file is created
if (Test-Path ($Logfile))
Remove-Item $Logfile
Function LogWrite
Param ([string]$logstring)
write-host $logstring;
$now=Get-Date -format "dd-MMM-yyyy HH:mm:ss" ;
$msg= $now + " :: " + $logstring;
Add-content $Logfile -value $msg
Logwrite $extrasitelistfile
if (Test-Path ($extrasitelistfile))
Logwrite $extrasitelistfile "...File exists";
else
Logwrite $extrasitelistfile "...File Not found" ;
function get-webpage([string]$url,[System.Net.NetworkCredential]$cred=$null)
$wc = new-object net.webclient
if($cred -eq $null)
$cred = [System.Net.CredentialCache]::DefaultCredentials;
$wc.credentials = $cred;
return $wc.DownloadString($url);
function LoadSite([string]$url,[System.Net.NetworkCredential]$cred=$null)
if($cred -eq $null)
$cred = [System.Net.CredentialCache]::DefaultCredentials;
$request = [System.Net.WebRequest]::Create($url)
$request.AllowAutoRedirect = $true
$request.proxy = [System.Net.WebRequest]::DefaultWebProxy
$request.Credentials = $cred
$request.ContentType = "application/x-www-form-urlencoded"
$request.Headers.Add("X-FORMS_BASED_AUTH_ACCEPTED","f")
$request.Method="GET"
$request.UserAgent = "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322)"
$response = $request.GetResponse()
return $response.StatusCode
function WarmupSite([string]$url,[System.Net.NetworkCredential]$cred=$null)
Logwrite "Site: $url"
$result = LoadSite -url $url -cred $cred;
If ($result -eq "OK")
Logwrite "Woke up $($_.Url)";
"Woke up $($_.Url)"|write-host -back darkgreen
else
Logwrite "Failed waking $($_.url): $result";
"Failed waking $($_.url): $result" | write-host -back darkred
#This passes in the default credentials needed. If you need specific
#stuff you can use something else to elevate basically the permissions.
#Or run this task as a user that has a Policy above all the Web
#Applications with the correct permissions
Logwrite "Starting warmup script"
Logwrite "Setting default credentials"
$cred = [System.Net.CredentialCache]::DefaultCredentials;
Logwrite "Getting web applications"
# Get all the webapplications on the farm and loop through individual sites
$apps = get-spwebapplication -includecentraladministration
foreach ($app in $apps)
$sites = get-spsite -webapplication $app.url -limit all
foreach ($site in $sites)
WarmupSite -url $site.Url -cred $cred;
Logwrite "Reading site url's from the file"
# Warm up other sites specified in SP2010-warmup-extra.txt file (such as Search, other external URL)
if (test-path $extrasitelistfile)
Logwrite $extrasitelistfile "found";
$extrasites = get-content $extrasitelistfile
foreach ($site in $extrasites)
# Call warmup site with SiteURL and credentials
WarmupSite -url $site -cred $cred;
Logwrite "Script execution completed"
Thanks in advace :)Hi,
Please try to set the Credentials property using the following line of code.
$request.Credentials=new-object System.Net.NetworkCredential($username, $password, $domain)
I suggest you use a system account to check whether it works or not.
If you want to warm up SharePoint 2013 using PowerShell, the following articles for your reference:
SPBestWarmUp
https://spbestwarmup.codeplex.com/
Using PowerShell to warm up SharePoint 2013
http://www.toddklindt.com/blog/Lists/Posts/Post.aspx?ID=404
Best Regards
Dennis Guo
TechNet Community Support -
Hi,
I have a page with an embedded VDW that takes 30 seconds to load during periods of inactivity. To try to get around this I created a warmup script which I have runnig as a scheduled task every 5 minutes however it doesn't make a difference to performance (see
script below). When I run interactively (set $visible to true,and run from powershell_ISE) I can see the page opening and closing but still I haven't confirmed if this rectifies my performance issues .
I'm finding it very difficult to test because each time I log in and the page loads I have to wait what seems like around 25 minutes to replicate the issue (i.e. service stops, or something goes out of memory).
Perhaps this be related to IIS app pool properties?
$oIE=new-object -com internetexplorer.application
# visibility can be set to false so we don't see the actual browser window
$oIE.visible=$False;
# wait till browser is loaded
while ($oIE.busy) {
sleep -milliseconds 50
# request new url
$oIE.navigate2("http://blahblah/default.aspx") ;
# wait till url is loaded
while ($oIE.busy) {
sleep -milliseconds 50
$doc = $oIE.Document;
$doc.readyState;
# Close browser
$oIE.Quit();Here is hiw the issue was resolved
http://support.microsoft.com/kb/2672574/EN-US
Please apply the workaround 2 in the KB article to disable the automatic update of root certificates on the SharePoint Servers
Steps:
Under the
Computer Configuration node in the Local Group PolicyEditor, double-click
Policies
Double-click
Windows Settings, double-click Security Settings, and then double-click
Public Key Policies
In the
details pane, double-click Certificate Path Validation Settings
Click the
Network Retrieval tab, click to select the Define these policy settings check box, and then click to clear the
Automatically update certificates in the Microsoft Root Certificate Program (recommended) check box
Click
OK, and then close the Local Group Policy Editor
Run
gpupdate /force for the policy to take effect immediately -
Force downloading mysite HD photos from Exchange 2013
Hi Sharepoint Admins,
I want to force download all HD photos from Exchange 2013 into users mysite profiles. I already provisioned all user mysites by powershell. HD photos are also available, but every user has to open his own mysite by himself to trigger the picture download.
The goal is to download photos without having every user to logon on their site.
Is there any way to force this?
"SharePoint Server 2013 requests photos from Exchange 2013 automatically when a user performs an operation that causes a request for their own photo (for example, browsing to their own user profile page). That means that the user needs to have requested
his/her own photo, before other users will be able to see it."
Best Regards
Markus KühnHi Markus,
I understand you would like to manually sync HD photo from Exchange 2013 to SharePoint 2013 mysite.
Since "SharePoint Server 2013 requests photos from Exchange 2013 automatically when a user performs an operation that causes a request for their own photo (for example, browsing to their own user profile page)", you need to browse all
sites in Mysite web application.
To do this, you may refer SharePoint warmup script and make the script to work for you MySite web application. Just run the warmup script, all mysites can be browsed once.
https://gallery.technet.microsoft.com/office/SharePoint-2007-2010-or-d1884b4b
https://spbestwarmup.codeplex.com/
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Sharepoint Application Performance
Hi ,
we have 2 WEF and 2 App Servers in our SharePoint farm, but First time application loading is taking 45s to 60s .
Please let me know how I need to improve my Application Performance.
Following things I did for Improve my application performance ,but I never got success.
1. Warmup scripts
2. Shutdown distribute cache (we are not using social activities)
Thanks,
Amar
AmarHi Amar,
I understand you encountered the slow loading SharePoint site. I'd recommend an article for Common troubleshooting steps Performance issue \ Web Site slow:
http://social.technet.microsoft.com/wiki/contents/articles/26685.common-troubleshooting-step-sharepoint-2013-sharepoint-2010-and-sharepoint-2007-performance-issue-web-site-slow.aspx
Please check your environment per the article and let me know if you need more assistance.
In addition, here is the warmup scripts should work, you could also have a try:
https://gallery.technet.microsoft.com/office/SharePoint-2007-2010-or-d1884b4b
https://spbestwarmup.codeplex.com/
Regards,
Rebecca Tu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
[email protected] -
Service Application Performance (Visio)
Hi,
After periods of inactivity (like half an hour) takes 30 seconds to load any vdw after that it's almost instant for all users..
To try to rectify I've done the following (none of these were successful):
1) Tested multiple warmup scripts to open a page/_layout containing vdw (using internetexplorer.application)
2) Enabled caches (output and object)
3) Made sure CRL's are installed
4) Checked IIS timeout is 0 and worker process recycling is 0
5) Increased diagram caches on Graphics Service
The only way to speed up is logging in manually and refreshing browser each 25 mins
I was thinking maybe there's' a particular service that drops out of memory (visio graphics service)? If so is there a way to keep in memory? Maybe a script that does a wake up on the service?
Any help appreciated.
MarcoHere is the answer (workaround 2)
http://support.microsoft.com/kb/2672574/EN-US
Please apply the workaround 2 in the KB article to disable the automatic update of root certificates on the SharePoint Servers
Steps:
Under the
Computer Configuration node in the Local Group PolicyEditor, double-click
Policies
Double-click
Windows Settings, double-click Security Settings, and then double-click
Public Key Policies
In the
details pane, double-click Certificate Path Validation Settings
Click the
Network Retrieval tab, click to select the Define these policy settings check box, and then click to clear the
Automatically update certificates in the Microsoft Root Certificate Program (recommended) check box
Click
OK, and then close the Local Group Policy Editor
Run
gpupdate /force for the policy to take effect immediately -
How to delete the members in one dimension use the maxl script
i have question that i want to delete the members in one dimension useing the maxl script, but i do not know how to do it. can the maxl delete the members in one dimension? if can, please provide an sample script, thank you so mcuh.
MaxL does not have commands to alter an outline directly, except the reset command which can delete all dimensions but not members selectively. The best you could do would be to run a rules file (import dimensions) using a file that contains the members you want to keepload rule for the dimension. As typical the warning is to test this first before you do it on a production database
-
Unable to capture the adf table column sort icons using open script tool
Hi All,
I am new to OATS and I am trying to create script for testing ADF application using open script tool. I face issues in recording two events.
1. I am unable to record the event of clicking adf table column sort icons that exist on the column header. I tried to use the capture tool, but that couldn't help me.
2. The second issue is I am unable to capture the panel header text. The component can be identified but I was not able to identify the supporting attribute for the header text.Hi keerthi,
1. I have pasted the code for the first issue
web
.button(
122,
"/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1824fhkchs_6']/web:form[@id='pt1:_UISform1' or @name='pt1:_UISform1' or @index='0']/web:button[@id='pt1:MA:0:n1:1:pt1:qryId1::search' or @value='Search' or @index='3']")
.click();
adf
.table(
"/web:window[@index='0' or @title='Manage Network Targets - Oracle Communications Order and Service Management - Order and Service Management']/web:document[@index='0' or @name='1c9nk1ryzv_6']/web:ADFTable[@absoluteLocator='pt1:MA:n1:pt1:pnlcltn:resId1']")
.columnSort("Ascending", "Name" );
} -
If statement in Custom Calculation Script
I have 16 fields and if even one of them ="1" I have to list it in another field. I do not want to count or sum. If one of those fields has a 1 in it I just want the other field to display Y and if none have a 1 I want that field to display N.
Please help.
Thank you in advance~mjcYou need to write a compound logical statement to evaluate all of the values and that statement needs to evaluate to true or false.
Do you know how to write JavaScript?
Do you know how to enter JavaScript calculations into a form field?
For custom calculation of the text field I could write something like:
// define an array of the field names to check
var aNames = new Array("Text1", "Text2", "Text3", "Text4",
"Text5", "Text6", "Text7", "Text8",
"Text9", "Text10", "Text11", "Text12",
"Text13", "Text14", "Text15", "Text16");
// define a logical variable that is true if any field has a value of 1 - default is false or no field has a value of 1
var bMatch = false;
// value for text field
var TextValue = 0;
// logical value of field being equal to 1 test
var FieldIs1 = false;
// loop through all the fields and test the fields value
for(i = 0; i < aNames.length; i++) {
// logically OR the result of field i value equal to true with bMatch
// get the value of field
TextValue = this.getField( aNames[i] ).value;
// test the value of the field
FieldIs1 = Number(TextValue) == 1
// logically OR the 2 values
bMatch = FieldIs1 | bMatch;
} // end field processing
// set the field value
if(bMatch == true) {
event.value = "Y";
} else {
event.value = "N";
You will need to change the field names to match your fields. You can add more field name or remove field names as needed and the script will adjust for the number of field names. -
Hi All,
I have written the below If statement in SAP scripts but when i execute the same the controll doent check the second line entries. If firtst line doesnot satisfy it goes to the else part. Kindly suggest what is wrong in this..
/: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
/: &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
/: &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
/: &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
/: ELSE
/: ENDIF.Hi neha,
Try to use the '/E' fo rnext line
/E->Extended line
Here is a code:
/: IF &T156T-BWART& = '321' OR &T156T-BWART& = '322' OR
/E &T156T-BWART& = '349' OR &T156T-BWART& = '350' OR
/E &T156T-BWART& = '312' OR &T156T-BWART& = '326' OR
/E &T156T-BWART& = '343' OR &T156T-BWART& = '344'.
/: ELSE
/: ENDIF.
Hope this helps you.
Regards,
Rajani -
Installation Problem on 11g, RHEL 5 - Unable to generate temporary script
Hello all,
This is for the first time i am encountering this kind of error on 11g. Half way through installation i get this error.
All parameters set correct, used the official installation technique (works fine previously), except for this time i am getting a weird error, which does not allow me to continue with the installation.
Please help.
Environment
Oracle 11g
RHEL 5
Error on GUI -
OUI-10053: Unable to generate temporary script: {0}. Unable to continue install
Error on command prompt -
OUI-10053:Unable to generate temporary script: /u01/app/oraInventory/orainstRoot.sh. Unable to continue install.
Help appreciated.
ThanksHi Monu Koshy
Can you please control the user rights and also the df ?
ls -al /u01/app/oraInventory/
df -h /u01/app/oraInventory/
Regards,
Hub -
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
제품: MFG_PO
작성날짜 : 2006-05-11
SAMPLE RECEIVING OPEN INTERFACE SCRIPT(ROI 이용자를 위한 SCRIPT)
================================================================
PURPOSE
Receiving Open Interface(ROI)를 좀더 쉽게 사용할 수 있도록 만들어진
tool이라고 할 수 있다. 이 script를 이용을 통해 user는 PO no, user id,
Org id를 입력하면 script는 PO에서 최소한의 data를 가져와 receiving
transaction을 생성하기 위해 ROI에 data를 입력한다.
Receiving Transaction Processor는 insert 된 data를 실행한다.
Explanation
Instructions:
1.Script exroi.sql을 local computer에 copy 하거나 sqlplus 환경의 text
edior에 script 내용을 cut&paste 한다.
2.사용가능한 PO no, User id, Org id를 결정한다.
3.sqlplus prompt에서 아래와 같이 입력한다.
SQL> @ezroi.sql
4.PO no, User id, Org id를 입력하라는 prompt를 볼 수 있을 것이다.
5.exroi.sql script를 관련된 PO data를 가져와 rcv_headers_interface 및
rcv_transactions_interface tables에 insert 한다.
만일 PO shipment lind이 closed, cancelled, fully received 되었다면
ROI table에 data를 insert 하지 않는다.
Note: 이 script가 data를 validate 하진 않으며,ROI API 자체 validation
이 실행될 뿐이다.
6.Script가 끝나면 Receiving Transaction Processor를 실행하여 insert 된
lines을 처리할 수 있다. Transaction Status Summary 화면을 통해 실행된
line이 pending 인지 error 상태인지 확인할 수 있다.
Notes:
1.Org_id parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: ORG_ID 를 선택한다.
b) ORG_ID 값을 note 해 놓고 ORG_ID prompt시 이 값을 입력한다.
2.User_Name parameter 값을 찾는법:
a) Application에 접속, Help> Diagnostics> Examine으로 이동.
Block:$Profile$, Field: USER_NAME 를 선택한다.
b) USER_NAME 값을 note 해 놓고 USER_NAME prompt시 이 값을 입력한다.
Example
"eZROI.sql' script...
--*** eZROI ***
--*** by ***
--*** Preston D. Davenport ***
--*** Oracle Premium Applications Support ***
--*** Oracle Worldwide Global Support Services ***
--*** Date: 23-JUL-2003 - Beta release ***
--*** Date: 09-SEP-2003 - Rev A Added multi- ***
--*** shipment line capability ***
--*** Parameters: ***
--*** ORG_ID Organization ID ***
--*** USER_NAME FND User Name ***
--*** PO_NUMBER Purchase Order Number ***
--*** This script intended for a standard Purchase ***
--*** Order document to be inserted into the Oracle ***
--*** Receiving Open Interface (ROI) via the standard ***
--*** Oracle open interface api for a simple Receive ***
--*** transaction. ***
--*** Note: This script only considers open Purchase ***
--*** Orders. This script will not allow over- ***
--*** receipt, cancelled or closed PO's to be ***
--*** inserted into the ROI and received ***
CLEAR BUFFER
SET VERIFY OFF
SET LINESIZE 140
SET PAGESIZE 60
SET ARRAYSIZE 1
SET SERVEROUTPUT ON SIZE 100000
SET FEEDBACK OFF
SET ECHO OFF
DECLARE
X_USER_ID NUMBER;
X_PO_HEADER_ID NUMBER;
X_VENDOR_ID NUMBER;
X_SEGMENT1 NUMBER;
X_ORG_ID NUMBER;
X_LINE_NUM NUMBER;
BEGIN
DBMS_OUTPUT.PUT_LINE('***ezROI RCV API Insert Script***');
SELECT PO_HEADER_ID , VENDOR_ID , SEGMENT1 , ORG_ID
INTO X_PO_HEADER_ID , X_VENDOR_ID , X_SEGMENT1 , X_ORG_ID
FROM PO_HEADERS_ALL
WHERE SEGMENT1 = '&PO_NUMBER'
AND ORG_ID = &ORG_ID;
SELECT USER_ID INTO X_USER_ID
FROM FND_USER
WHERE USER_NAME = UPPER('&USER_NAME');
INSERT INTO RCV_HEADERS_INTERFACE
HEADER_INTERFACE_ID ,
GROUP_ID ,
PROCESSING_STATUS_CODE ,
RECEIPT_SOURCE_CODE ,
TRANSACTION_TYPE ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
LAST_UPDATE_LOGIN ,
VENDOR_ID ,
EXPECTED_RECEIPT_DATE ,
VALIDATION_FLAG
SELECT
RCV_HEADERS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.NEXTVAL ,
'PENDING' ,
'VENDOR' ,
'NEW' ,
SYSDATE ,
X_USER_ID ,
0 ,
X_VENDOR_ID ,
SYSDATE ,
'Y'
FROM DUAL;
DECLARE
CURSOR PO_LINE IS
SELECT PL.ITEM_ID , PL.PO_LINE_ID , PL.LINE_NUM ,
PLL.QUANTITY , PL.UNIT_MEAS_LOOKUP_CODE ,
MP.ORGANIZATION_CODE , PLL.LINE_LOCATION_ID ,
PLL.CLOSED_CODE , PLL.QUANTITY_RECEIVED ,
PLL.CANCEL_FLAG, PLL.SHIPMENT_NUM
FROM PO_LINES_ALL PL ,
PO_LINE_LOCATIONS_ALL PLL ,
MTL_PARAMETERS MP
WHERE PL.PO_HEADER_ID = X_PO_HEADER_ID
AND PL.PO_LINE_ID = PLL.PO_LINE_ID
AND PLL.SHIP_TO_ORGANIZATION_ID = MP.ORGANIZATION_ID;
BEGIN
FOR CURSOR1 IN PO_LINE LOOP
IF CURSOR1.CLOSED_CODE IN ('APPROVED','OPEN')
AND CURSOR1.QUANTITY_RECEIVED < CURSOR1.QUANTITY
AND NVL(CURSOR1.CANCEL_FLAG,'N') = 'N'
THEN
INSERT INTO RCV_TRANSACTIONS_INTERFACE
INTERFACE_TRANSACTION_ID ,
GROUP_ID ,
LAST_UPDATE_DATE ,
LAST_UPDATED_BY ,
CREATION_DATE ,
CREATED_BY ,
LAST_UPDATE_LOGIN ,
TRANSACTION_TYPE ,
TRANSACTION_DATE ,
PROCESSING_STATUS_CODE ,
PROCESSING_MODE_CODE ,
TRANSACTION_STATUS_CODE ,
PO_LINE_ID ,
ITEM_ID ,
QUANTITY ,
UNIT_OF_MEASURE ,
PO_LINE_LOCATION_ID ,
AUTO_TRANSACT_CODE ,
RECEIPT_SOURCE_CODE ,
TO_ORGANIZATION_CODE ,
SOURCE_DOCUMENT_CODE ,
DOCUMENT_NUM ,
HEADER_INTERFACE_ID ,
VALIDATION_FLAG
SELECT
RCV_TRANSACTIONS_INTERFACE_S.NEXTVAL ,
RCV_INTERFACE_GROUPS_S.CURRVAL ,
SYSDATE ,
X_USER_ID ,
SYSDATE ,
X_USER_ID ,
0 ,
'RECEIVE' ,
SYSDATE ,
'PENDING' ,
'BATCH' ,
'PENDING' ,
CURSOR1.PO_LINE_ID ,
CURSOR1.ITEM_ID ,
CURSOR1.QUANTITY ,
CURSOR1.UNIT_MEAS_LOOKUP_CODE ,
CURSOR1.LINE_LOCATION_ID ,
'RECEIVE' ,
'VENDOR' ,
CURSOR1.ORGANIZATION_CODE ,
'PO' ,
X_SEGMENT1 ,
RCV_HEADERS_INTERFACE_S.CURRVAL ,
'Y'
FROM DUAL;
DBMS_OUTPUT.PUT_LINE('PO line: '||CURSOR1.LINE_NUM||' Shipment: '||CURSOR1.SHIPMENT_NUM||' has been inserted into ROI.');
ELSE
DBMS_OUTPUT.PUT_LINE('PO line '||CURSOR1.LINE_NUM||' is either closed, cancelled, received.');
END IF;
END LOOP;
DBMS_OUTPUT.PUT_LINE('*** ezROI COMPLETE - End ***');
END;
COMMIT;
END;
SET VERIFY ON
Reference Documents
Note 245334.1I have the same problem on ESXI 5.5 for over a month now, tried the patches, tried the LTS kernel which others say results in an immediate result without patches, nothing seems to work and nobody seems to be able to offer a solution.
Did you make any progress ??
Error! Build of vmblock.ko failed for: 3.10.25-1-lts (x86_64)
Consult the make.log in the build directory
/var/lib/dkms/open-vm-tools/2013.09.16/build/ for more information.
make[2]: *** No rule to make target '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/linux/inode', needed by '/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock/vmblock.o'. Stop.
Makefile:1224: recipe for target '_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock' failed
make[1]: *** [_module_/var/lib/dkms/open-vm-tools/2013.09.16/build/vmblock] Error 2
make[1]: Leaving directory '/usr/src/linux-3.10.25-1-lts'
Makefile:120: recipe for target 'vmblock.ko' failed
Last edited by crankshaft (2014-01-10 11:32:32) -
<pre><nowiki>function createEmbed(divID, context, locale, server,client)
var d = document.getElementById(divID);
d.innerHTML = '<EMBED type="application/x-java-applet;version=1.8" CODE="com.cybertrust.webrao.WebRAOApplet.class"'+
'JAVA_CODEBASE="'+context+'" '+
'ARCHIVE="WebRAO.jar" '+
'NAME="WebRAOApplet" '+
'MAYSCRIPT="true" '+
'pluginspage="http://javadl.sun.com/webapps/download/GetFile/1.8.0_31-b13/windows-i586/xpiinstall.exe"'+
'L="'+locale+'" ' +
'PinTimeout="'+server+'"'+
'ClientTimeout="'+client+'"'+
'separate_jvm="true"'+
'java_version="1.8.0_31" />';
}</nowiki></pre>
We are using the above script. Defined the application/x-java-applet;version=1.8 So. as per the oracle documentation, Firefox has to check whether java version 1.8 or above is available and then run the applet thereby opening the run window and finally the applet window has to open. So the expectation is if 1.8 jre is not available it has to trigger the pluginspage attribute thereby redirecting to the jre autodownload url mentioned in pluginspage. This code use to work for firefox 21. Not sure why it will not work with any of the versions above 21. Right now we are trying with firefox 36. The same code works with IE 11 also. Please suggest is there any solution for the same.There are some updates happening to [https://www.mozilla.org/en-US/plugincheck/]
However to further investigate I would suggest troubleshooting the installation of Java:
*[http://kb.mozillazine.org/Java#Java_Deployment_Toolkit_plugin]
*[https://support.mozilla.org/en-US/kb/troubleshoot-issues-with-plugins-fix-problems]
Or also checking with Mozillazine or stackoverflow.com for compatibility and development troubleshooting is a good place to also look.
Maybe you are looking for
-
Hey there, During startup of my MacBook Pro, Captive Network Assistant checks 249 different airport, hotel and other misc. WiFi hotspots. Proabaly adding a good 3 minutes to my startup time. ***? This all started while I was on extended layover at Am
-
Hi Experts confusion on migration from "SAP Business One" to "SAP R/3"
Hi All I am a certified SAP Business One Certified Solution consultant and working on SAP Business One for the past 2.5 yrs and done 4 implementations. I want to migrate to SAP R/3 and have confusion on weather to join Project Systems/Material Manage
-
H:panelGrid and css problem?
Hi, I have following piece of code: <h:panelGrid columns="3" columnClasses="columnHeader,oddRow,evenRow" rowClasses="oddRow, evenRow" styleClass="tableSettings"> <h:outputLabel for="accountName"> <h:outputText value="Account Name"/>
-
I am trying to indent the list items. I want to have the code for how to indent the list items so that i can make indentation of n level. My idea is to have some functionality like list in ms word. any help is appreciated.
-
MP4 exported from Premiere Pro CS6 runs choppy on some computers . . .
I have a video clip that was rendered as a .mov file in AfterFX CS6. I uploaded it to youtube exported as a 1080p HD MP4 (target bitrate 12, max bitrate 12, VBR, 2-pass) that runs OK on my computer at any resolution, and runs OK on my iPad and 47" T