Decision Type 4 for BUS2201 not allowed
Hi,
Can anyone tell me why decision type 4 for BUS2201 is not allowed? We would like to use same logic for our PO's as with our SC's.
Our SC's are being approved using decision type 4 with the area of responsiblity being the cost center, so the cost center responsible will approve a subset of the items in the SC.
With Decision type 4 not being allowed for BUS2201, we simply can not use the same logic.
So, do any of you guys know why this decision type can not be used for BUS2201?
Regards
Olsey
Hi Per Thue Olsen,
I am assuming you are in Extended Classic Scenario and would like to implement the PO change work flow with BRF. We have implemented SRM 6.0 PO change work flow and it is true that type 4 is not supported for BUS2201.
Quick questions: Who are the users changing the PO?
If your design is allow only Purchasers to change the PO's then, you may develop the following concept.
01) implement version management.
02) During WF, read the changed document and read changes for lines.
03) determine the number of cost center approvers upfront.
04) Depending upon number of cost center approvers, dynamically create process levels (there is a badi given by SAP to determine the run time process levels in the process schema).
05) then, use the other methods in the derive agent badi and force the cost center managers as approvers.
06) Probably you may need to use decision type 2 here.
The only trade off here would be parallel approvals for the PO change cannot happen instead the approvals would be sequential. But, even the parallel approvals with decision type 4 will have to wait for the transmission of the PO to the supplier till the all the decision sets are executed by approvers. The cycle time of the approvals may not change with the decision type 4 or 2, but each approval would be valid for the entire document.
Another way to avoid this situation is use the Group SC badi to enhance the SC Split rules to include CC also as one of the criterion. The trade off here would be multiple PO's would be generated to the same supplier just because of different cost center. This case, as the PO is split per CC manager, you need not implement the decision type 4 instead you can go with decision type 1 which is supported by SAP for BUS2201.
Thanks,
DV
Similar Messages
-
Enable decision type 4 for 'Approval with completion' for BUS2121
Hi Experts,
Kindly let me know how to enable decision type 4 for 'Approval with completion' as the system is not allowing to select decision type 4..
I know there is a limitation and allow only 1 & 2 decision types for BUS2121. But, how to enable decision type 4 as I need to enable for parallel approval.
Thanks in advance!
Thanks,
Krishna.Hello Krishna,
decision type 4 for SC is not allowed for completion process level: this is SAP standard.
1465831 - List of decision types available for SRM documents
Check for below OSS note to allow fields edition:
1277921 - Allow/Disallow to edit fields for approver/reviewer
Regards.
Laurent. -
Type of command is not allowed to be executed: DBA Cockpit
Hi there,
I found this error everytime i execute command at DBA Cockpit: SQL Command line
Type of command is not allowed to be executed.
FYA, i logged on as user that has SAP_NEW & SAP_ALL profiles. And no issue when i run the command on isql (console version) as syb[SID].
Appreciate for your reply.Hi Deepak,
1) Check with use <SID> go
Tried, Same output.
2) Please also check whether all the latest dba_cockpit corrections have been implemented.
I hv applied sap notes 1245200 1088717.
Tried use <SID> go , Same output.
Applied sap notes :
Note 1245200 - DBA: ICF Service-Activation for WebDynpro DBA Cockpit
Note 1088717 - Active services for Web Dynpro ABAP in transaction SICF
I have 2 systems; Installed with ASE 15.7 SP65 & ASE 15.7 SP101. both having same issue. -
Changing the window type at runtime is not allowed
Hi,
I am executing a smartform.When we do the print preview,we get the following message:
"Changing the window type at runtime is not allowed"
Please let me know if you have pointers to this error.
Thanks.
On further search,we found that the perform
PERFORM set_late_window is illegal to use in ECC6.0
We checked note No. 359009,shifted the source code node to the window for which the perform is used.Still the same error shows while executing the smartform.
Please suggest what needs to be done for the same.
Edited by: p317980 on Jun 27, 2011 10:06 AMHello Aidan,
Thanks for your prompt reply.I did as you suggested,but the perform still exists in the form,just it has been shifted to window which calls the perform.I activated the form & its working with just the error that standard text does not exists.
Thanks a ton!!!!! -
CJ36 -BP - 164 - Capital investment budget exists for & - update not allowe
Hello Friends,
We are trying to post supplements using CJ36 for a WBS,but the system giving the error message saying that
" BP - 164 - Capital investment budget exists for & - update not allowed"
Please give some idea on this.
Thanks IN Advance
Best Reagdrs
TrupthiHi,
Even though CJ35 and CJ38 are both transactions to perform budget returns, it is important to know that they are working slightly different:
a) via txn CJ38 you return money exactly for the WBS elements you indicate an amount for. So if you indicate 1 COP for
WBS element XX alone, the return is only being carried out for this WBS element. Since this WBS element is
not (directly) attached to an investment program position, this is not a problem.
b) via txn CJ35, however, as per system design you return money for the WBS element you indicate p l u s for all WBS elements lying on the hierarchical path above, in order to guarantee that the budget remains consistent (= check error free).
So by indicating 1 COP for WBS element XX, the system also tries to return the same amount from the overlying WBS element YYY.
Since this WBS element, however, i s attached to investment program position of investment program, the system blocks this posting because this program position forsees budget distribution and thus budgeting is allowed via budget distribution o n l y (txn IM52) - see e.g. F1 help for indicator 'Budg.dist. ovrl' in the master of the investment program position.
So basically you can say that txns CJ35 and CJ36 are not suitable for projects attached to investment program positions that forsee budget distribution. Please check your transaction IM52.
Please check if this fits with your scenario.
Best Regards,
Vanessa. -
So, after having had about a 30 year hiatus of using Apple products, with a 2 year use of mac/windows friendly mac's at UTX Austin in grad school 15 years ago, I bought 2 macbooks (white ones last somring/summer), 2 ipad 2's, a couple of ipods, and my wife's iphone because Windows just stopped allowing me to use my palm pilot and dell axim systems. I have not used apple due to their high cost over the years of my life and that Windows rules the general market but I gave up once my palm systems weren't useful with the new post-vista world and got an ipad 2. I was so impressed that I bought one with 3g and two macbooks. At this age, my learning curve has become steeper so I don't play in OSX at all but I intend to (been years since I played hardcore geek outside of windows dos). Ok, now that you have some background... I'm wanting to shift to a macbook air for portability (nice and light) but I have to choose between three models: 2010, 2011, or wait for 2012. 2010 would, I think, meet my needs as I do mostly word processing, some statistical work, and web stuff (yes, timewasters too) but I don't do gaming and photography (seems alot of air users do photos and gaming). I really am not a power user. I'm concerned that the 2010 (which I really like for the processor power) is not going to be able to meet my needs with Lion OS and am worried about the tech changes hitting me re: software, websites, etc. I want to trade in my white macbook (which I really like) and upgrade but I don't want to end up regretting it. I've read as much as I can and even gotten lost in the tech arguments. I don't want a pro. I don't want to go back to windows (insert middle finger here as I went through 5 windows systems last year trying to meet my needs before I gave up and went over to Apple). So, please ask questions to me if you need more info. By trade, I'm a therapist in private practice with a Master's in Social Work and I do plan a PhD in clinical psych program in a few years. I want this thing to last at least 3 years and be able to do what I need. Thanks, y'all!
HowardI'm with Captfred. Go for the 2010 13". Keep in mind, the latest isn't always the "greatest." Sometimes the latest is a small, incrimental upgrade rather than large important one. Like the iPhone 4s vs. the iPhone 4. Not much difference. If that small upgrade is important to you--a blacklit keyboard say, or thunderbolt, then, of course, you should go for new. But I don't think you'd be tempted by the 13" if such things were "dealbreakers" --like for example, that you can't live without a backlit keyboard. From what you listed, this is a great machine at a great price.
As for Lion, I have a 2010 11" and Lion isn't a problem for me, it certainly won't be for the 13". Also, check out this site--it might aso help you decide: http://buyersguide.macrumors.com/
Don't let fear of buyer's remorse keep you from getting the 13" if you love both it and the price. I'm guessing that it will do all you need for many years, and that you won't be just happy with it. You will love it. -
Content type problem for 'does not appear to be a proper arcive'
Hi all,
The following code will create a ZipOutputStream using ByteArrayOutputStream (not FileOutputStream) and attach the outputstream to a MIME multipart email using ByteArrayDataSource (so the file never exists physically).
It works and sends the email but the zip 'does not appear to be a valid archive' even though it looks about the right size. If I do the same and use FileOutputStream to create a physical file it works OK. I think it is an issue with the content type, or maybe this just isn't possible!
I have tried:
byteArray.toByteArray(),
byteArray.toString().getBytes() and application/zip & application/unknown.
Can anyone help or suggest an alternative way to create a 'in-memory' zip file that can then be emailed?
Many thanks
// Specify files to be zipped
String[] filesToZip = new String[3];
filesToZip[0] = "C:\\Program Files\\NetBeans3.6\\firstfile.txt";
filesToZip[1] = "C:\\Program Files\\NetBeans3.6\\secondfile.txt";
filesToZip[2] = "C:\\Program Files\\NetBeans3.6\\thirdfile.txt";
byte[] buffer = new byte[18024];
// Specify zip file name
String zipFileName= eq_rt.getReportName() + ".zip";
try {
// Create ZipOutputStream to store the FileOutputStream
//ZipOutputStream out = new ZipOutputStream(new FileOutputStream(zipFileName));
ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
ZipOutputStream out = new ZipOutputStream(byteArray);
// Set the compression ratio
out.setLevel(Deflater.DEFAULT_COMPRESSION);
// iterate through the array of files, adding each to the zip file
for (int a = 0; a < filesToZip.length; a++) {
System.out.println(a);
// // Associate a file input stream for the current file
FileInputStream in = new FileInputStream(filesToZip[a]);
// This ROCKS as it is passing a array into the text file .getBytes() seems
// to be the KEY in getting ByteArrayInputStream to WORK
String strSocketInput = "TAIWAN";
ByteArrayInputStream baIn = new ByteArrayInputStream(strSocketInput.getBytes());
//ByteArrayInputStream baIn = new ByteArrayInputStream( getAttachementNoFormat(eq_rt.getStoredProc() ) );
// Add ZIP entry to output stream.
out.putNextEntry(new ZipEntry(filesToZip[a]));
// Transfer bytes from the current file to the ZIP file
int len;
while ((len = baIn.read(buffer)) > 0)
out.write(buffer, 0, len);
// Close the current entry
out.closeEntry();
// Close the current file input stream
baIn.close();
// DataSource sourcezip = new FileDataSource(zipFileName);
//DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream");
DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/octet-stream" );
// Create a new MIME bodypart
BodyPart attachment = new MimeBodyPart();
attachment.setDataHandler(new DataHandler(sourcezip));
attachment.setFileName(zipFileName);
/* attach the attachemnts to the mail */
multipart.addBodyPart(attachment);
// Close the ZipOutPutStream
out.close();Many thanks Dr Clap. Moving the Closing the ZipOutputStream before I attached it to the email solved my problem.
/* Close the ZipOutPutStream (very important to close the zip before you attach it to the email) Thanks DrClap */
out.close();
/* Create a datasource for email attachment */
// DataSource sourcezip = new FileDataSource(zipFileName);
DataSource sourcezip = new ByteArrayDataSource(byteArray.toByteArray(), zipFileName, "application/zip" );
/* Create a new MIME bodypart */
BodyPart attachment = new MimeBodyPart();
attachment.setDataHandler(new DataHandler(sourcezip));
attachment.setFileName(zipFileName);
/* attach the attachemnts to the mail */
multipart.addBodyPart(attachment); -
Material Type restriction for M_MATE_MAR not working
HI all,
I want to restrict a user to only use the Material Type Waste ABF, but its not working.
Secondly , the Auth Object M_MATE_MAR, is also part of other roles which have this Auth Object.
Can you experts please suggest what to do.
ThanksAdnan,
> I want to restrict a user to only use the Material Type Waste ABF, but its not working.
> Secondly , the Auth Object M_MATE_MAR, is also part of other roles which have this Auth Object.
So that's the explanation.
Authorizations in a SAP system are additive, means, you can't create one profile including all and another trying to restrict that "all" to less. You have to create a separate profile for specific requirements (in your case e. g. none but type WASTE ABF) and assign that.
This is, btw., the wrong forum - use the security forum for those types of questions.
Markus -
ITunes for Windows not allowing dragging of songs/files
iTunes isn't letting me drag files at all, whether its from Chrome to iTunes or from iTunes to Chrome, it is also not letting me drag songs within iTunes to make playlists either, it allowed me before & has just stopped now, any help?
Timmy Y wrote:
Which ones in particular? You may want to email the iTunes team about it:
http://www.apple.com/support/itunes/store/browser/
The American Idol ones with the exception of this weeks stuff. If you search for David Cook via the wifi store you get some obscure artist but via the computer store you find all sorts of songs. -
Gift Cards For Apps Not Allowed in Canada Store ?
The Canadian iTunes Store does not accept iTunes gift cards for purchasing Apps. My grand daughter doesn't have a credit card. How can I help her buy Apps without getting her a credit card or letting her use someone elses? I don't understand why gift cads aren't accepted here in Canada. I bought two and sent them to her before realizing that they were not accepted for purchaing Apps.
It has been suggested that the reason the Canadian iTunes Store doesn't accept gift cards for software (apps or software updates) is due to a provision in the Canadian tax code, though no one has been able to cite anything specific.
You could always put your credit card information in her account, let her buy some apps and then delete the information.
She will still be able to use the gift cards for purchasing music, videos, movies and television shows.
Best of luck. -
Hi,
I've imported some business components from a UIX project to an ADF project I'm setting up in Jdeveloper 11.1.2.0.
I get the following error when I try to run the application. I get this for all the BC projects I've imported.
<17.jun.2011 kl 10.06 CEST> <Error> <J2EE> <BEA-160197> <Unable to load descriptor C:\Users\lellison\AppData\Roaming\JDeveloper\system11.1.2.0.38.60.17\o.j2ee\drs\kalkyle\fremdriftWebApp.war/WEB-INF/web.xml of module fremdriftWebApp.war. The error is weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:409)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
at weblogic.servlet.internal.WebAppDescriptor.getWebAppBean(WebAppDescriptor.java:141)
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1327)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:372)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:159)
at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:45)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:613)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:184)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:154)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:207)
at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:98)
at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)
at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:747)
at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1216)
at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:250)
at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:171)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:13)
at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:46)
at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
.> <17.jun.2011 kl 10.06 CEST> <Error> <HTTP> <BEA-101064> <[WebAppModule(kalkyle:kalkyle-fremdrift-context-root)] Error parsing descriptor in Web appplication "C:\Users\lellison\AppData\Roaming\JDeveloper\system11.1.2.0.38.60.17\o.j2ee\drs\kalkyle\fremdriftWebApp.war"
weblogic.application.ModuleException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
at weblogic.servlet.internal.WebAppModule.loadDescriptor(WebAppModule.java:1335)
at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:372)
at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)
at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:199)
at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:517)
Truncated. see log file for complete stacktrace
Caused By: weblogic.descriptor.DescriptorException: VALIDATION PROBLEMS WERE FOUND
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
problem: cvc-complex-type.2.4b: Element not allowed: description@http://java.sun.com/xml/ns/javaee in element context-param@http://java.sun.com/xml/ns/javaee:<null>
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:245)
at weblogic.descriptor.internal.MarshallerFactory$1.evaluateResults(MarshallerFactory.java:231)
at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:155)
at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:323)
at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:788)
Truncated. see log file for complete stacktrace
There is nothing unusual in the web.xml. It begins as follows:
<?xml version="1.0" encoding="windows-1252" ?>
- <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
Could somebody please point me in the right direction on debugging this? What could be causing this?
Thanks in advance.
Edited by: 862567 on Jun 17, 2011 1:44 AMroughly.. this seems to be a problem in mismatch of the xml schema.. one more thing.. is do we have web.xml for BC project.???.. y is the error coming on web.xml in BC project
-
HTTP Connection to ABAP System - Query String Not Allowed message
Hi All,
We are trying to create HTTP Connection to ABAP System on a SAP ECC system.
Following entries are added
1 Connection Type: H
2 Target Host: Host name
3 Service Number: HTTP Port name
4 Path Prefix: /sap/XI/engine/?type=entry
It is not allowing me to enter Path prefix as "/sap/XI/engine/?type=entry". It is throwing a warning message as "Query String Not Allowed message".
As per the documentation it is mentioned that -<b> If the system displays the Query String Not Allowed message, you can ignore it.</b>
It is not allowing me to save the entries succesfully . I need to remove the path refix entry then only i am able to save other wise it is not allowing me to proceed at all.
Please let me know what entry i can put for the same or let me know how can i ignore and proceed by saving the path prefix as "/sap/XI/engine/?type=entry".
Please provide your valuable help on this.
Regards,
NandaHi Aamir ,
Thanks for the response.
Tried both but still same issue .
Any more inputs .
Cheers,
Nanda -
Dear all
The error message "Goods Receipt for PO not allowed". Under what different circumstances, this kind of error comes?
RegardsThere are many reason for System not allowing to do the final GRN against the PO :-
1> Against the item there are no pending quantities to be received against the PO. It means that the PO has no open quantity.
2> The deilvery completion flag against the maerials has been set in the PO, then also system will not allow to make the GRN.
3> If the conformation control key in the Conformation tab for the material is not maintained correctly, then also system will prompt there are no items for GRN.
4> If the PO has not been released, then also the system will prompt the message. -
I have read some of the other posts for people that got this error, but none seem to apply to me.
My program has been working for weeks. I made some minor changes, and started getting the error (full details below).
I did a TFS "undo pending changes" and still getting the same error, even after logging off. The one odd thing is that I did change my Windows password this week. The connection string is using a SQL user id and password that has no issues.
I'm an Admin own my own box (running WIn XP SP3). I even tried "Run as Admin" on Visual Studio.
I'm doing a Debug-Start, running a Console-Test-Program that calls a WCF service, which on local machine is hosted by "ASP.NET Development Server".
We have two other developers, one has the same problem, one does not. In theory, we have all done "get latest" and are running the same code.
The SQL Connection is related to a trace database; we are using this library http://ukadcdiagnostics.codeplex.com which has worked fine for months.
When I do "Start Run" in Visual Studio, I get this error:
{"The type initializer for 'System.Data.SqlClient.SqlConnection' threw an exception. "}
with InnerException: {"The type initializer for 'System.Data.SqlClient.SqlConnectionFactory' threw an exception."}
and it has InnerException: {"Requested registry access is not allowed. "}
Outmost StackTrace:
at System.Data.SqlClient.SqlConnection..ctor()
at System.Data.SqlClient.SqlConnection..ctor(String connectionString)
at FRB.Diagnostics.Listeners.SqlDataAccessCommand..ctor(String connectionString, String commandText, CommandType commandType)
at FRB.Diagnostics.Listeners.SqlDataAccessAdapter.CreateCommand()
at FRB.Diagnostics.Listeners.SqlTraceListener.TraceEventCore(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at FRB.Diagnostics.Listeners.CustomTraceListener.FilterTraceEventCore(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String message)
at FRB.Diagnostics.Listeners.CustomTraceListener.TraceEvent(TraceEventCache eventCache, String source, TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceSource.TraceEvent(TraceEventType eventType, Int32 id, String format, Object[] args)
at System.Diagnostics.TraceSource.TraceInformation(String message)
at FRB.EC.AdminService.AdminService.TestHelloWorldWithTrace(String name)
at SyncInvokeTestHelloWorldWithTrace(Object , Object[] , Object[] )
at System.ServiceModel.Dispatcher.SyncMethodInvoker.Invoke(Object instance, Object[] inputs, Object[]& outputs)
at System.ServiceModel.Dispatcher.DispatchOperationRuntime.InvokeBegin(MessageRpc& rpc)
Second Inner StackTrace:
at System.Data.SqlClient.SqlConnection..cctor()
Third Inner StackTrace:
at System.Data.SqlClient.SqlConnectionFactory..cctor()
When I do "Run as Admin", I get this error:
{"Could not load file or assembly 'FRB.EFDataAccess, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Access is denied. "}
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.ThrowIfFaultUnderstood(Message reply, MessageFault fault, String action, MessageVersion version, FaultConverter faultConverter)
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
at FRB.EC.AdminService.ConsoleTester.svcRef.IAdminService.GetDispositionStatusTypeList()
at FRB.EC.AdminService.ConsoleTester.svcRef.AdminServiceClient.GetDispositionStatusTypeList() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\Service References\svcRef\Reference.cs:line 2459
at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.GetDispositionStatusTypeList() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 565
at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.ExecuteNewRelease103QueryMethods() in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 189
at FRB.EC.AdminService.ConsoleTester.ConsoleProgram.Main(String[] args) in C:\SourceEagleConnect\EagleConnect\Dev\WCFServices\FRB.EC.AdminService.ConsoleTester\ConsoleProgram.cs:line 76
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
I am also posting the web.config/app.config, but I would rather not focus on that since there were absolutely no changes to it between the time it was working and the time it began failing.
Client app.config
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<connectionStrings>
</connectionStrings>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceAuthorization impersonateCallerForAllOperations="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="FRB.AllowImpersonate">
<clientCredentials>
<windows allowedImpersonationLevel="Impersonation"/>
</clientCredentials>
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<wsHttpBinding>
<binding name="WSHttpBinding_IAdminService" closeTimeout="00:01:00"
openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard"
maxBufferPoolSize="524288" maxReceivedMessageSize="5565536"
messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true"
allowCookies="false">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<reliableSession ordered="true" inactivityTimeout="00:10:00"
enabled="false" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None"
realm="" />
<message clientCredentialType="Windows" negotiateServiceCredential="true"
algorithmSuite="Default" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<client>
<endpoint address="http://localhost:3588/AdminService.svc" binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IAdminService" contract="svcRef.IAdminService"
name="WSHttpBinding_IAdminService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
</system.serviceModel>
</configuration>
web.config of WCF service:
<?xml version="1.0"?>
<configuration>
<configSections>
<section name="FRB.Diagnostics" type="FRB.Diagnostics.Configuration.UkadcDiagnosticsSection, FRB.Diagnostics"/>
</configSections>
<appSettings>
<!-- whatever goes here -->
</appSettings>
<!-- connection string section -->
<connectionStrings>
<add name="log" connectionString="Data Source=myserver;Initial Catalog=ECWCFLOG_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
<add name="DBConn" connectionString="Data Source=myserver;Initial Catalog=ECData_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True" providerName="System.Data.SqlClient"/>
<add name="EagleConnectEntities" connectionString="metadata=res://*/EagleConnect.csdl|res://*/EagleConnect.ssdl|res://*/EagleConnect.msl;provider=System.Data.SqlClient;provider connection string="Data Source=myserver;Initial
Catalog=ECData_SharedDev;User ID=myuser;Password=mypass;MultipleActiveResultSets=True"" providerName="System.Data.EntityClient"/>
</connectionStrings>
<!-- FRB.Diagnostics logging section -->
<FRB.Diagnostics>
<sqlTraceListeners>
<sqlTraceListener name="sqlTraceListenerSettings"
connectionStringName="log"
commandText="INSERT INTO LogStore VALUES(@Source, @ActivityId, @ProcessId, @ThreadId, @EventType, @Message, @Timestamp)"
commandType="Text">
<parameters>
<parameter name="@Source" propertyToken="{Source}"/>
<parameter name="@ActivityId" propertyToken="{ActivityId}"/>
<parameter name="@ProcessId" propertyToken="{ProcessId}"/>
<parameter name="@ThreadId" propertyToken="{ThreadId}"/>
<parameter name="@EventType" propertyToken="{EventType}" callToString="true"/>
<parameter name="@Message" propertyToken="{Message}"/>
<parameter name="@Timestamp" propertyToken="{DateTime}"/>
<!-- <parameter name="@UserId" propertyToken="{WindowsIdentity}"/> -->
</parameters>
</sqlTraceListener>
</sqlTraceListeners>
<smtpTraceListeners>
<smtpTraceListener name="smtpTraceListenerSettings"
host="vssmtp"
port="25"
from="[email protected]"
to="[email protected]"
subject="AdminService Logging Event: {EventType}, {MachineName}"
body="{Message}
=======
Process={ProcessId},
Thread={ThreadId},
ActivityId={ActivityId}"/>
</smtpTraceListeners>
</FRB.Diagnostics>
<!-- System.Diagnostics logging section -->
<system.diagnostics>
<sources>
<source name="FRB.EC.AdminService" switchValue="All">
<listeners>
<clear/>
<add name="ods"/>
<add name="smtp"/>
<add name="sql"/>
</listeners>
</source>
<source name="System.ServiceModel" switchValue="Off" propagateActivity="true">
<listeners>
<add name="ignored" type="System.Diagnostics.ConsoleTraceListener"/>
</listeners>
</source>
</sources>
<sharedListeners>
<!-- OutputDebugStringTraceListener -->
<add name="ods"
type="FRB.Diagnostics.Listeners.OutputDebugStringTraceListener, FRB.Diagnostics"
initializeData="{ActivityId}|{EventType}: {Message} - {DateTime}, Process={ProcessId}, Thread={ThreadId}"/>
<!-- SqlTraceListener -->
<add name="sql"
type="FRB.Diagnostics.Listeners.SqlTraceListener, FRB.Diagnostics"
initializeData="sqlTraceListenerSettings"
traceOutputOptions="Timestamp"/>
<!-- SmtpTraceListener -->
<add name="smtp"
type="FRB.Diagnostics.Listeners.SmtpTraceListener, FRB.Diagnostics"
initializeData="smtpTraceListenerSettings">
<filter type="System.Diagnostics.EventTypeFilter"
initializeData="Error"/>
</add>
</sharedListeners>
<trace autoflush="true"/>
</system.diagnostics>
<system.web>
<compilation debug="true" targetFramework="4.0">
</compilation>
<roleManager enabled="true" defaultProvider="AspNetWindowsTokenRoleProvider"/>
</system.web>
<system.serviceModel>
<services>
<service name="FRB.EC.AdminService.AdminService"
behaviorConfiguration="FRB.EC.AdminService.AdminServiceBehavior">
<!-- Service Endpoints -->
<endpoint address="" binding="wsHttpBinding"
bindingConfiguration="wsHttpEndpointBinding"
contract="FRB.EC.AdminService.IAdminService">
<!--
Upon deployment, the following identity element should be removed or replaced to reflect the
identity under which the deployed service runs.
If removed, WCF will infer an appropriate identity automatically.
-->
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>
</services>
<bindings>
<wsHttpBinding>
<binding name="wsHttpEndpointBinding"
maxBufferPoolSize="2147483647"
maxReceivedMessageSize="500000000">
<readerQuotas maxDepth="2147483647"
maxStringContentLength="2147483647"
maxArrayLength="2147483647"
maxBytesPerRead="2147483647"
maxNameTableCharCount="2147483647"/>
<security>
<message clientCredentialType="Windows"/>
</security>
</binding>
</wsHttpBinding>
</bindings>
<behaviors>
<serviceBehaviors>
<behavior name="FRB.EC.AdminService.AdminServiceBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and
remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true.
Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="true"/>
<serviceCredentials>
</serviceCredentials>
<!--<serviceAuthorization principalPermissionMode="UseAspNetRoles"
roleProviderName="AspNetWindowsTokenRoleProvider"/>-->
<serviceAuthorization principalPermissionMode="UseWindowsGroups"
impersonateCallerForAllOperations="true"/>
</behavior>
<behavior name="FRB.EC.AdminService.IAdminServiceTransportBehavior">
<!-- To avoid disclosing metadata information, set the value below to false and
remove the metadata endpoint above before deployment -->
<serviceMetadata httpGetEnabled="true"/>
<!-- To receive exception details in faults for debugging purposes, set the value below to true.
Set to false before deployment to avoid disclosing exception information -->
<serviceDebug includeExceptionDetailInFaults="false"/>
<serviceCredentials>
<clientCertificate>
<authentication certificateValidationMode="PeerTrust"/>
<!--<authentication certificateValidationMode="Custom" customCertificateValidatorType="DataFactionServices.FRBX509CertificateValidator"/>-->
</clientCertificate>
<serviceCertificate findValue="WCfServer"
storeLocation="LocalMachine"
storeName="My" x509FindType="FindBySubjectName"/>
</serviceCredentials>
</behavior>
</serviceBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.webServer>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</configuration>
Thanks for any help.
NealI think I found it... this is sure a strange error for what is really happening.
Apparently it had happened to me before, and fortuantely, I actually added the following comment:
// Above is related to the WCFLOG SQL Diagnostics Trace
// If you get error here an inner exception "requested registry access is not allowed"
// inside exception "type initializer for System.Data.SqlClient.SqlConnection"
// then make sure you have impersonation enabled in your client.
// See AdminConsole web.config or FRB.EC.AdminService.ConsoleTester.app.config for examples
Now I think I will do a try catch and spit out the same text.
Still testing to assure that this really was the issue.
<endpointBehaviors>
<behavior name="FRB.AllowImpersonate ">
<clientCredentials>
<windows allowedImpersonationLevel="Impersonation"/>
</clientCredentials>
</behavior>
</endpointBehaviors>
The line below in BOLD below is what somehow seemed to disappear from my app.config - probably due to a TFS human error - still checking that also:
<client>
<endpoint address="http://localhost:4998/AdminService.svc"
behaviorConfiguration="FRB.AllowImpersonate"
binding="wsHttpBinding"
bindingConfiguration="WSHttpBinding_IAdminService"
contract="svcRef.IAdminService"
name="WSHttpBinding_IAdminService">
<identity>
<dns value="localhost" />
</identity>
</endpoint>
</client>
Here's how I "idiot-proofed" this error for now, to give an error that actually at least points to a solution:
public SqlDataAccessCommand(string connectionString, string commandText, CommandType commandType)
try
_connection = new SqlConnection(connectionString);
// Above is related to the WCFLOG SQL Diagnostics Trace
// If you get error here an inner exception "requested registry access is not allowed"
// inside exception "type initializer for System.Data.SqlClient.SqlConnection"
// then make sure you have impersonation enabled in your client.
// See AdminConsole web.config or FRB.EC.AdminService.ConsoleTester.app.config for examples
catch (Exception ex)
if (ex.ToString().Contains("The type initializer for"))
throw new System.ApplicationException(@"
Your client app <endpoint> must be cofigured have a
'behaviorConfiguration' attribute like this:
behaviorConfiguration='FRB.AllowImpersonate'
that points back to a behavior that has this syntax:
<behavior name='FRB.AllowImpersonate'>
<clientCredentials>
<windows allowedImpersonationLevel='Impersonation'/>
</clientCredentials>
</behavior>
", ex);
else
throw ex;
_command = _connection.CreateCommand();
_command.CommandText = commandText;
_command.CommandType = commandType;
// TODO _command.CommandTimeout = ;
Neal -
ABAP Dictionary type FLTP is not allowed for screen element
Hi Experts
I tried to open VBFA in se16 and i got the message in the status bar like this , what does it mean. please explain.
"ABAP Dictionary type FLTP is not allowed for screen element"Hi,
This is from help
ABAP Dictionary type FLTP is not allowed for screen element
Message no. 37048
<b>Diagnosis</b>
The format of the ABAP Dictionary field is only for use within the ABAP
program and cannot be used in the Screen Painter.
<b>Procedure</b>
The field cannot be used in screens. If you want to output the
information in the field or assign a value to the field from the screen,
you must use an intermediate field with an appropriate format.
<b>Reward points</b>
Regards
Maybe you are looking for
-
Conflicts with ATI Radeon 5770?
Hello, I am using a Mac Pro 3.1, 2x2.8 quad core Xeon, with OSX 10.6.7. I recently upgraded to a ATI Radeon HD 5770 in slot 1 and put my original ATI Radeon 2660XT in Slot 4 to run an older DVI monitor. It ran ok for a while, but my computer starti
-
Simple scan sd500a software has a glitch and I need to download again
My HP simple scan sd500a exteranl drive is no longer working. The blue light just keeps flashing as it is search. I tried to execute the software on the drive and I got an error so I want to download the software again, but I am not able to find th
-
After ios5 update, photos and safari cannot flip horizontally
It seems the function to flip horizontally has disappeared. It isn't only with photos and safari, but games or anything that had the ability to do so. Thanks!
-
Installation of webgate on Solaris (sparcv9) with WLS 10.3.5 and Apache2
Problem Description: We have installed IDM 11g and OAM 10.1.4.3 on RHEL5.5 hosts, respectively. We have successfully installed all the components: Environment Details: - Server1 -- 64 bit Intel RHEL5 Fusion Middleware Identity Management - 11.1.1.2 W
-
Where I can download iTunes 10.6.3?
my Ipod have ah new software and in iTunes , say that i need ah de las version in iTunes , where i can download iTunes 10.6.3