PL/SQL Process Error
Hello All,
I am creating my first PL/SQL Process in APEX and I am having some issues. The Code is as follows:
DECLARE
a INT;
BEGIN
Select ON_TRACK_NUM INTO a from TBL_CMR_TRIAL Where PK_TRIAL = 2;
IF a=1 THEN UPDATE TBL_CMR_PROJECT
SET ON_TRACK = 'Yes'
WHERE PK_PROJECT = :P4_FK1_PROJECT;
ELSEIF a=0 THEN UPDATE TBL_CMR_PROJECT
SET ON_TRACK = 'No'
WHERE PK_PROJECT = :P4_FK1_PROJECT;
END IF;
END;
I have larger plans for this code but this is the first step where I have hard coded in the number 2. Pretty much it is supposed to look at the ON_TRACK_NUM field for this particular row and if it is 1 change another field in another table to Yes or if 0 then No.
The errors I am getting are:
1 error has occurred
ORA-06550: line 12, column 8: PLS-00103: Encountered the symbol "A" when expecting one of the following: := . ( @ % ; ORA-06550: line 17, column 4: PLS-00103: Encountered the symbol ";" when expecting one of the following: if
I feel like I am probably really close to getting this right but I have some small syntax wrong. Could anyone please take a look and give a hand? Thanks.
You can't use a as a variable name. Try a_num.
DECLARE
a_num int;
BEGIN
Select ON_TRACK_NUM
INTO a_num
from TBL_CMR_TRIAL
where PK_TRIAL = 2;
Similar Messages
-
SQL Processing Error: Error Processing MDX command : Cube AN_EFASHION
Hi Experts,
I am able to see data in HANA studio when i am doing data preview of analytic view. But when i am trying to view same data from Excel as per below link
https://www.experiencesaphana.com/docs/DOC-1138
I am getting Error as
sql Processing error: Error Processing MDX command : Cube AN_EFASHION could not found.
Please guide me.
ThanksHi Tomas,
How should i check if my user have SELECT privilege to SYSBIC schema?
Can i execute SQL statement to assign this privilege?
I checked for my user.
In General Roles: Modeling, Monitoring , Public and SLT_EC1_DATA_PROV has been assigned
in SQL Privileges. COPA_TEMPLATE, SYSTEM and ZWEATHER has been assigned
In Analytic Privileges : None
In System Privileges: Import and Export
In Package Privileges: Root package.
I am able to execute below SQL statement successfully , check from clause , then it means, i have a necessary Privileges to select from SYSBIC schema.
Generated Data Preview Query: SELECT TOP 200 sum("MARGIN") AS MARGIN, sum("AMOUNT_SOLD") AS AMOUNT_SOLD, sum("QUANTITY_SOLD") AS QUANTITY_SOLD, "CATEGORY", "FAMILY_NAME", "ARTICLE_LOOKUP_ARTICLE_ID", "ARTICLE_COLOR_LOOKUP_COLOR_CODE", "COLOR_LABEL", "ARTICLE_ID", "YR", "QTR", "MTH", "CALENDAR_YEAR_WEEK_ID", "MANAGER", "CITY", "STATE", "OUTLET_LOOKUP_SHOP_ID" FROM "_SYS_BIC"."i065360/AN_EFASHION" GROUP BY "CATEGORY", "FAMILY_NAME", "ARTICLE_LOOKUP_ARTICLE_ID", "ARTICLE_COLOR_LOOKUP_COLOR_CODE", "COLOR_LABEL", "ARTICLE_ID", "YR", "QTR", "MTH", "CALENDAR_YEAR_WEEK_ID", "MANAGER", "CITY", "STATE", "OUTLET_LOOKUP_SHOP_ID"
Thanks a lot
Edited by: New_K_sap on Nov 22, 2011 5:06 PM -
Location: bcpimp.cpp:1797
Expression: cbOutTemp < cbOutputStr
SPID: 52
Process ID: 2364
Msg 3624, Level 20, State 1, Line 3
A system assertion check has failed. Check the SQL Server error log for details. Typically, an assertion failure is caused by a software bug or data corruption. To check for database corruption, consider running DBCC CHECKDB. If you agreed to send dumps to
Microsoft during setup, a mini dump will be sent to Microsoft. An update might be available from Microsoft in the latest Service Pack or in a QFE from Technical Support.
Msg 0, Level 20, State 0, Line 0
A severe error occurred on the current command. The results, if any, should be discarded.If you check your sql server error log folder you will see dump files created. You need to send those dump files to Microsoft for inspection because outside of microsoft product support the symbols for reading the dumps are not available without which it
wont be easy to find the issue.
http://support.microsoft.com/kb/2028589
In the meantime check if you are on the latest version of Service Pack and if not apply the latest service pack. Majority of these kind of assertions are bugs which are solved in Service Packs/Cumulative Updates.
Regards, Ashwin Menon My Blog - http:\\sqllearnings.com -
Problem setting a hidden item value when button clicked with dynamic action or pl/sql process
Apex 4.1
Oracle 11g
I have a page that consists of a main region and several sub regions. I have a pl/sql process in After Header SET_DISPLAY(:P400_DISPLAY :='MAIN';)
Three subregions have a contional display where P400_DISPLAY = STORE. This works in hiding the sub regions.
Now I want to change the P400_DISPLAY value to STORE to show the subregions when I hit a button.
I tried creating a dynamic action for on click of the add button but get the following error:
The selected button uses a 'Button Template' that does not contain the #BUTTON_ID# substitution string
I went to the templates and found:
Substitution Strings
Substitution strings are used within sub templates to reference component values. This report details substitution string usage for this template.
Substitution String
Referenced
From
Description
#LINK#
Yes
Template
To be used in an "href" attribute
#JAVASCRIPT#
No
To be used in an "onclick" attribute
#LABEL#
Yes
Template
Button Label
#BUTTON_ATTRIBUTES#
No
Button Attributes
#BUTTON_ID#
No
Generated button ID will be either the button's Static ID if defined, or if not will be an internally generated ID in the format 'B' || [Internal Button ID]
I then tried creating a page process, pl/sql, :P400_DISPLAY :='STORE'; when the appropriate button is pressed. The button action is submit page. However, it does not change the P400_DISPLAY value and the subregions stay hidden.
Suggestions please on how to fix the template or change the P400_DISPLAY value?The root issue is that, although you change the value of your page item, it isn't visible to other areas of the page until it is in the session. So, any other action based on the value of your page item; the visibility of a control, a report based on the item's value, etc. will all be unaffected by changing the value of the page item until it has been changed in the session. Even after this the items are stored in the session, you must thereafter do something to cause the value to be reevaluated. To see the effect of this, observe that your page loads and evaluates the value of your page item, it sees that is "MAIN" and hides the regions. However, it doesn't reevaluate them after this.
So; your choices to get this value set in the session are to either Submit the page, or use JavaScript to set the value in the session. If you use the latter of these, you'll have to do some further work to cause the visibility tests to be re-run, So, let's stick with with the submit method.
What you've done above sounds correct for this but, there are a lot of decisions you could have made that might have caused things not to happen in the correct sequence.
Firstly, let's confirm that what I describe above is your problem. From the development environment, load the page, click the button to change the value and submit. Now, click the link labelled Session. Is it still set to MAIN? If so; this is your issue.
Let's start with the your After Header computation. Did you set it to *only* run if the current value of your page item is NULL??? If not, that's your problem.
Load Page -> Item set to 'Main' by Computation -> Click Button -> Item set to STORE -> Submit -> Load Page -> Item set to 'Main' by Computation
See the problem?
Assuming this isn't the issue, you created a Branch to the same page, right? What is your process point for the Branch? Is it *After* Validation, Computation etc? Because if not, you aren't changing the value before the submit happens.
I bet it is the first issue but, take a look at these.
Cheers,
-Joe -
Bug Report: #SQLERRM_TEXT# in Process Error Message
According to the Online Help for "Process Error Message" #SQLERRM_TEXT# should be replaced by "Text of error message without the error number". But it isn't.
Patrick
My APEX Blog: http://inside-apex.blogspot.com
The ApexLib Framework: http://apexlib.sourceforge.net
The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/I created an after submit PL/SQL process:begin
raise_application_error(-20000,'custom error text');
end;In the process error message attribute, I put:
My error message with #SQLERRM_TEXT# in it.
I submit the page and see this page:ORA-20000: custom error text
Error My error message with custom error text in it.
OKScott -
I m using SQL Server 2012 Developer Edition. Even I tried 2012 express and enterprise edition but all
gave same error. I browsed msdn blog. But nothing help me out.
Below is the error log details--
Overall summary:
Final result: Failed: see details below
Exit code (Decimal): -2061893606
Start time: 2013-10-21 12:58:05
End time: 2013-10-21 13:52:30
Requested action: Install
Setup completed with required actions for features.
Troubleshooting information for those features:
Next step for RS: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for SQLEngine: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for DQ: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for FullText: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Next step for Replication: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Machine Properties:
Machine name: CROY-TOSH
Machine processor count: 4
OS version: Windows 7
OS service pack: Service Pack 1
OS region: United States
OS language: English (United States)
OS architecture: x64
Process architecture: 64 Bit
OS clustered: No
Product features discovered:
Product Instance Instance ID Feature
Language Edition Version Clustered
Package properties:
Description: Microsoft SQL Server 2012 Service Pack 1
ProductName: SQL Server 2012
Type: RTM
Version: 11
SPLevel: 0
Installation location: C:\Users\CRoy\Downloads\SQL Server 2012 Developer Edition (x86 and x64) - DVD (English)\x64\setup\
Installation edition: Developer
Product Update Status:
None discovered.
User Input Settings:
ACTION: Install
ADDCURRENTUSERASSQLADMIN: false
AGTSVCACCOUNT: NT Service\SQLSERVERAGENT
AGTSVCPASSWORD: *****
AGTSVCSTARTUPTYPE: Manual
ASBACKUPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Backup
ASCOLLATION: Latin1_General_CI_AI
ASCONFIGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Config
ASDATADIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Data
ASLOGDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Log
ASPROVIDERMSOLAP: 1
ASSERVERMODE: MULTIDIMENSIONAL
ASSVCACCOUNT: NT Service\MSSQLServerOLAPService
ASSVCPASSWORD: <empty>
ASSVCSTARTUPTYPE: Automatic
ASSYSADMINACCOUNTS: CRoy-TOSH\CRoy
ASTEMPDIR: C:\Program Files\Microsoft SQL Server\MSAS11.MSSQLSERVER\OLAP\Temp
BROWSERSVCSTARTUPTYPE: Disabled
CLTCTLRNAME: ROY
CLTRESULTDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\ResultDir\
CLTSTARTUPTYPE: Manual
CLTSVCACCOUNT: NT Service\SQL Server Distributed Replay Client
CLTSVCPASSWORD: <empty>
CLTWORKINGDIR: C:\Program Files (x86)\Microsoft SQL Server\DReplayClient\WorkingDir\
COMMFABRICENCRYPTION: 0
COMMFABRICNETWORKLEVEL: 0
COMMFABRICPORT: 0
CONFIGURATIONFILE: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\ConfigurationFile.ini
CTLRSTARTUPTYPE: Manual
CTLRSVCACCOUNT: NT Service\SQL Server Distributed Replay Controller
CTLRSVCPASSWORD: <empty>
CTLRUSERS: CRoy-TOSH\CRoy
ENABLERANU: false
ENU: true
ERRORREPORTING: true
FEATURES: SQLENGINE, REPLICATION, FULLTEXT, DQ, AS, RS, RS_SHP, RS_SHPWFE, DQC, BIDS, CONN, IS, BC, SDK, BOL, SSMS, ADV_SSMS, DREPLAY_CTLR, DREPLAY_CLT, SNAC_SDK, MDS
FILESTREAMLEVEL: 2
FILESTREAMSHARENAME: MSSQLSERVER
FTSVCACCOUNT: NT Service\MSSQLFDLauncher
FTSVCPASSWORD: <empty>
HELP: false
IACCEPTSQLSERVERLICENSETERMS: false
INDICATEPROGRESS: false
INSTALLSHAREDDIR: C:\Program Files\Microsoft SQL Server\
INSTALLSHAREDWOWDIR: C:\Program Files (x86)\Microsoft SQL Server\
INSTALLSQLDATADIR: <empty>
INSTANCEDIR: C:\Program Files\Microsoft SQL Server\
INSTANCEID: MSSQLSERVER
INSTANCENAME: MSSQLSERVER
ISSVCACCOUNT: NT Service\MsDtsServer110
ISSVCPASSWORD: <empty>
ISSVCSTARTUPTYPE: Automatic
MATRIXCMBRICKCOMMPORT: 0
MATRIXCMSERVERNAME: <empty>
MATRIXNAME: <empty>
NPENABLED: 0
PID: *****
QUIET: false
QUIETSIMPLE: false
ROLE: <empty>
RSINSTALLMODE: DefaultNativeMode
RSSHPINSTALLMODE: SharePointFilesOnlyMode
RSSVCACCOUNT: NT Service\ReportServer
RSSVCPASSWORD: <empty>
RSSVCSTARTUPTYPE: Automatic
SAPWD: *****
SECURITYMODE: SQL
SQLBACKUPDIR: <empty>
SQLCOLLATION: Latin1_General_CI_AI
SQLSVCACCOUNT: NT Service\MSSQLSERVER
SQLSVCPASSWORD: *****
SQLSVCSTARTUPTYPE: Automatic
SQLSYSADMINACCOUNTS: CRoy-TOSH\CRoy
SQLTEMPDBDIR: <empty>
SQLTEMPDBLOGDIR: <empty>
SQLUSERDBDIR: <empty>
SQLUSERDBLOGDIR: <empty>
SQMREPORTING: false
TCPENABLED: 0
UIMODE: Normal
UpdateEnabled: true
UpdateSource: MU
X86: false
Configuration file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\ConfigurationFile.ini
Detailed results:
Feature: Management Tools - Complete
Status: Passed
Feature: Client Tools Connectivity
Status: Passed
Feature: Client Tools SDK
Status: Passed
Feature: Client Tools Backwards Compatibility
Status: Passed
Feature: Management Tools - Basic
Status: Passed
Feature: SQL Server Data Tools
Status: Passed
Feature: Reporting Services - Native
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
Feature: Database Engine Services
Status: Failed: see logs for details
Reason for failure: An error occurred during the setup process of the feature.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
Feature: Data Quality Services
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
Feature: Full-Text and Semantic Extractions for Search
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
Feature: SQL Server Replication
Status: Failed: see logs for details
Reason for failure: An error occurred for a dependency of the feature causing the setup process for the feature to fail.
Next Step: Use the following information to resolve the error, uninstall this feature, and then run the setup process again.
Component name: SQL Server Database Engine Services Instance Features
Component error code: 0x851A001A
Error description: Wait on the Database Engine recovery handle failed. Check the SQL Server error log for potential causes.
Error help link: http://go.microsoft.com/fwlink?LinkId=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=11.0.3128.0&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026&EvtType=0xD15B4EB2%400x4BDAF9BA%401306%4026
Feature: Master Data Services
Status: Passed
Feature: Distributed Replay Client
Status: Passed
Feature: Distributed Replay Controller
Status: Passed
Feature: Integration Services
Status: Passed
Feature: Data Quality Client
Status: Passed
Feature: Analysis Services
Status: Passed
Feature: Reporting Services - SharePoint
Status: Passed
Feature: Reporting Services Add-in for SharePoint Products
Status: Passed
Feature: SQL Browser
Status: Passed
Feature: Documentation Components
Status: Passed
Feature: SQL Writer
Status: Passed
Feature: SQL Client Connectivity
Status: Passed
Feature: SQL Client Connectivity SDK
Status: Passed
Rules with failures:
Global rules:
Scenario specific rules:
Rules report file: C:\Program Files\Microsoft SQL Server\110\Setup Bootstrap\Log\20131021_125116\SystemConfigurationCheck_Report.htmHi,
This 3rd time I followed this link. But nothing new, same error.
Can you please tell me how to do follow, I cannt do the 1st step, how to change the local system to windows level account, vice-versa. It is shown mine as
Server Configuration Manager(Local)
From here I folllowed the steps ---[I cannt insert link/image :-(]
SQL 2008/R2 setup fails with "Wait on the database engine recovery handle failed"
If I right clicked on SQL Server Service, there is no option to change the account.
Hello,
Thanks for your patience,did you tried stesp mentioned in below article
http://blogs.msdn.com/b/sqljourney/archive/2012/03/16/sql-2008-r2-setup-fails-with-quot-wait-on-the-database-engine-recovery-handle-failed-quot.aspx
To resolve it, follow these steps:-
When the installation throws this error, click on OK and allow it to proceed. It will fail for Database Engine, but the SQL Server service should have
been created. Check the Services console.
If the service is present, perform the following steps:-
1. Go to SQL Server Configuration manager, right click on the SQL Server service, and change the service account (if it is local system, give
it a windows level account, and vice-versa). It might throw a WMI error but you will see the account getting updated anyway. If not, then use the Services console. Change the account for SQL Agent as well.
Use this link to change sql server service account
http://technet.microsoft.com/en-us/library/ms345578.aspx
2. Next, try to start the service. It should come online.
3. However, you will not be able to log in to the SQL Server
4. Now stop the service and start it from the command prompt using -m -c -T3608 parameters.
5. Now try logging in to the server using admin connection from sqlcmd (sqlcmd admin:<server name>\<instance name> ...)
6. Once logged in, use the sp_addsrvrolemember '<domain\username>','sysadmin'.
Also add the builtin/administrators to the sysadmin role
7. Now stop the service from the command prompt and start it from SQL Server configuration manager
You should be able to log in to the server now.
Hope this helps someone.
Please revert if it helps or even if it does not
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Apex: output message from pl/sql process
Apex 4.2
THis is kind of an Apex and Pl/Sql question, but more so Apex because I'm using that environment. I have a pl/sql process with an IF - Else statement. It's a real simple process where you check:
IF P101_Count > 1 Then
Do stuff;
Else
Output an error message.
The process runs when I click a button.
I am just not sure how to get an error message to display to the screen. I am not sure of the syntax.
Any help on this topic would be greatly appreciated. Thanks in advance.Well, there a lots of ways to do this but, if you just want to see it on the screen, the easiest way is to add a Page Item (a Text Field for example). Then, in the Else portion just set it equal to the message that you are trying to display.
If ( :P101_Count > 1 ) Then
-- Do Stuff
Else
:P1_MY_MESSAGE := 'Hello World!';
End If;
-Joe -
Alert/Warning messages from PL/SQL process
Hi all,
I have a PL/SQL process that I execute from javascript : doSubmit(MY_PROCESS). I want to output an alert box if some errors occurs in the process, for instance : alert('message'). Does anyone know how to do that ?
Best regards,
Othman.Thanks Andy for the reply.
My process executes "after submit", so I cannot call directly the javascript as one mentioned. The call to "html_Get" seems to be quite complicated for a simple alert message which is not really a Application process shared component.
So I'll go for a solution where users won't see error messages ...
Best regards,
Othman. -
SharePoint 2010 SQL Permission Errors
We occasionally receive errors in the Event Log for SQL permission errors. I am not able to find what exactly is causing the issue and don't want to grant rights to something if I don't know what it is doing. There error is not specific
to a particular list or library. Below is one example of the ULS log output. I see references to a deadlock but also permission denied.
Name=Request (GET:https://subsite.contoso.com:443/HomePage/Forms/AllItems.aspx)
Site=/
Leaving Monitored Scope (PostResolveRequestCacheHandler). Execution Time=13.8458
Videntityinfo::isFreshToken reported failure.
Begin Query the AD to get the user email and display name.
End Query the AD to get the user email and display name.
System.Data.SqlClient.SqlException: The EXECUTE permission was denied on the object 'proc_SecAddUser', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_AddListItem', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_UpdateDiskUsed', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)
at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)
at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock)
at Microsoft.SharePoint.Library.SPRequestInternalClass.OpenWebInternal(String bstrUrl, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& puiVersion, Int16& pnClientTag)
at Microsoft.SharePoint.Library.SPRequest.OpenWebInternal(String bstrUrl, Guid& pguidID, String& pbstrRequestAccessEmail, UInt32& pwebVersion, String& pbstrServerRelativeUrl, UInt32& pnLanguage, UInt32& pnLocale, String& pbstrDefaultTheme, String& pbstrDefaultThemeCSSUrl, String& pbstrThemedCssFolderUrl, String& pbstrAlternateCSSUrl, String& pbstrCustomizedCssFileList, String& pbstrCustomJSUrl, String& pbstrAlternateHeaderUrl, String& pbstrMasterUrl, String& pbstrCustomMasterUrl, String& pbstrSiteLogoUrl, String& pbstrSiteLogoDescription, Object& pvarUser, Boolean& pvarIsAuditor, Int32& plSiteFlags, Boolean& pbOverwriteMUICultures, Boolean& pbMUIEnabled, String& pbstrAlternateMUICultures, Int32& puiVersion, Int16& pnClientTag)
at Microsoft.SharePoint.SPWeb.InitWebPublic()
at Microsoft.SharePoint.SPWeb.get_Url()
at Microsoft.SharePoint.SPGroup.InitMember()
at Microsoft.SharePoint.SPGroup..ctor(SPWeb web, SPSecurableObject scope, SPUser user, String GroupName, Object[,] arrGroupsData, UInt32 index, Int32 iByParamId, SPGroupCollectionType groupCollectionType)
at Microsoft.SharePoint.SPGroupCollection.get_Item(String name)
at Microsoft.SharePoint.Administration.SPFarm.PerformCentralAdministratorsGroupOperation(AdminGroupOperation operation, String[] usersToAdd, String[] usersToRemove, Boolean& groupExists)
at Microsoft.SharePoint.Administration.SPFarm.CurrentUserIsAdministrator(Boolean allowContentApplicationAccess)
at Microsoft.SharePoint.SPSite.set_AdministratorOperationMode(Boolean value)
at Microsoft.SharePoint.SPFeatureManager.EnsureSiteAndWeb(SPUrlZone zone, Guid databaseid, Guid siteid, Guid webid, SPSite& site, SPWeb& web)
at Microsoft.SharePoint.SPFeatureManager.<>c__DisplayClass19.<GetFeatureRootAndListSchemaPaths>b__18()
at Microsoft.SharePoint.SPSecurity.RunAsUser(SPUserToken userToken, Boolean bResetContext, WaitCallback code, Object param)
at Microsoft.SharePoint.SPFeatureManager.GetFeatureRootAndListSchemaPaths(Byte[]& userToken, Guid& tranLockerId, Int32 nZone, Guid databaseid, Guid siteid, Guid webid, Guid featid, Int32 ltid, String& sPathToFeatureRoot, String& sPathToSchemaXml)
at Microsoft.SharePoint.Library.SPRequestInternalClass.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex)
at Microsoft.SharePoint.Library.SPRequest.GetViewsSchemaXml(String bstrUrl, String bstrListName, Boolean bFullBlown, Boolean bNeedInitAllViews, ISP2DSafeArrayWriter p2DWriter, Int32& plDefaultViewIndex, Int32& plMobileDefaultViewIndex)
at Microsoft.SharePoint.SPViewCollection.EnsureViewSchema(Boolean fullBlownSchema, Boolean bNeedInitallViews)
at Microsoft.SharePoint.SPList.get_Views()
at Microsoft.SharePoint.SPList.get_DefaultViewUrl()
at Microsoft.SharePoint.Publishing.CachedList..ctor(SPList list, CachedObjectFactory factory)
at Microsoft.SharePoint.Publishing.CachedArea.GetChildListByGuid(Guid listIdGuid)
at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetCachedList(SPWeb web, Guid listId)
at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavSettingsXml(SPWeb web, Guid sourceListId, Boolean& listExists)
at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationSettings.GetMetadataNavigationSettings(SPWeb web, Guid sourceListId, Boolean checkWebPropHint)
at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.get_NavigationSettings()
at Microsoft.Office.DocumentManagement.MetadataNavigation.MetadataNavigationContext.EnsurePageInitEventHandling(Control controlOnPage)
at Microsoft.Office.Server.WebControls.MetadataHierarchyDataSourceControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at Microsoft.SharePoint.WebControls.DelegateControl.AddControlResilient(Control ctl)
at Microsoft.SharePoint.WebControls.DelegateControl.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.DelegateControl.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.AddedControl(Control control, Int32 index)
at System.Web.UI.ControlBuilder.BuildChildren(Object parentObj)
at System.Web.UI.TemplateBuilder.InstantiateIn(Control container)
at Microsoft.SharePoint.WebControls.UIVersionedContent.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Microsoft.SharePoint.WebControls.UIVersionedContent.OnInit(EventArgs e)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Control.InitRecursive(Control namingContainer)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
at System.Web.UI.Page.ProcessRequest()
at System.Web.UI.Page.ProcessRequest(HttpContext context)
at System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
at System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
at System.Web.HttpApplication.PipelineStepManager.ResumeSteps(Exception error)
at System.Web.HttpApplication.BeginProcessRequestNotification(HttpContext context, AsyncCallback cb)
at System.Web.HttpRuntime.ProcessRequestNotificationPrivate(IIS7WorkerRequest wr, HttpContext context)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotificationHelper(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
at System.Web.Hosting.PipelineRuntime.ProcessRequestNotification(IntPtr managedHttpContext, IntPtr nativeRequestContext, IntPtr moduleData, Int32 flags)
SqlError: 'The EXECUTE permission was denied on the object 'proc_SecAddUser', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.' Source: '.Net SqlClient Data Provider' Number: 229 State: 5 Class: 14 Procedure: 'proc_SecAddUser' LineNumber: 1 Server: 'sqlserver.contoso.com'
SqlError: 'The EXECUTE permission was denied on the object 'proc_AddListItem', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.' Source: '.Net SqlClient Data Provider' Number: 229 State: 5 Class: 14 Procedure: 'proc_AddListItem' LineNumber: 1 Server: 'sqlserver.contoso.com'
SqlError: 'The EXECUTE permission was denied on the object 'proc_UpdateDiskUsed', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.' Source: '.Net SqlClient Data Provider' Number: 229 State: 5 Class: 14 Procedure: 'proc_UpdateDiskUsed' LineNumber: 1 Server: 'sqlserver.contoso.com'
Insufficient SQL database permissions for user 'Name: contoso\user1 SID: S-1-5-21-1326408308-1533151006-945732055-253740
ImpersonationLevel: Impersonation' in database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99' on SQL Server instance 'sqlserver.contoso.com'.
Additional error information from SQL Server is included below.
The EXECUTE permission was denied on the object 'proc_SecAddUser', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_AddListItem', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_UpdateDiskUsed', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
ConnectionString: 'Data Source=sqlserver.contoso.com;
Initial Catalog=SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99;
Integrated Security=True;
Enlist=False;
Asynchronous Processing=False;
Connect Timeout=15' ConnectionState: Closed ConnectionTimeout: 15
SqlCommand:
'SET NOCOUNT ON;
DECLARE @DN nvarchar(256),@LN nvarchar(128),@@DocUIVersion int,@@Level tinyint,@@S uniqueidentifier;
DECLARE @ItemId int;
DECLARE @@iRet int;
DECLARE @ExtraItemSize int;
DECLARE @Login nvarchar(255);
DECLARE @Title nvarchar(255);
DECLARE @Email nvarchar(255);
DECLARE @Notes nvarchar(1023);
DECLARE @MobilePhone nvarchar(127);
DECLARE @AddedToTable bit;
DECLARE @UserIdOut int;
DECLARE @LoginOut nvarchar(255);
DECLARE @TitleOut nvarchar(255);
DECLARE @EmailOut nvarchar(255);
DECLARE @NotesOut nvarchar(1023);
DECLARE @MobilePhoneOut nvarchar(127);
DECLARE @DeletedOut bit;
DECLARE @NeedtoAddtoList bit;
DECLARE @IsGroup bit;
SET @IsGroup = 0;
SET @@Level = 1;
SELECT @Login = @wssp0;
SELECT @Title = @wssp1;
SELECT @Email = @wssp2;
SELECT @Notes = @wssp3;
SELECT @MobilePhone = @wssp4;
SELECT @@S=@wssp5;
EXEC @@iRet = proc_SecAddUser @@S, @wssp6, @wssp7, @wssp8, @wssp9, @wssp10, @Login, @Title, @Email, @Notes, @MobilePhone, @wssp11, @wssp12, @wssp13, @wssp14, @AddedToTable OUTPUT, @UserIdOut OUTPUT, @LoginOut OUTPUT, @TitleOut OUTPUT, @EmailOut OUTPUT, @NotesOut OUTPUT, @MobilePhoneOut OUTPUT, @DeletedOut OUTPUT, @NeedtoAddtoList OUTPUT;
IF @@iRet <> 0 BEGIN GOTO DONE;
END ;
SELECT @ItemId = @UserIdOut;
IF @NeedtoAddtoList = 0 BEGIN GOTO DONE;
END ;
BEGIN TRAN IF NOT EXISTS( SELECT tp_ID FROM UserData WHERE tp_ListId = 'E97F9667-B512-4AF9-8F98-ABA92DA3D4A2' AND tp_ID = @ItemId AND tp_Level = 1 AND tp_RowOrdinal =0) BEGIN SELECT @ExtraItemSize = 0 EXEC @@iRet = proc_AddListItem @SiteId =@wssp15,@WebId=@wssp16,@ListID=@wssp17,@RowOrdinal=@wssp18,@ItemDocType=@wssp19,@SortTypeReversed=@wssp20,@RetainId=@wssp21,@RetainObjectIdentity=@wssp22,@ItemId = @ItemId OUTPUT,@ItemDirName=@DN OUTPUT,@ItemLeafName=@LN OUTPUT,@UserID=@wssp23,@tp_Author = @ItemId,@tp_Editor = @ItemId,@TimeNow=@wssp24,@CopySecurityFromMasterID=@wssp25,@UseNvarchar1ItemName=@wssp26,@ServerTemplate=@wssp27,@IsNotUserDisplayed=@wssp28,@Basetype=@wssp29,@Level=@wssp30,@UIVersion=@wssp31,@tp_GUID=@wssp32,@CheckSchemaVersion=@wssp33,@OnRestore=@wssp34,@AddNamespace=@wssp35,@CheckDiskQuota=@wssp36, @tp_ContentTypeId = @wssp37, @nvarchar1 = @wssp38, @tp_ModerationStatus = @wssp39, @nvarchar3 = @wssp40, @nvarchar4 = @wssp41, @nvarchar5 = @wssp42, @nvarchar6 = @wssp43, @bit2 = @wssp44, @bit3 = @wssp45, @nvarchar9 = @wssp46, @nvarchar10 = @wssp47, @bit4 = @wssp48, @Size=@wssp49, @ExtraItemSize = @ExtraItemSize , @eventData=@wssp50, @acl=@wssp51, @DocClientId=@wssp52;
IF @@iRet <> 0 BEGIN ROLLBACK TRAN;
GOTO DONE;
END END ;
COMMIT TRAN;
EXEC proc_UpdateDiskUsed @@S, 1;
DONE:
SELECT @@iRet, @ItemId, @AddedToTable, @LoginOut, @TitleOut, @EmailOut, @NotesOut, @MobilePhoneOut, @DeletedOut '
CommandType: Text
CommandTimeout: 0
Parameter: '@wssp0'
Type: NVarChar
Size: 4000
Direction: Input
Value: 'NT AUTHORITY\LOCAL SERVICE'
Parameter: '@wssp1'
Type: NVarChar
Size: 4000
Direction: Input
Value: 'UserLast, UserFirst'
Parameter: '@wssp2'
Type: NVarChar
Size: 4000
Direction: Input
Value: ''
Parameter: '@wssp3'
Type: NVarChar
Size: 4000
Direction: Input
Value: ''
Parameter: '@wssp4'
Type: NVarChar
Size: 4000
Direction: Input
Value: ''
Parameter: '@wssp5'
Type: UniqueIdentifier
Size: 0
Direction:
Input Value: 'eb7d8a16-18a1-46d7-a35d-36eedccb321b'
Parameter: '@wssp6'
Type: VarBinary
Size: 8000
Direction: Input
Parameter: '@wssp7'
Type: VarBinary
Size: 8000
Direction: Input
Parameter: '@wssp8'
Type: DateTime
Size: 0
Direction: Input
Value: '04/24/2014 13:49:03'
Parameter: '@wssp9'
Type: Bit Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp10'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp11'
Type: Int
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp12'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp13'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp14'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp15'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: 'eb7d8a16-18a1-46d7-a35d-36eedccb321b'
Parameter: '@wssp16'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: 'c3cfb850-7d5e-4fd1-bea7-c2add4127427'
Parameter: '@wssp17'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: 'e97f9667-b512-4af9-8f98-aba92da3d4a2'
Parameter: '@wssp18'
Type: TinyInt
Size: 1
Direction: Input
Value: '0'
Parameter: '@wssp19'
Type: TinyInt
Size: 1
Direction: Input
Value: '0'
Parameter: '@wssp20'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp21'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp22'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp23'
Type: Int
Size: 0
Direction:
Input Value: '-1'
Parameter: '@wssp24'
Type: DateTime
Size: 0
Direction: Input
Value: '04/24/2014 13:49:03'
Parameter: '@wssp25'
Type: Int
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp26'
Type: Bit
Size: 0
Direction: Input
Value: 'True'
Parameter: '@wssp27'
Type: Int
Size: 0
Direction: Input
Value: '112'
Parameter: '@wssp28'
Type: Bit
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp29'
Type: Int
Size: 0
Direction: Input
Value: '0'
Parameter: '@wssp30'
Type: TinyInt
Size: 1
Direction: Input
Value: '1'
Parameter: '@wssp31'
Type: Int
Size: 0
Direction: Input
Value: '512'
Parameter: '@wssp32'
Type: UniqueIdentifier
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp33'
Type: Int
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp34'
Type: Bit
Size: 0
Direction:
Input Value: 'False'
Parameter: '@wssp35'
Type: Bit
Size: 0
Direction: Input
Value: 'True'
Parameter: '@wssp36'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp37'
Type: VarBinary
Size: 8000
Direction: Input
Parameter: '@wssp38'
Type: NVarChar
Size: 4000
Direction: Input
Value: 'UserLast, UserFirst'
Parameter: '@wssp39'
Type: Int
Size: 0
Direction: Input
Value: '0'
Parameter: '@wssp40'
Type: NVarChar
Size: 4000
Direction: Input
Value: 'NT AUTHORITY\LOCAL SERVICE'
Parameter: '@wssp41'
Type: NVarChar
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp42'
Type: NVarChar
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp43'
Type: NVarChar
Size: 0
Direction:
Input Value: ''
Parameter: '@wssp44'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp45'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp46'
Type: NVarChar
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp47'
Type: NVarChar
Size: 0
Direction: Input
Value: ''
Parameter: '@wssp48'
Type: Bit
Size: 0
Direction: Input
Value: 'False'
Parameter: '@wssp49'
Type: Int
Size: 0
Direction: Input
Value: '82'
Parameter: '@wssp50'
Type: VarBinary
Size: 0
Direction: Input
Parameter: '@wssp51'
Type: VarBinary
Size: 8000
Direction: Input
Parameter: '@wssp52'
Type: VarBinary
Size: 0
Direction: Input
System.Data.SqlClient.SqlException:
The EXECUTE permission was denied on the object 'proc_SecAddUser', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_AddListItem', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
The EXECUTE permission was denied on the object 'proc_UpdateDiskUsed', database 'SharePoint_AdminContent_d4605df0-8a2d-44e0-8805-8d65c4d73d99', schema 'dbo'.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.SharePoint.Utilities.SqlSession.ExecuteReader(SqlCommand command, CommandBehavior behavior, SqlQueryData monitoringData, Boolean retryForDeadLock)
at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock)
at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock)
Videntityinfo::isFreshToken reported failure.
Leaving Monitored Scope (CachedList:HomePage). Execution Time=15.1112
Leaving Monitored Scope (Load CachedList:151c2f9a-be3a-42ad-a4c6-379cb6ec05ad). Execution Time=825.2132
Leaving Monitored Scope (Request (GET:https://subsite.contoso.com:443/HomePage/Forms/AllItems.aspx)). Execution Time=966.741did you check this post,
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/5f8003a0-f845-4fb6-8b43-a0a234bcb1ea/the-execute-permission-was-denied-on-the-object-multiple-alerts?forum=sharepointadminprevious
Please remember to mark your question as answered &Vote helpful,if this solves/helps your problem. ****************************************************************************************** Thanks -WS MCITP(SharePoint 2010, 2013) Blog: http://wscheema.com/blog -
Generate Flexfield and Mapping Information Process errors out
Hi,
The Generate Flexfield and Mapping Information process errors out with the following msg:
**Starts**19-OCT-2009 13:55:02
ORACLE error 6501 in FDPSTP
Cause: FDPSTP failed due to ORA-06501: PL/SQL: program error
ORA-06512: at "APPS.FND_FLEX_DSC_API", line 1626
ORA-06501: PL/SQL: program error
ORA-06512: at "APPS.FND_FLEX_DSC_API", line 925
ORA-01403: no data foun
I have created the element set with all the elements added one at a time into the element set.
Any idea on what could be the issue ?Pl see if the steps in MOS Doc 453184.1 (ORA-01403 and ORA-06512 at HXC_CREATE_FLEX_MAPPINGS and FND_FLEX_DSC_API on Runnning hxcmprn.sql) can help
HTH
Srini -
Which sql processes fast?
I am writing a program that will change the emplids in a database from one value to another.
The way that I am doing it is to get the tables where emplid is a column (and the ones that have a column name ending in ID and checking if they prompt against a table that has emplid)
I am storing the one to new values in a table ep_t_epxh900
So as I process each table from the list above I can do one of these processes
begin-SQL ON-ERROR=UPDATE-ERROR
Update [$Table] t
set t.emplid = (select emplid from PS_EP_epxh900
where old_emplid = t.emplid)
where t.emplid in (select old_emplid from PS_EP_epxh900
where old_emplid = t.emplid)
end-SQL
or
Read through the ep_t_epxh900 one emplid at a time and issue the above update just for one employee.
Caveat, some tables have over 32 million rows.
I will be using the large rollback segment
If I use the latter solution I can issue a commit at the change of employee id. If I use the former I will need to do it at the change of a table.
Which in your opinion is the better solution. I seem to think that the latter is safer, what do you think?I generally use merge statement for this kind of logic because is easy.
Note: Applicable to Oracle 9i and above
merge /*+ parallel(t1,6) append */ into t1
using PS_EP_epxh900 p on t1.emplid=p.old_emplid
when matched then update set t.emplid=p.new_empidOr try this --not testd
UPDATE ( SELECT tgt.emplid AS tgt_name
, src.new_empid AS src_name
,src.old_empid AS src_old_namel
FROM t1 tgt
, PS_EP_epxh900 src
WHERE tgt.emplid = src.src_old_namel)
SET tgt_name = src_name;
Edited by: user627047 on Jul 18, 2012 10:58 AM -
Hi
DECLARE @XMLA nvarchar(3000)
, @DateSerial nvarchar(35);
-- Change date to format YYYYMMDDHHMMSS
SET @DateSerial = CAST(GETDATE() AS DATE);
--SELECT @DateSerial
Set @XMLA =
N' <Batch xmlns="http://schemas.microsoft.com/analysis services/2003/engine">
<ErrorConfiguration xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2"
xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2" xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200"
xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200">
<KeyErrorLimit>-1</KeyErrorLimit>
<KeyNotFound>IgnoreError</KeyNotFound>
<NullKeyNotAllowed>IgnoreError</NullKeyNotAllowed>
</ErrorConfiguration>
<Parallel>
<Process xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ddl2="http://schemas.microsoft.com/analysisservices/2003/engine/2" xmlns:ddl2_2="http://schemas.microsoft.com/analysisservices/2003/engine/2/2"
xmlns:ddl100_100="http://schemas.microsoft.com/analysisservices/2008/engine/100/100" xmlns:ddl200="http://schemas.microsoft.com/analysisservices/2010/engine/200" xmlns:ddl200_200="http://schemas.microsoft.com/analysisservices/2010/engine/200/200"
xmlns:ddl300="http://schemas.microsoft.com/analysisservices/2011/engine/300" xmlns:ddl300_300="http://schemas.microsoft.com/analysisservices/2011/engine/300/300">
<Object>
<DatabaseID>MultidimensionalProject5</DatabaseID>
<CubeID>giri</CubeID>
<MeasureGroupID>Fact Internet Sales</MeasureGroupID>
</Object>
<Type>ProcessFull</Type>
<WriteBackTableCreation>UseExisting</WriteBackTableCreation>
</Process>
</Parallel>
</Batch>';
EXEC (@XMLA) At SHALL-PCAdventureWorksDw ;
iam executive the query when iam getting below error.
[Execute SQL Task] Error: Executing the query "DECLARE
@XMLA nvarchar(3000)
, @DateSerial nvarch..." failed with the following error: "Incorrect syntax near '-'.". Possible failure reasons: Problems with the query, "ResultSet" property not set correctly, parameters not set
correctly, or connection not established correctly.
how to solve this error;
please help meWhat are you trying to do? What sort of data source is SHALL-PCAdventureWorksDw?
When you use EXEC() AT, I would execpt to see an SQL string to be passed to EXEC(), but you are passing an XML string????
If you explain why you think this would work in the first place, maybe we can help you.
Erland Sommarskog, SQL Server MVP, [email protected] -
#FLOW_OWNER# in pl/sql process
I am trying to use #FLOW_OWNER# substitution string in pl/sql processes so I dont have to hard code the schema name. This substitution string works fine if I use it in a report for example 'select * from #FLOW_OWNER#.APEX_APPLICATION_PAGE_IR_COL'
However if I use it an insert in pl/sql process, I get the following error.
ORA-06550: line 5, column 2: PL/SQL: ORA-00911: invalid character ORA-06550:
Here is the code
insert into ssm_help(application_id,application_item_id,help_item,help_desc,help_type_id)
(select :P11_APPLICATION_ID, :P11_APPLICATION_ITEM_ID, report_label,'Enter Help',(select help_type_id from ssm_help_type where help_type_code='REPORT_COLUMN')
FROM
#FLOW_OWNER# .APEX_APPLICATION_PAGE_IR_COL;
Any ideas what the problem is ? Thanks.Hi,
I once used the global substitution variable APEX_APPLICATION.G_FLOW_SCHEMA_OWNER, but I had to encapsulate the query in an EXECUTE IMMEDIATE block.
Here's my example:
DECLARE
l_flows_owner VARCHAR2(32);
l_query VARCHAR2(2000);
l_count NUMBER(10,0);
BEGIN
l_flows_owner:=APEX_APPLICATION.G_FLOW_SCHEMA_OWNER;
l_query:='SELECT COUNT(DISTINCT APPLICATION_ID)
FROM '||l_flows_owner||'.APEX_APPLICATIONS';
EXECUTE IMMEDIATE l_query INTO l_count;
RETURN l_count;
END;This will work in your case too.
-Udo -
PL/SQL process returning message with more than 4000 chars
In our apex application we are using a pl/sql process returning a message.
This message should be shown to the user.
Our problem is now, that the application items in APEX seem to be limited to 4000 chars and the message can be longer.
We are also not able to use a collection, because we can't print the content of a collection in the "Process Success Message".
Here is the content of a page process which is running on page load after header:
Name - Type: PL/SQL anonymous block
Source - Process: :AI_TEST := p0001_pkg.get_text;
Messages - Process Success Message: &AI_TEST.
Image from process [https://twitter.com/OliverLemm/status/324058809138032640/photo/1/large]
If the page is called the result is this error message:
ORA-06502: PL/SQL: numeric or value error: character string buffer too small
Technical Info (only visible for developers)
is_internal_error: false
ora_sqlcode: -6502
ora_sqlerrm: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
component.type: APEX_APPLICATION_PAGE_PROCESS
component.id: 16433072916569237418
component.name: get_text
error_backtrace:
ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 100
ORA-06512: at "APEX_040200.WWV_FLOW_PROCESS", line 141
Edited by: Oliver L on 16.04.2013 09:17no an item like P0_TEST on page 0 / global page also does not help.
But the error is not the application item / page item it's the problem that the "Process Success Message" can't handle more than 4000 chars.
I tried to paste a string into the process success message, but the error "Error processing row. ORA-01461: can bind a LONG value only for insert into a LONG column" occured even when i filled the textarea and saved the process.
So there's no problem with the application item or page item.
Edited by: Oliver L on 16.04.2013 10:00 -
SAPINST 4.7 with MS SQL SERVER Error "Unable to stop server"
I'm trying to install SAP 4.7 on
- Windows 2003 Server _ host "tpt"
- SQL Server 2000 SP3 _ new Instance "MYSAP". Collation is already set to "SQL_Latin1_General_CP850_BIN2".
Sapinst ran well on all input data steps.
Next it applied from steps
"Create SAP System Opertion System Groups and Users"
"Check/Adapt File System"
until step "MS SQL SERVER tempdb Parameters" with Processing message "Changing location of
tempdb files", then stopped the installation.
I've got Error_Log file:
Transaction begin ********************************************************
INFO 2004-09-19 10:21:24
Successfully connected to "tpt\MYSAP"
ERROR 2004-09-19 10:21:25
MDB-05039 Unable to stop server "tpt\MYSAP"; error: "[Microsoft][ODBC SQL Server Driver][SQL Server]Herunterfahren des Servers auf Anforderung. (german text means "Server shuts down on request")
[Microsoft][ODBC SQL Server Driver][SQL Server]SQL Server beendet diesen Prozess." (german text means "SQL Server stops this process")
ERROR 2004-09-19 10:21:25
MDB-05034 Call to a threaded function returned "1".
Transaction end **********************************************************
WARNING 2004-09-19 10:30:21
The step doChangeTempDBParameters1 with step key SAPSYSTEM|ind|ind|ind|ind|ind|0|SAPComponent|ind|ind|ind|ind|ind|0|DatabaseServer|windows|ind|mss|ind|ind|0|TempDB|windows|ind|mss|ind|ind|0|doChangeTempDBParameters1 executed with status ERROR.
WARNING 2004-09-19 10:30:21
An error occurred during the installation.
Can you help me?
Thanks very much
thanhHello,
you should not use a german version of MS SQL Server.
Regards
Gregor
Maybe you are looking for
-
Hello. I was having issues with my ipod, as it was freezing. I then read through the five "R"'s and after trying numerous times to restart my ipod. Then, seeing as the problem, which was my ipod kept freezing. Then, I downloaded the ipod update softw
-
Upgrading from Snow Leopard (10.6.8) to Mountain Lion
So I purchased Mountain Lion online and received the redeem code from Apple. I've redeemed the download for Mountain Lion but have been having issues trying to even initiate the download. I've gone into system preferences and turned off the computer'
-
Cash Journal : Business Transaction Query
Hi Experts, does it mean that Business Transactions in cash Journal are nothing but a type of grouping? please correct me if i m going wrong. please lemme if based Cash Journal's Business Transaction, will i be able to generate a MIS/Cash Book analys
-
I have just purchased my Macbook Pro...I am used to using Word as my word processing software, but now have iWorks Pages. When creating documents in Word I can insert graphics from files that are included with the software. I cannot find any graphics
-
Character skips during XML Parsing
Hi, I am SAX Parser for parsing XML files. During parsing some times it skips the character. e.g. if date come as 20091201 then it takes it as 091201. During parsing in character I am storing this date into string variable please do the helpful. Than