Project and Portfolio Management Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

Command not working.

Highlighted
Mahen M
Honored Contributor

Command not working.

Hi,
I am having 2 commands defined in a execution workflow Step.

Command 1 :
ksc_store REQ.KNTA_PROJECT_NAME ="[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]", "[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]"


Command 2 :
ksc_store PRJ.PROJECT_NAME ="[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]" , "[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]"


Log file :
KSC Store

Source Command: WI Initial Values

REQ.KNTA_PROJECT_NAME="152734 - Mahendran tesr Apr 1 - 2", "152734 - Mahendran tesr Apr 1 - 2"
The following Command Step is not subject to timing out: com.kintana.core.server.execution.CLStoreCommand

KSC Store

Source Command: Project Name

PRJ.P.PROJECT_NAME="152734 - Mahendran tesr Apr 1 - 2", "152734 - Mahendran tesr Apr 1 - 2"
ERROR while setting token.
The token attempting to be stored is invalid. Please verify that the token name is correct. (KNTA-10234)


Command 1 works perfectly fine, but command 2 does not.

I know ksc_store does not work for system defined tokens. I am not sure how to define a token is system defined.

ksc_store works for 'REQ.KNTA_PROJECT_NAME' but it does not work for 'PRJ.PROJECT_NAME'. Can anyone throw more lignt on this?

Regards,
Mahendran M
10 REPLIES
Erik Cole
Honored Contributor

Re: Command not working.

Mahendran,

My understanding is that

REQ.KNTA_PROJECT_NAME = project name

PRJ.PROJECT_NAME = work plan name

Are you trying to set the work plan name? Depending on your context, you may need to further qualify the token...
Mahen M
Honored Contributor

Re: Command not working.

Hi Erik,
Yes, I need to modify the workplan name too.
Could you kindly advice me how to do that?

Basically I am trying to prefix the request ID before the Proposal Name(Project) so that it will be easy for people to search the tasks in Timesheets.

Thanks in advance.

Regards,
Mahendran M
Erik Cole
Honored Contributor

Re: Command not working.

Maybe try something like

[PRJ="[PRJ.MASTER_PROJECT_ID]".PROJECT_NAME]
Mahen M
Honored Contributor

Re: Command not working.

I am getting errors, It is telling the token name is wrong.


[PRJ="[PRJ.MASTER_PROJECT_ID]".PROJECT_NAME]", "="152746 - Mahendran Test werter"
ERROR while setting token.
The token attempting to be stored is invalid. Please verify that the token name is correct. (KNTA-10234)


Are you sure whether we can apply ksc_store in this Token? Please advice.

Regards,
Mahendran M
Erik Cole
Honored Contributor

Re: Command not working.

No, I'm not sure.

If you pasted this directly from your command, it looks like you have

", "

right before the = that doesn't belong...?
Mahen M
Honored Contributor

Re: Command not working.

Hi Erik,
Please find my command which I have entered.

ksc_store [PRJ="[PRJ.MASTER_PROJECT_ID]".PROJECT_NAME] = "[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]"


But this time I am getting a new error.

An error occurred during command parsing.
(KNTA-10127) Invalid argument to ksc_store: Expecting -dateFormat in place of =

Failed


Please help me.

Regards,
Mahendran M

Re: Command not working.

Hi Mahendran,

I don't know if it'll work.
But if you want to store a token, you have to use the token name, not the token value.
So remove the outer brackets and give it a try.

ksc_store PRJ="[PRJ.MASTER_PROJECT_ID]".PROJECT_NAME = "[REQ.REQUEST_ID] - [REQ.VP.KNTA_PROJECT_NAME]"


Kind regards,
Michael
Mahen M
Honored Contributor

Re: Command not working.

Mike,
Still I get the same error


An error occurred during command parsing.
(KNTA-10127) Invalid argument to ksc_store: Expecting -dateFormat in place of =

Failed


Is the date has to do anything here?

Also Is the command correct? Will it update this particular field?

Regards,
Mahendran M
Erik Cole
Honored Contributor

Re: Command not working.

I hadn't thought of this, but Michael's post makes me think you cannot use an explicit entity token as a token name in ksc_store...
Mahen M
Honored Contributor

Re: Command not working.

Ok, Thank you Erik. My requirement is to just prefix the Request ID before the Workplan Name. I am doing this for easier Task search in Time sheets. I am able to change the field 'Project Name', but I am not able to do for Workplan.

If anyone becomes aware of how to do it, Kindly advice me.

Regards,
Mahendran M
//Add this to "OnDomLoad" event