Cube refresh Failed when Running through Cube Refresh Utility
Hi all,
We are testing CubeRefresh utility in Planning. When we run that through command line it runs so quick and gives us the message" This job has run successfully".
How ever we don't see our outline updated with the changes we made in planning.
Any Idea?
aslo, Is there any way to track changes during the execution of this command. Logs doesn't give me any information on this. We enabled "DEBUG" option in script as well.
Env:
Planning 9.3.1
Solaris
Thanks
Hi all,
We are testing CubeRefresh utility in Planning. When we run that through command line it runs so quick and gives us the message" This job has run successfully".
How ever we don't see our outline updated with the changes we made in planning.
Any Idea?
aslo, Is there any way to track changes during the execution of this command. Logs doesn't give me any information on this. We enabled "DEBUG" option in script as well.
Env:
Planning 9.3.1
Solaris
Thanks
Similar Messages
-
Scripts that work in VSTS IDE fails when run through MTM.
Hi, we have created scripts using VSTS Coded UI that work well when triggered from VSTS IDE itself. But when we trigger them through MTM and executed from Agent Machine, it seems that some controls are not being identified properly. This is causing scripts
to fail intermittently.
When we re run the script again, it passes. this behaviour is inconsistent.
Since this issue does not occur in VSTS, it has to be somehow linked to how the scripts work through MTM. any guidance on this will be much appreciatedHi Vasanth,
Thank you for posting in MSND forum.
>>But when we trigger them through MTM and executed from Agent Machine, it seems that some controls are not being identified properly. This is causing scripts to fail intermittently.
According to your issue, could you please share me the detailed error message after you run coded UI test some controls failed through MTM?
In addition, as you said that since this coded UI test script work well by the VSTS IDE, so the issue is not related to the coded UI test project itself.
Therefore, to check if this issue is related to the lab environment, I suggest you could try to create a simple coded UI test from VSTS IDE and then ensure the simple coded UI test work well from the VSTS IDE.
Then, you could try to run this simple coded UI test by MTM and then check if you could run the simple coded UI test fine.
(1) If you still could not run simple coded UI test well, I suggest you could try to restart your test agent machine and then check this issue again.
(2) If you could run this simple coded UI test, I suggest you could to make Coded UI Tests Wait For Specific Events and then check this issue again.
https://msdn.microsoft.com/en-us/library/gg131072.aspx?f=255&MSPPError=-2147217396
In addition, if you are testing the web application for coded UI test, please try to check if the test agent machine's IE browser is same with the local VS machine. Sometime, the different version of IE will impact the coded UI test.
If you have any update message about your issue, please free fell let to me know.
Best Regards,
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
I have a production mobile Flex app that uses RemoteObject calls for all data access, and it's working well, except for a new remote call I just added that only fails when running with a release build. The same call works fine when running on the device (iPhone) using debug build. When running with a release build, the result handler is never called (nor is the fault handler called). Viewing the BlazeDS logs in debug mode, the call is received and send back with data. I've narrowed it down to what seems to be a data size issue.
I have targeted one specific data call that returns in the String value a string length of 44kb, which fails in the release build (result or fault handler never called), but the result handler is called as expected in debug build. When I do not populate the String value (in server side Java code) on the object (just set it empty string), the result handler is then called, and the object is returned (release build).
The custom object being returned in the call is a very a simple object, with getters/setters for simple types boolean, int, String, and one org.23c.dom.Document type. This same object type is used on other other RemoteObject calls (different data) and works fine (release and debug builds). I originally was returning as a Document, but, just to make sure this wasn't the problem, changed the value to be returned to a String, just to rule out XML/Dom issues in serialization.
I don't understand 1) why the release build vs. debug build behavior is different for a RemoteObject call, 2) why the calls work in debug build when sending over a somewhat large (but, not unreasonable) amount of data in a String object, but not in release build.
I have't tried to find out exactly where the failure point in size is, but, not sure that's even relevant, since 44kb isn't an unreasonable size to expect.
By turning on the Debug mode in BlazeDS, I can see the object and it's attributes being serialized and everything looks good there. The calls are received and processed appropriately in BlazeDS for both debug and release build testing.
Anyone have an idea on other things to try to debug/resolve this?
Platform testing is BlazeDS 4, Flashbuilder 4.7, Websphere 8 server, iPhone (iOS 7.1.2). Tried using multiple Flex SDK's 4.12 to the latest 4.13, with no change in behavior.
Thanks!After a week's worth of debugging, I found the issue.
The Java type returned from the call was defined as ArrayList. Changing it to List resolved the problem.
I'm not sure why ArrayList isn't a valid return type, I've been looking at the Adobe docs, and still can't see why this isn't valid. And, why it works in Debug mode and not in Release build is even stranger. Maybe someone can shed some light on the logic here to me. -
11gR2 RAC install fail when running root.sh script on second node
I get the errors:
ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 2 regular failure groups, discovered only 0
ORA-15080: synchronous I/O operation to a disk failed
[main] [ 2012-04-10 16:44:12.564 EDT ] [UsmcaLogger.logException:175] oracle.sysman.assistants.util.sqlEngine.SQLFatalErrorException: ORA-15018: diskgroup cannot be created
ORA-15072: command requires at least 2 regular failure groups, discovered only 0
ORA-15080: synchronous I/O operation to a disk failed
I have tried the fix solutions from metalink note, but did not fix issue
11GR2 GRID INFRASTRUCTURE INSTALLATION FAILS WHEN RUNNING ROOT.SH ON NODE 2 OF RAC USING ASMLIB [ID 1059847.1Hi,
it looks like, that your "shared device" you are using is not really shared.
The second node does "create an ASM diskgroup" and create OCR and Voting disks. If this indeed would be a shared device, he should have recognized, that your disk is shared.
So as a result your VMware configuration must be wrong, and the disk you presented as shared disk is not really shared.
Which VMWare version did you use? It will not work correctly with the workstation or player edition, since shared disks are only really working with the server version.
If you indeed using the server, could you paste your vm configurations?
Furthermore I recommend using Virtual Box. There is a nice how-to:
http://www.oracle-base.com/articles/11g/OracleDB11gR2RACInstallationOnOEL5UsingVirtualBox.php
Sebastian -
LSMW Fails when run in B/G but works fine in Front end..why?
Hi All,
i am trying to run a batch process by LSMW, my files are accurate, no problem with them, everything works fine but it fails when run in BG..works absolutely fine in front end. whats the diff with running in B/G?
same thing happens when i am trying to execute an RFC thru SAP JCO, it works when debugger is on (i guess switching on debugger is similar to running in B/G) but it doesnt work when debugger is off. but when i execute that RFC directly in se37 from SAP gui it works fine..fails when connected to JCO..
i am not having this issue with r/3 4.6c or mySAP ECC.6.0 i have this issue only in r/3 4.7.
has anyone faced the similar situtaion? pls help.
thanks.
p.s if this may help. the RFC and LSMW error both are pertaining to change in address of US employees.( infotype 0006)Applying SAP note 928273 Solved this issue.
-
LSMW fails when run in B/G works fine in Frontend..why?
Hi All,
i am trying to runa batch process by LSMW, my files are accurate, no problem with them, everything works fine but it fails when run in BG..works absolutely fine in front end. whats the diff with running in B/G?
same thing happens when i am trying to execute an RFC thru SAP JCO, it works when debugger is on 9i guess switching on debugger is similar to running in B/G) but it doesnt work when debugger is off. but when i execute that RFC directly in se37 from SAP gui it works fine..fails when connected to JCO..
i am not having this issue with r/3 4.6c or mySAP ECC.6.0 i have this issue only in r/3 4.7.
has anyone faced the similar situtaion? pls help.
thanks.
p.s if this may help. the RFC and LSMW error both are pertaining to change in address of US employees.( infotype 0006)for LSMW its the recording of transaction PA40 (employee hire fails when filling address details) and PA30 (change address) and same is the case with RFC..well its a BAPI_ADDRESSEMPUS_CHANGE.
To eloborate more..the error is..Fill in all the mandatory fields.
which i am very much doing..there are no hidden fields or anything..i have seen the screens etc..I AM filling all mandatory fields. infact i am not leaving anything unfilled., same scrren is going fine when in front end..i am just clicking ok..ok..ok and boom transaction complete..no complaints. but running B/G is killing me.
i have to run batch for 100,000 employees
What fails my logic is..its working fine in 4.6c and mySAP ECC.6.0 but not in 4.7
Hruser
Message was edited by:
Hruser -
LSMW fails when run in B/G but works in Frontend..why?
Hi All,
i am trying to runa batch process by LSMW, my files are accurate, no problem with them, everything works fine but it fails when run in BG..works absolutely fine in front end. whats the diff with running in B/G?
same thing happens when i am trying to execute an RFC thru SAP JCO, it works when debugger is on 9i guess switching on debugger is similar to running in B/G) but it doesnt work when debugger is off. but when i execute that RFC directly in se37 from SAP gui it works fine..fails when connected to JCO..
i am not having this issue with r/3 4.6c or mySAP ECC.6.0 i have this issue only in r/3 4.7.
has anyone faced the similar situtaion? pls help.
thanks.
p.s if this may help. the RFC and LSMW error both are pertaining to change in address of US employees.( infotype 0006)Applying SAP note 928273 Solved this issue.
thank you. -
SQR variable to repoint where sqrw when running through Proces Scheduler
I recently zipped a PSHOME and unzipped in a new location. When running SQR the path to pssqr.exe is still the old PSHOME path. Does anyone know where this parameter is being picked up?
SQR Command = d:\pt8.51\bin\sqr\ORA\binw\sqrw paramtersWhen running locally this is defined in the configuration manager.
When running through the process scheduler, this is de fined in the process scheduler configuration. -
Unable to open PDF document when run through task/workflow
Hi all,
I am currently usign a background method to send a smartform as a PDF document to all the agents who approve.
When i send the smartform in mail as a PDF documetn throught the task i get an error message when opening the PDF document which says that 'The file could nto be opened because it was either not a supported file type or because the file was damaged(for example, it was sent as an email attachment and wasn't decoded correectly'.
The below is the code i am using to send the smartform
{ CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = 'ZFI_ASSET_PDA_NOTIF'
IMPORTING
fm_name = lv_form_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3.
IF sy-subrc NE 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.}
{ ls_ctrlop-getotf = 'X'.
ls_ctrlop-no_dialog = ''.
ls_compop-tdnoprev = 'X'.
ls_ctrlop-DEVICE = 'LOCL'.
ls_ctrlop-preview = 'X'.
ls_ctrlop-no_dialog = 'X'.}
CALL FUNCTION lv_form_name
EXPORTING
control_parameters = ls_ctrlop
output_options = ls_compop
user_settings = 'X'
gv_prctr_txt = gv_prctr_txt
gv_cc_text = gv_cc_text
gv_class_txt = gv_class_txt
gv_lname = gv_lname
gv_fname = gv_fname
gv_position = gv_position
gv_initiator = gv_initiator
gv_bookcost = gv_bookcost
gv_bookvalue = gv_bookvalue
gv_date = gv_date
gv_prctr = gv_prctr
gs_anla = gs_anla
gv_emv = gv_emv
gv_cond = gv_cond
gv_operable = gv_operable
gv_action = gv_action
gv_justify = gv_justify
gv_replace = gv_replace
gv_replace_comment = gv_replace_comment
gv_process = gv_process
IMPORTING
job_output_info = lt_job_output
EXCEPTIONS
usage_error = 1
system_error = 2
internal_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
LOOP AT lt_job_output-otfdata INTO ls_otf.
lt_otf = ls_otf.
APPEND lt_otf.
CLEAR lt_otf.
ENDLOOP.
CALL FUNCTION 'CONVERT_OTF'
EXPORTING
format = 'PDF'
max_linewidth = 132
IMPORTING
bin_filesize = lv_len_in
TABLES
otf = lt_otf
lines = lt_tline
EXCEPTIONS
err_max_linewidth = 1
err_format = 2
err_conv_not_possible = 3
OTHERS = 4.
Fehlerhandling
IF sy-subrc EQ 0.
ENDIF.
LOOP AT lt_tline.
TRANSLATE lt_tline USING '~'.
CONCATENATE ls_buffer lt_tline INTO ls_buffer.
ENDLOOP.
TRANSLATE ls_buffer USING '~'.
append ls_buffer TO lt_objbin.
DATA lv_counter TYPE i.
DO.
lt_record = ls_buffer.
APPEND lt_record.
SHIFT ls_buffer LEFT BY 255 PLACES.
IF ls_buffer IS INITIAL.
EXIT.
ENDIF.
ENDDO.
Attachment
REFRESH:
lt_reclist,
lt_objtxt,
lt_objbin,
lt_objpack.
CLEAR ls_objhead.
lt_objbin[] = lt_record[].
lt_objhex[] = lt_record[].
CLEAR lv_descp.
CONCATENATE 'Asset'
gs_anla-anln1
'Approval details'
INTO lv_descp
SEPARATED BY space.
Create Message Body
Title and Description
CONCATENATE 'Please find attached the approval details of asset : '
gs_anla-anln1
INTO lv_mail_descp
SEPARATED BY space .
lt_objtxt = lv_mail_descp.
APPEND lt_objtxt.
CLEAR lv_mail_descp .
appending space lines into text of mail.
DO 3 times.
CLEAR lt_objtxt.
APPEND lt_objtxt .
ENDDo.
CONCATENATE 'This is an automatically generated message.'
'Please do not reply to this mail.'
INTO lv_mail_descp
SEPARATED BY space .
lt_objtxt = lv_mail_descp.
APPEND lt_objtxt.
DESCRIBE TABLE lt_objtxt LINES lv_lines_txt.
READ TABLE lt_objtxt INDEX lv_lines_txt.
ls_doc_chng-obj_name = 'smartform'.
ls_doc_chng-expiry_dat = sy-datum + 10.
ls_doc_chng-obj_descr = lv_descp.
ls_doc_chng-sensitivty = 'F'.
ls_doc_chng-doc_size = ( lv_lines_txt - 1 ) * 255 + STRLEN( lt_objtxt ) .
Main Text
wa_doc_chng-doc_size = ( v_lines_txt - 1 ) * 255 + strlen( i_objtxt ).
CLEAR lt_objpack-transf_bin.
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
lt_objpack-body_num = lv_lines_txt.
lt_objpack-doc_type = 'RAW'.
lt_objpack-doc_type = 'TXT'.
APPEND lt_objpack.
Attachment
(pdf-Attachment)
lt_objpack-transf_bin = 'X'.
lt_objpack-head_start = 1.
lt_objpack-head_num = 0.
lt_objpack-body_start = 1.
DESCRIBE TABLE lt_objbin LINES lv_lines_bin.
READ TABLE lt_objbin INDEX lv_lines_bin.
lt_objpack-doc_size = ( lv_lines_bin - 1 ) * 255 + STRLEN( lt_objbin ) .
lt_objpack-body_num = lv_lines_bin.
lt_objpack-doc_type = 'PDF'.
lt_objpack-obj_name = 'ATTACHMENT'.
lt_objpack-obj_descr = lv_descp.
APPEND lt_objpack.
LOOP AT t_mail_addr.
CLEAR lt_reclist.
lt_reclist-receiver = t_mail_addr-mailid.
lt_reclist-rec_type = 'U'.
APPEND lt_reclist.
ENDLOOP.
IF t_mail_addr[] IS INITIAL.
CLEAR lt_reclist.
lt_reclist-receiver = mail id.
lt_reclist-rec_type = 'U'.
APPEND lt_reclist.
ENDIF.
CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
EXPORTING
document_data = ls_doc_chng
put_in_outbox = 'X'
commit_work = 'X'
TABLES
packing_list = lt_objpack
object_header = ls_objhead
contents_bin = lt_objbin
contents_txt = lt_objtxt
receivers = lt_reclist
CONTENTS_HEX = lt_objbin
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
DATA: l TYPE sy-subrc.
l = sy-subrc.
When i run the above code in Se38, I get an email with a attachment that i am able to open. The problem seems to be with user WF_BATCH.
I have already checked all the existing threads on this. I did this coding as per one of the SDN threads itself.
I am able to open the PDF attachment even when i test the method. The problem is only when it is run through a task/workflow.
Please advice.
Thanks and Regards,
Soumya Gayatri.
Edited by: Soumya Gayatri on Apr 14, 2009 8:40 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:44 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:45 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PM
Edited by: Soumya Gayatri on Apr 14, 2009 8:47 PMHello,
You should see an "Edit" in the top right of your post, you can use that to edit it.
As I said, use before and after the coding, but without the spaces (after "{" and before "}" ).
Try it!
Testing:
this is code
regards
Rick Bakker
Hanabi Technology -
Opening Excel Workbook Fails when run from Scheduled Task on Windows Server 2008 Rw
Hi,
I have a little vbs script that instantiates the Excel.Application object and then opens a work book to perform some tasks on it. The script runs fine when run from the command line. When I attempt to run it as a scheduled task (it is supposed to update
data that is pulled from a SQL Server at regular intervals), it fails with the following error:
Microsoft Office Excel cannot access the file 'c:\test\SampleWorkbook.xlsm'. There are several possible reasons: .....
The file does exist. The path reported in the error is correct. The account under which the task is running is the same account I use to run it from the command line. User Account Control is not enabled, and the task is set up to run with highest privileges.
When I run the same script through the Task Scheduler from a Windows Server 2003 machine, it works without issue.
I was just wondering if somebody on this forum has run into a similar issue in connection with Windows Server 2008 R2 and figured out what the magic trick is to make it work. I'm sure it is rights related, but I haven't quite figured out what which rights
are missing.
Thanks in advance for any advice you may have.This is truly killing me ... trying to get it working on Windows Server 2012 without success.
I desperately need to automate running Excel macros in a "headless" environment, that is non-interactive, non-GUI, etc.
I can get it to work using Excel.Application COM, either via VBScript or Powershell, successfully on many other Windows systems in our environment - Windows Server 2008 R2, Windows 7 (32-bit), etc., -BUT-
The two servers we built out for running our automation process are Windows Server 2012 (SE) - and it just refuses to run on the 2012 servers - it gives the messages below from VBScript and PowerShell, respectively-
I have tried uninstalling and re-installing several different versions of Microsoft Excel (2007 Standard, 2010 Standard, 2010 Professional Plus, 32-bit vs. 64-bit, etc.), but it makes no difference.
Would be extremely grateful if any one out there has had any success in running Excel automation on Server 2012 in a non-interactive environment that they could share.
( I have tried adding the "%windir%\syswow64\config\systemprofile\desktop"
folder, which did fix the issue for me when testing on Windows Server 2008 R2, but sadly did not resolve it on Windows Server 2012 )
[VBScript error msg]
Z:\TestExcelMacro.vbs(35, 1) Microsoft Office Excel: Microsoft Office Excel cannot
access the file 'Z:\TestExcelMacro.xlsm'. There are several possible reasons:
• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open work
[Powershell error msg]
Exception calling "Add" with "0" argument(s): "Microsoft Office Excel cannot open or save any more documents because th
ere is not enough available memory or disk space.
To make more memory available, close workbooks or programs you no longer need.
To free disk space, delete files you no longer need from the disk you are saving to."
+ CategoryInfo : NotSpecified: (:) [], MethodInvocationException
+ FullyQualifiedErrorId : ComMethodTargetInvocation
You cannot call a method on a null-valued expression.
+ CategoryInfo : InvalidOperation: (:) [], RuntimeException
+ FullyQualifiedErrorId : InvokeMethodOnNull -
Unit test runs perfectly fine with NUnit but fails when run from TestExplorer
Hello all,
I have a TestProject, Harmony.Tests. In there, I have a method AddApplicationEvent()
which calls another method Send(InvokeRequestMessage requestMessage) which calls a webservice (OperationHandlerBrokerWebService).
The code snippet looks like this. This is not the complete code but a part where we are calling the web service. It fails on the underlined Italic line of code.
OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
brokerService.UseDefaultCredentials = true;
brokerService.Url = address;
brokerService.Timeout = timeoutInMilliseconds;
byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
The same test works and passed fine when I ran it with NUnit, but failed with following exception when I tried to run it from TestExplorer.
Test Name: AddApplicationEvent
Test FullName: N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.AddApplicationEvent
Test Source: d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs : line 665
Test Outcome: Failed
Test Duration: 0:00:00.296
Result Message:
SetUp : Message returned System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.ArgumentException: Invalid token for impersonation - it cannot be duplicated.
at System.Security.Principal.WindowsIdentity.CreateFromToken(IntPtr userToken)
at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info)
at System.Security.Principal.WindowsIdentity..ctor(SerializationInfo info, StreamingContext context)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle._SerializationInvoke(Object target, SignatureStruct& declaringTypeSig, SerializationInfo info, StreamingContext context)
at System.Reflection.RuntimeConstructorInfo.SerializationInvoke(Object target, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.CompleteISerializableObject(Object obj, SerializationInfo info, StreamingContext context)
at System.Runtime.Serialization.ObjectManager.FixupSpecialObject(ObjectHolder holder)
at System.Runtime.Serialization.ObjectManager.DoFixups()
at System.Runtime.Serialization.Formatters.Binary.ObjectReader.Deserialize(HeaderHandler handler, __BinaryParser serParser, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, Boolean isCrossAppDomain, IMethodCallMessage methodCallMessage)
at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream)
at N4S.Forms.OperationHandlerBroker.AMessage.DeserializeMessage(Byte[] serializedMessage)
at N4S.Forms.OperationHandlerBroker.WebServiceServer.BrokerService.InvokeOperationHandler(Byte[] serializedInvokeRequestMessage)
--- End of inner exception stack trace ---
expected: <0>
but was: <1>
Result StackTrace:
at N4S.Harmony.Tests.TestHelper.InvokeOperation(OperationHandler handler, OperationHandlerInput input, Boolean expectedToWork) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 136
at N4S.Harmony.Tests.TestHelper.LoginAsUser(String username, String password) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 394
at N4S.Harmony.Tests.TestHelper.Login(TestUserName requestedUser) in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 377
at N4S.Harmony.Tests.TestHelper.LoginAsAdvisor() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\TestHelper.cs:line 230
at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.Login() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 76
at N4S.Harmony.Tests.CaseManagement.HarmonyFacadeTests.SetupTest() in d:\TFS\TMW\Dev\TMWOnline\Harmony\N4S.Harmony.Tests\CaseManagement\HarmonyFacadeTests.cs:line 67
I am not sure what causing the issue. I checked the Credentials, Windows Identity during both the test run and there is no difference. Please advise !!
Thanks,
DeepakHi Tina,
Thanks for your reply.
I do have NUnit adapter installed. I even noticed that the test runs fine with NUnit GUI and also if I run it through Resharper Test Explorer window.
As you can see in the image above the same test is passed when I ran it from Resharper Unit Test Explorer window but fails when I ran it from Test Explorer window. I also captured the information on fiddler.
There was a significant difference in the Header Content length. Also under the User-Agent property the protocol versions are different.
Not sure why VSTest ExecutionEngine is picking a different version.
The UnitTest in question is calling a webservice method which in turn calls a method from another referenced project.
Web Service class
using System;
using System.Web.Services;
using N4S.Forms.OperationHandlerBroker.Server;
using NLog;
namespace N4S.Forms.OperationHandlerBroker.WebServiceServer
/// <summary>
/// The operaton-handler broker service.
/// </summary>
[WebService(Description = "The N4S Forms Operation-Handler Broker Web-Service.", Name = "OperationHandlerBrokerWebService",
Namespace = "N4S.Forms.OperationHandlerBroker.WebServiceServer")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class BrokerService : WebService
{ /// <summary>
/// Calls <see cref="HandleRequest"/>. Updates performance-counters.
/// </summary>
/// <param name="serializedInvokeRequestMessage">the binary-serialized <see cref="InvokeRequestMessage"/></param>
/// <returns>the binary-serialized response message</returns>
[WebMethod(BufferResponse = true, CacheDuration = 0, Description = "Invokes the requested operation-handler and returns a binary-serialized response-message.", EnableSession = false)]
public byte[] InvokeOperationHandler(byte[] serializedInvokeRequestMessage)
logger.Trace(Strings.TraceMethodEntered);
PerformanceMonitor.RecordRequestStarted();
InvokeRequestMessage requestMessage = (InvokeRequestMessage) AMessage.DeserializeMessage(serializedInvokeRequestMessage);
InvokeResponseMessage responseMessage;
try
responseMessage = HandleRequest(requestMessage);
PerformanceMonitor.RecordSuccessfulRequest();
catch (Exception)
PerformanceMonitor.RecordFailedRequest();
throw;
finally
PerformanceMonitor.RecordRequestEnded();
logger.Trace(Strings.TraceMethodExiting);
return AMessage.SerializeMessage(responseMessage);
UnitTest snippet
OperationHandlerBrokerWebService brokerService = new OperationHandlerBrokerWebService();
brokerService.UseDefaultCredentials = true;
byte[] serializedResponseMessage = brokerService.InvokeOperationHandler(serializedRequestMessage);
Please advise.
Thanks,
Deepak -
The code below is a simple powershell statement which enables me to change the execution policy so that I can run powershell scripts. When I run this in a normal windows enviroment the statement will work fine, not giving me an issue whatsoever. However,
whenever it runs in the task sequence the TS fails. I am running this via the command line option in the task sequence, each time running this step as 3 different types of administrators.
powershell.exe -noninteractive Set-ExecutionPolicy -ExecutionPolicy unrestricted
Checking the log file it states this:
Set-ExecutionPolicy : The term 'Set-ExecutionPolicy' is not recognized as the InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
name of a cmdlet, function, script file, or operable program. Check the InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
spelling of the name, or if a path was included, verify that the path is InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
correct and try again. InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
At line:1 char:1 InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
+ Set-ExecutionPolicy -ExecutionPolicy unrestricted InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
+ ~~~~~~~~~~~~~~~~~~~ InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
+ CategoryInfo : ObjectNotFound: (Set-ExecutionPolicy:String) [], InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
CommandNotFoundException InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
+ FullyQualifiedErrorId : CommandNotFoundException InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
InstallSoftware 13/10/2014 17:28:09 3768 (0x0EB8)
Failed to run the action: Script Exception.
Incorrect function. (Error: 00000001; Source: Windows) TSManager 13/10/2014 17:28:09 2716 (0x0A9C)
I am new to both SCCM and Powershell, but from my point of view, this should work, considering that the syntax is not actually incorrect? Please could anyone with any idea drop some hints and tips on how to
stop this issue.I'm not using 3 admin accounts at once if that's how it sounded. I have tried 3 different Admin accounts because I felt that perhaps the difference in permissions may have made a difference in whether I was able to run the syntax and scripts. So I tried
using my own personal administrator account, the SCCMNA account, and the local admin account, which I read worked.
At this point in the task sequence I have:
- Installed the OS
- Connected to the domain
- Installed Applications such as; Flash, Shockware, Reader etc.
Once it has installed the last application within a folder called "Helper Apps" (Which contains various Java and Adobe apps which install fine) it will then run a "Use Toolkit Package" using the MDT toolkit, once this stage is complete
it then progresses to the Script Exception section of the TS.
powershell.exe -noninteractive Set-ExecutionPolicy -ExecutionPolicy unrestricted
I obviously need this to work otherwise I am not allowed to run the script, but because this syntax is "incorrect" it stops the task sequence.
I hope this information might shed some more light on the situation. -
Cloning context file on db tier fails when run non-interactively
Hi all,
I have a problem where cloning the DB tier context file using adclonectx.pl non-interactively using a pairsfile and noprompt fails in certain circumstances and continually returns this error
Target System Port Pool [0-99] : RC-00201: Error: Not a valid port pool number
If we clone from prod or uat (which are on different nodes) to non-prod it works fine, if we clone from a different non-prod environment (on the same node) it fails.
We can run adclonectx.pl interactively with the same pairsfile and it works, so I copied all of the variables in the log into the pairsfile and ran it non-interactively and it failed with the same error.
My understanding is that adclonectx.pl uses the source DB context file and the pairsfile to create the new context file. I've tried cloning the context file non-interactively from several different non-prod envs with the same error, so I don't think it's specific to 1 source env.
It seems to want to prompt for the portpool when it's on the same node as the source environment.
EBS 12.1.3, DB 11.2.0.3 RAC 2 node on Oracle Linux 5.
I've raised 3-9540409031 : adclonectx.pl on db Tier errors with RC-00201 when run non-interactively using pairsfile - but haven't got an answer yet.
This is the pairsfile with everthing in it - generated from an interactive session that worked.
s_db_ons_remoteport = 6411
s_cmanport = 1532
s_clusterInterConnects = dxd1db01-ib
s_dbhost = dxd1db01-ib
s_dbSidLower = ebscnv1
s_dbhome4 = +DATA_DXD1
s_dbhome3 = +DATA_DXD1
s_dbSid = EBSCNV1
s_dbhome2 = +DATA_DXD1
s_dbhome1 = +DATA_DXD1
s_isAdmin = YES
s_clonestage = /u01/EBSDEV/product/11.2.0/appsutil/clone
s_jretop = /u01/EBSDEV/product/11.2.0/jdk/jre
s_db_rollback_segs = NOROLLBACK
s_db_util_filedir = /u01/EBSCNV/tmp
s_isForms = YES
s_undo_tablespace = APPS_UNDOTS1
s_temp = /u01/EBSDEV/product/11.2.0/appsutil/temp
s_database_type = RAC
s_dbuser = orebscnv
s_instName = EBSCNV1
s_dbGlnam = EBSCNV
s_domainname = mgmt.shared.health.nz
s_dbgroup = oinstall
s_hostname = dxd1db01-ib
s_jdktop = /u01/EBSDEV/product/11.2.0/jdk/jre
s_isConc = YES
s_instThread = 1
s_dbport = 1532
s_isWeb = YES
s_dbCluster = true
s_contextname = EBSCNV1_dxd1db01-ib
s_dbClusterInst = 2
s_dbdomain = mgmt.shared.health.nz
s_base = /u01/EBSCNV
s_db_ons_localport = 6311
s_contextfile = /u01/EBSCNV/tmp/EBSCNV1_dxd1db01-ib.xml
s_db_oh = /u01/EBSDEV/product/11.2.0
s_instNumber = 1
s_virtual_hostname = dxd1db01-ib
s_display = y
this is the adclonectx.pl comand i use - I've checked all the env variables before running and they're all good
perl ./adclonectx.pl \
contextfile=$SRCCTX \
template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
outfile=$NEWCTX \
pairsfile=$PAIRSFILE \
initialnode
when run non-interactively i use this command - and as mentioned above this works under certain circumstances
dummypw=dummypw
echo \$dummypw | perl ./adclonectx.pl \
contextfile=$SRCCTX \
template=$ORACLE_HOME/appsutil/template/adxdbctx.tmp \
outfile=$NEWCTX \
pairsfile=$PAIRSFILE \
initialnode noprompt
Any ideas, it's got 3 DBAs stumped...That makes sense to me ... the pool parameter should be in the pairsfile, .. or in the parameters when calling it at command line
You can force the pool to be changed, even when you're on the same server. Actually, I would use different pools for any environment, different server or not. And, avoid the default pool as well. If you do it this way, one of the advantages is that you spot issues - like the one you have - much much earlier. In that case, you would need that extra parameter on every run. -
Query not showing detailed result when run through query Designer or Portal
Hi,
There is one query which not showing detailed result while running through Query Designer or run in Portal.
But strange thing is that it is showing the detailed result when i run it through BeX Analyzer.
While all the other queries don't have this problem in system. All showing the correct detailed result.
If anyone have some idea on this issue plz let me know.
Regards,
Javed
Edited by: Javed Akhtar on Jul 7, 2009 3:59 PMHi,
We can do this setting in WAD. Please check the web template and try to remove that setting. When you have hierarchy then we can display only till certain level in portal, this setting is done in web template APIs, but in bex analyzer you can see all the detailed information.
Edited
Go through this thread for some more detailed information
http://help.sap.com/saphelp_nw2004s/helpdata/en/44/7b5f0a95ce12d0e10000000a422035/frameset.htm
Regards,
rik -
Performance slowdown when running through report server
There is a considerable difference between running a particular report through the report server. It is slower than when run directly from ReportBuilder.
Each points to the same data/application server. There is very little formatting or other work required of the client.
The difference is about 10-fold, i.e. a report taking 1 minute to run via ReportBuilder takes about 10 minutes when launched through the report server.
I have no idea how to begin diagnosing this. Our DBA says it is possible for the 'explain plan' to differ because the SQL is contained within the .REP file (and not as a stored procedure in the database). Even so, how/where would one begin looking to discover the reason for the dramatic performance difference?
Performance monitors on both the app/database server and the Oracle engine show that the slow running report consumes about the same amount of resources as the faster report. The slower report simply takes 10 times as long to run.
Perhaps we're not looking at the 'best' performance monitor parameters?
Anything else we can use to trace execution differences?When we get this we try the following.
The dba's have some tool which can view the sql running under the server and the builder - you can then see if the plan is different.
Ordering - if there is a lot of ordering we get the SQL to pre order using the ORDER BY clause, this means the IAS server has less work to do (depending on your PC we find a PC is always quicker at formatting than the server).
Userlogon - we have a different user logon to that used by the server, this sometimes gives rise to different plans. You can change this in reports using ALTER_SESSION. E.g. we find this can speed up reports:
srw.do_sql('ALTER SESSION SET optimizer_index_cost_adj=50');
srw.do_sql('ALTER SESSION SET optimizer_index_caching=90'); if put in the before report trigger (nb the values may differ depending on your environment.
Maybe you are looking for
-
How do you scan multiple pages to my computer using a C5580 all-in-one printer
how do you scan multiple pages to my computer using an HP Photosmart C5580 all-in-one printer?
-
Reg:printing contents to log file
Hello all iam creating a debug log file for my program.. debug will be based on the level set which will be taken as a input from the user ..when i try to print the contents to a file gen.out i could not print anything ..file is empty..can some one p
-
Is MySQL component part of standard RHEL installation?
I have a query if MySQL component is part of a standard RHEL installation or it is installed additionally as an RPM? There was a security analysis run on one server which has RHEL 5.8 installed and it is showing security vulnerabilities with respect
-
Remote Desktop Connection/RDC display is too small on my MacBook screen
I use the free download from MS, RDC version 1.0.3 on my MacBook - to connect remotely to a PC network at my job from home. When I connect remotely the RDC display is very small on my MB screen. Is there anyway to enlarge the display or am I locked i
-
HT3069 can you stream on netflix and amazon in italy?
I want to know if you are able to stream Netflix, Amazon and HuluPlus using the Apple TV while in Italy?