Positional parameter for -asjob
$asjob = $true
if ($asjob){$asjobcommand = "-asjob"}else{$asjobcommand = ""}
$asjobcommand
$computername = "abc"
Invoke-command -computername $computername $asjobcommand -scriptblock{write-host "code"}
Invoke-Command : A positional parameter cannot be found that accepts argument '-asjob'.
At line:8 char:1
+ Invoke-command -computername $computername "$asjobcommand" -scriptblock{write-ho ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-Command], ParameterBindingException
+ FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.InvokeCommandCommand
Can anyone point me into the right direction on this one? I understand why its happening i just don't know how to fix it.
Figured it out after i released you do do -asjob:$true -asjob:$false
$asjob = $true
if ($asjob){$asjobcommand = $true}else{$asjobcommand = $false}
$asjobcommand
$computername = "abc"
Invoke-Command -computername $computername -scriptblock{write-host "code"} -asjob:$asjobcommand
Figured it out after i released you do do -asjob:$true -asjob:$false
$asjob = $true
if ($asjob){$asjobcommand = $true}else{$asjobcommand = $false}
$asjobcommand
$computername = "abc"
Invoke-Command -computername $computername -scriptblock{write-host "code"} -asjob:$asjobcommand
Similar Messages
-
Positional parameter passing For OAS 4.0.8.2
Have The OAS 4.0.8.2 support Positional parameter passing ?
I try it, but error!Its a tically error of not enough memory.
How many Mb of Ram and swap have you configured.
Best regards, Marcelo.
PD: With this combination I recomend 256Mb of ram plus 512mb of swap. -
UTL MAIL a positional parameter association may not follow a named associat
I am trying to sale 2 emails, I got the code like this
{code|
utl_mail.send(sender => '[email protected]',
recipients => '[email protected]','[email protected]',
subject => 'Banner Duplicate Report '||trunc(sysdate)||' Process for Managing Known Duplicate Reports',
message => 'You are about to receive a report with possible duplicates in the Database, THIS IS A TEST' ||chr(10)||chr(13)||
I am getting this error...
PLS-00312 a positional parameter association may not follow a named association....
I try to separate the email by ; does not work either...
Thank you
Ps I changed the real emails by xxxx842471 wrote:
I am getting this error...
PLS-00312 a positional parameter association may not follow a named association.... The reason for the error. You are writing this:
utl_mail.send(
sender => '[email protected]',
recipients => '[email protected]',
'[email protected]',
subject => 'Banner Duplicate Report '||trunc(sysdate)||' Process for Managing Known Duplicate Reports',
..etc..
);The compiler/parser sees that you are specifying the parameter name followed by the value. So:
This is fine:
sender => '[email protected]',
So is this:
recipients => '[email protected]',
But what is this? Parameters are separated with commas. Where is the parameter name?
+'[email protected]',+
PL/SQL can either support the call where you do not specify the parameter name. For example: (using positional parameters)
DBMS_OUTPUT.put_line( 'hello world' );
Or support where you do specify the parameter names. For example: (using named parameters)
DBMS_OUTPUT.put_line( a => 'hello world' );
But you cannot mix these two methods as you have done. Thus the error message stating exactly this.
The recipients parameter is scalar value. It expects a single string value. Not multiples values.
The string itself can contain a comma delimited list of recipients. E.g.
recipients => '[email protected],[email protected],[email protected]', -
Hi everyone,
While running simple (dept form) under scott schema I received positional parameter error message after running this form.
How would I avoid Jinitiator before running the forms 9? Because when I click ok It opens athe application Server then run the form. I can't want to open application server for running this simple form.
Forms Version is 9.
What setting I do in order to run the dept form successfully on version forms 9.
MentorHello Francois,
I don't want to sound skeptic, but wasn't that a bug in release 9.0.2.9?
I tried in 10g R2 and it does run even if the path has a space in it. I tested in C:\test forms my Oracle home is under D:\Devsuite10g. I ran it from the builder.
If it's the same bug than it has some weird behavior :o)
Anyway You are 100% right, the invention of spaces in a directory name it's hmmmm not so right :o)
Regards.
Tony -
Hi,
I am currently writing a powershell script that utilizes the new-mailbox command of EMS to create a shared mailbox.
I am connecting to EMS via a remote PSSession object.
When I try and specify an alternative SMTP address via the -PrimarySmtpAddress paramater I get the error
" A positional parameter cannot be found that accepts argument '-PrimarySmtpAddress'.
I have confirmed that the version of Exchange 2010 installed on the server should have this parameter - Version 14.3 (Build 123.4)
An example command :-
New-Mailbox -Shared -Name "SharedMailbox_test" -Alias "testsharedmailbox" -DisplayName "SharedMailbox_test" -UserPrincipalName "[email protected]" -OrganizationalUnit "OU=Mailboxes,OU=Accounts,DC=domain,DC=com"
-Database "DB1" -PrimarySmtpAddress "[email protected]" -force
Has anyone else experienced this behavior?
Steve.
Just a good old boy, never meaning no harmHi Rich,
That was my initial thought too, so I triple-checked my command to see if it was a simple syntax error - it wasn't.
On further investigation I compared the list of parameters available in a DEV EMS session (on where I know the command works) against the one in PROD where the problem occurs. Both sessions are running the same version of EMS.
I ran the following to get a list of parameter names in both sessions :-
$a = gcm New-Mailbox
$a.Parameters.Keys | sort
Here's the results :-
DEV EMS (working)
Prod EMS (missing)
AccountDisabled
ActiveSyncMailboxPolicy
AddressBookPolicy
Alias
Alias
Arbitration
ArbitrationMailbox
Archive
ArchiveDatabase
ArchiveDomain
AsJob
AsJob
Confirm
Confirm
Database
Database
Debug
Debug
Discovery
DisplayName
DisplayName
DomainController
DomainController
Equipment
Equipment
ErrorAction
ErrorAction
ErrorVariable
ErrorVariable
FirstName
FirstName
Force
Force
ImmutableId
Initials
Initials
LastName
LastName
LinkedCredential
LinkedDomainController
LinkedMasterAccount
ManagedFolderMailboxPolicy
ManagedFolderMailboxPolicyAllowed
ModeratedBy
ModerationEnabled
Name
Name
Office
OrganizationalUnit
OrganizationalUnit
OutBuffer
OutBuffer
OutVariable
OutVariable
Password
Phone
PrimarySmtpAddress
RemoteArchive
RemotePowerShellEnabled
ResetPasswordOnNextLogon
ResetPasswordOnNextLogon
ResourceCapacity
RetentionPolicy
RoleAssignmentPolicy
Room
Room
SamAccountName
SamAccountName
SendModerationNotifications
Shared
Shared
SharingPolicy
ThrottlingPolicy
UserPrincipalName
UserPrincipalName
Verbose
Verbose
WarningAction
WarningAction
WarningVariable
WarningVariable
WhatIf
WhatIf
It might be a permissions-based issue, but I don't own either EMS session so can't test personally.
I will keep investigating and update here once I have some further information.
Regards,
Steve.
Just a good old boy, never meaning no harm -
How set and get parameter for a session of a portlet (Java)
I would like get parameter and set parameter for a portlet in portal 9.02. This parameter must be availbale during the session of the portal.
With Java Servlet
// I retrieve my session
HttpServletRequest httpreq = (HttpServletRequest)req;
HttpServletResponse httpresp = (HttpServletResponse)resp;
HttpSession session = httpreq.getSession();
//And after i can get or set some parameter for this servlet
//Example
session.setAttribute("MyEmployeeNumber","600000");
String id = (String)session.getAttribute("MyEmployeeNumber");
// But with Portlet in portal, i can't do it.
PortletRenderRequest pr= (PortletRenderRequest)httpreq.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
String sUser=pr.getUser().getName();
ProviderSession session=pr.getSession();
// But after if i want get or set a value in this session i have a internal error 500
session.setAttribute("MyEmployeeNumber","600000");
I would like my parameter is avalaible during a session for a user in each page of the portal, because my portlet is on each page.I have almost the same problem. I tried as you suggested, but it doesn't work yet.
provider.xml
<session>true</session>
<passAllUrlParams>true</passAllUrlParams>
My code in my jsp-portlet is
<%@page contentType="text/html; charset=windows-1252"
import="oracle.portal.provider.v2.render.PortletRenderRequest"
import="oracle.portal.provider.v2.render.PortletRendererUtil"
import="oracle.portal.provider.v2.http.HttpCommonConstants"
import="oracle.portal.provider.v2.ParameterDefinition"
import="oracle.portal.provider.v2.render.http.HttpPortletRendererUtil"
%>
<%@page session="true"%>
<%
PortletRenderRequest pReq = (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
String valueSession = (String)pReq.getAttribute("sesion");
if (valueSession != null) {
pReq.setAttribute("session", "value1");
out.println("<br>(1)valueSession != null");
out.println("<br>(1)valueSession : " + pReq.getAttribute("session"));
} else {
pReq.setAttribute("session", "value2");
out.println("<br>(2)valueSession == null");
out.println("<br>(2)valueSession : " + pReq.getAttribute("session"));
%>
And i always get as result:
(2)valueSession == null
(2)valueSession : value2
Even when i send values (post) at the same page or browsing between tabs:
I check my provider registration and it has the value "once per session"
I have portal 9.0.2.2.14
Thanks -
Parameter for Current Month and Previous Month
I'm trying to create a parameter for current month and previous month based on the ex_date, but not sure what i'm doing wrong.
where ex_date = @SelectDate
I created a second dataset below for the values in the parameters.
SELECT Month(CURRENT_TIMESTAMP) AS 'Month', 'Current Month' as 'Current Month'
union all
SELECT Month(CURRENT_TIMESTAMP)-1 AS Month, 'Previous Month' as 'Previous Month'
Results
Month Current Month
3 Current Month
2 Previous Month
Once I preview it I get "Conversion failed when converting date and/ or time from character string" I changed the data type to "date/Time" but that did not make a difference. The date is convert (varchar(10), ex_date, 101) so looks like
11/12/2014.
I've also tried expressions like =month(now()) to pull current month with same error so i'm not sure what i'm doing wrong. Any ideas?i tired this real simple report
in the first dataset - my main report query - select name from sysdatabases where month(crdate())=@month
in the second dataset - select month(getdate()) as Month1
in the parameters - choose int data type and available values - select the second data set
in the first data set- add this parameter..( i am assumming you know this, since you have done)
in the preview you should get the drop down with current month number - 3
and if you run the report, it will display the database names that were created in march. remember we are no checking year, so will get all that were created in march across the years.
Hope it Helps!!
I'm looking to have the dropdown say "Previous Month" and "Current Month" as a option. I know how to get the information in SQL, but not sure how this translates or put into a parameter.
Current Month
list_date BETWEEN
DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()), 0)
AND
DATEADD(MONTH, DATEDIFF(MONTH, 0, GETDATE()) + 1, 0)
Previous Month
list_date between
CONVERT(varchar,dateadd(d,-(day(dateadd(m,-1,getdate()-2))),dateadd(m,-1,getdate()-1)),106) /* Last Month */
and
CONVERT(varchar,dateadd(d,-(day(getdate())),getdate()),106) -
One parameter for multiple Crystal reports in Publication
Does anyone know if it is possible to enter one identical parameter for multiple Crystal reports in publication when scheduling? BOE 3.1 SP3 Windows, Java.
To elaborate I am creating publication with multiple reports, each report has one parameter and this parameter is identical in every report in publication. So instead of entering this parameter many times I would like to enter once.
If yes point me in the right direction to get the how to or post the steps.Daniel,
Thank you so much for your answer. It was very helpful. In the end, it didn't work but it helped me figure out what was happening. I use a different form for the reports and I had it coded in the form which report to use. I created a second form for the second crystal and then I used an if statement to choose the form and it worked like a charm.
Thanks so much again! -
How to make a common parameter for two subreports in the main report.
Hi,
I have a crystal report which has 2 subreports in it. Both the subreports have the same code and I need to create a parameter for Project Cost in both the subreports for filtering the data.
When i create the same parameter in both the subreports, i see two parameters with same name on my prompt page while refreshing the report. however I just want 1 parameter on my prompt page and data should get filtered in both the reports.
Can anyone please suggest something, How can I do that? is there a way for sharing same parameter between two subreports?
Thanks!
Neha.hi Neha,
here's how to do this:
1) create a new parameter with the same name on the main report
2) right click on your first subreport and choose Change Subreport Links
3) in the Field to Link To list drag over your new main report parameter
4) open the Subreport Parameter Field to Use select menu and choose your subreport parameter
5) repeat steps for the 2nd subreport
now you'll only get prompted once.
cheers,
jamie -
Time evaluation error "Error while positioning ABWKONTI" for leave entitlem
We are currently running on SAP ECC5. Time evaluation is run with schema TQTA everymonth to create leave quotas in info type 2006.
I am experiencing a time evaluation error "Error while positioning ABWKONTI" for one employee when running TQTA.
This employee was engaged on 14/08/2006. When I checked the logged changes per infotype, I found that a record for 14/07/2006 was deleted. I did check all the infotypes and all is reflecting the correct start date. I would really appreciate if someone can tell me how to fix this problem. Currently the leave entitlements are being processed manually. Please see below the error I am receiving:-
Log: Time Evaluation
4 General data
Successful personnel numbers
Personnel numbers with errors
Personnel numbers ended early
5 Personnel Numbers Rejected
5 00408765 Van Wyk Werner
U Error while positioning ABWKONTI
13A200608 0002006081320060714###%##
Quota could not be positioned:
2006 08 2006.07.14 2006.08.13
Relative day in period: 13 200706
Quota used/quota entitlement to be accounted: 1.25000
Person rejected: 00408765
Messages
5 Statistics
Selected personnel numbers 1
Successful runs for 0
including with errors 0
Processing not completed for 0
Rejected 1
Total number of messages and error messages 1Hi,
Which Function Ur using for TQTR, Check That other wise P2006 Function Used.
I think the error is in ur PCR.
First u Understand the business process then write the PCR.
Send ur pcr what u had written.
also send ur Business senerio.like Conditions........ -
TPM_MIGRATION No position exists for the selected criteria Msg no. TRQ0020
Hello Experts.
I'm facing a error when execute the STEP B06 in TPM_MIGRATION Transaction, the message was:
No position exists for the selected criteria
Message no. TRQ0020
Diagnosis
This is the position that is characterized by the following details:
CC=1020;PT=V4I;SA=DEPBCCR;SE=1000013
When I look the Security ID number in the old system, the Document is obsolete, but the migration transaction seek the FLOW information for this ID number and not return any information.
Thanks for you help.
Regards.
Edited by: k3n_rao on Mar 31, 2011 7:32 PMHi Lorenz,
Thank you very much for the answer, My colleague, the one who posted the threat is not longer available, he went on hollydays.
We did check TPM12 & TPM13 and the reports said:
TPM12 : "no positions selected"
TPM13: "No flows found"
Just to double check that we have understood, which "Migration date" are you reffering to?
thank you very much
best regards, -
Problems when creating a new parameter for a parametric role
I'm trying to create a new parameter for a parametric role, but it seems that it is never updated, because the BPM engine does not return any error.
The scenario is: I have a process that has the role "Brands_Admin", the brands are populated by Web Service dynamically, then the parameters of the role would be those brands. In this case, if a new brand is registered (WS returns a new brand), I simply create a new parameter for the role through the "process administrator" of the BPM Enterprise.
I'm trying to create the new parameter as follows:
dirSession = DirectorySession.currentEngineSession;
dirOrganizationalRole = DirOrganizationalRole.fetch(session : dirSession, id : "Brands_Admin");
String[] parametricRoles = dirOrganizationalRole.parametricValues;
parametricRolesCount = parametricRoles.length();
parametricRoles[parametricRolesCount] = "NEW_BRAND";
dirOrganizationalRole.parametricValues = parametricRoles;
dirOrganizationalRole.update();
dirOrganizationalRole.refresh();
for (int i=0; i<dirOrganizationalRole.parametricValues.length(); i++) {
logMessage(dirOrganizationalRole.parametricValues);
In the code above, the BPM Studio will print the new parameter correctly, but in next activity (like a Screenflow) when I try to get the parameters of that role again, there are only the parameters that were registered using the BPM Studio, the parameters that are created programmatically not appear.
Anyone know the reason?
An user with the same problem: http://forums.tangosol.com/forums/thread.jspa?threadID=839253&tstart=1When a project that contains this logic to create a new parameter for a parametric role programmatically is deployed in BPM Enterprise, some strange behaviours occurs.
The first is that I cannot see through the process administrator the new parameter that was created for the parametric role.
The second is that if I create this new parameter through process administrator and associate an user to the role that contains the new parameter I cannot access the deployment process. In workspace (authenticated with user that is associated with the role that contains the new parameter) I cannot see anything about the process. -
Date Format on OWB 11.1.0.7 to use for input parameter for a mapping
All,
What is the Date Format on OWB 11.1.0.7 to use for passing in an input parameter for a mapping to execute?
I have tried '01-01-2010','01-JAN-2010','01.01.2010', 01/01/2010 and I get the following error:
Error RPE-01003: An infrastructure condition prevented the request from completing.
Error RPE-01038: Failed to evaluate expression declare l_expression DATE := 01/01/2010;begin :result := wb_rt_conversions.from_date(l_expression);end;. Please modify the expression, redeploy and retry again.
RA-06550: line 1, column 32:
PLS-00382: expression is of wrong type
ORA-06550: line 1, column 24:
PL/SQL: Item ignored
ORA-06550: line 1, column 90:
PLS-00320: the declaration of the type of this expression is incomplete or malformed
ORA-06550: line 1, column 51:
PL/SQL: Statement ignored
I am using a Mapping Input parameter object and have a START_DATE_IN as a DATE and an END_DATE_IN as a DATE
Any information you could provide would be greatly appreciated.
Thanks,
ShaunHello Shaun,
The function wb_rt_conversions.from_date is (at least in OWB10.2) overloaded and can with input-types as
date, timestamp_unconstrained, timestamp_tz_unconstrained, timestamp_ltz_unconstrained or varchar2.
If it doesn't work with varchar2 I would try Date:
For example: to_date('2010-01-01','YYYY-MM-DD')
I also found this thread:
http://kr.forums.oracle.com/forums/thread.jspa?threadID=608257
Hoping this helps...
Guenther -
ABAP for Super Dumps: Import- & Export-Parameter for a Table in a FM
Hello ABAP Profs,
sorry I am BW.
<b>Import- & Export-Parameter for a Table in and out of an Function Modul.</b>
I want to import a table into a Function Module, change it and export it again.
How do I have to define the Import- and Export- Parameters in the FM ?
The table looks looks this:
DATA: zvpshub_tab TYPE SORTED TABLE OF /bic/pzvpshub WITH UNIQUE KEY
/bic/zvpshub objvers /bic/zvpsoursy INITIAL SIZE 0.
Thanks a lot
Martin SautterHi Clemens,
<u>in SE11</u> I defined a datatype of Type Structure: ZVPSHUB_ROW.
<u>in SE11</u> I defiend a datatype of Type Tabletype: ZVPSHUB_TAB,
bases on Rowtype ZVPSHUB_ROW.
<u>in SE 80</u> I creates an FM with a CHANGEING Parameter referencing ZVPSHUB_TAB:
FUNCTION ZVP_SHUB_TAB_LOAD.
""Lokale Schnittstelle:
*" CHANGING
*" VALUE(SHUB_TAB) TYPE ZVPSHUB_TAB
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine of the Upload Rules in defined the table:
DATA:shub_tab TYPE zvpshub_tab.
<u>in RSA1</u> in BW in the Startroutine i called the FM
CALL FUNCTION 'ZVP_SHUB_TAB_LOAD'
CHANGING
shub_tab = shub_tab.
and it works ..
Thank You
Martin Sautter -
How to put parameter for object/table ID in BW Web Report
Hi All,
In my BW Web report, i want to get my object TABLE_1 but the code below seems not to work.
var mytable = document.getElementsByTagName("table");
Checking on it, i think IE recognize only document.getElementsByID. ( I tested it by manually creating a table in my template and putting a tag for table ID) But BW does not generate the Object ID in the parameters below, only the name.
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="CAPTION" value="jezel"/>
<param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
<param name="BLOCK_SIZE" value="0"/>
<param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
ITEM: TABLE_1
do you know how i can add a parameter for object ID? do you know any steps how i can retrieve my table using javascript?
Thanks in advance.Hi JTi,
what i have understood from your requirement is that you want to access the web item table_1 in javascript, you can get that as below:
Add
<span>
tag before your web item and set its id to table.
<span id = "table">
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="GET_ITEM"/>
<param name="NAME" value="TABLE_1"/>
<param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_GRID"/>
<param name="DATA_PROVIDER" value="DATAPROVIDER_1"/>
<param name="GENERATE_CAPTION" value=""/>
<param name="CAPTION" value="jezel"/>
<param name="ONLY_HIERARCHY_NAVIGATION" value="X"/>
<param name="BLOCK_SIZE" value="0"/>
<param name="SHOW_PAGING_AREA_BOTTOM" value=""/>
ITEM: TABLE_1
</span>
In javascript access it as :
var mytable = document.getElementsById("table");
Hope this helps
Thanks
Dipika
Maybe you are looking for
-
Using another family members upgrade?
This has probably been asked a billion times, so sorry about that. My mother and I both have an iphone 4s, but she has had hers for longer so she is eligible for an upgrade sooner than me. Mine is cracked pretty badly, and I can't use this phone for
-
Have a feeling this has been discussed before, but couldn't find anything that worked. When I try to start a video chat with a friend, I get the message that the user cancelled the request, even thought it was accepted. Both of us were able to succes
-
Trouble updating a GUI interface - in SOS state
hi there, I have some trouble implementing this GUI related code, but what it basically does is it removes the certain component of the jframe (removes one of jpanels) and attaches a newly created panel.....I posted up the same topic last night, and
-
Time Machine (backupd) crashes with Segmentation fault
I've had to wipe my TimeMachine backup to create a larger space for it. Now I'm facing this error, and I haven't got any backup anymore. Frightening. Here's my problem: Jun 22 11:19:45 computer com.apple.backupd[2682]: Starting standard backup Jun 22
-
Hi, I have the following scenario: R/3 -> XI -> File Therefor I have an R3-System(partyless) in my Xi and an Clientsystem as Party with Business-Service. No Mapping just writein gthe idoc to a file I receive an idoc from the R/3 and have to change th