SMLets Beta 3: Unable to set DateTime for DateTime property using SetSCSMObject
Hello,
I need to set dateTime for my custom fields for Incidents. I wanted to use Set-SCSMObject for that. But it doesn't work. For other field types it is working fine.
May be I'm doing something wrong, but I don't see it. It would be great if anybody is able to help.
This is the command I'm trying to run: (I used CreatedDate for my tests)
Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObje
ct -Property CreatedDate -Value [datetime]"06/08/2011 14:08"
Set-SCSMObject : String was not recognized as a valid DateTime.
At line:1 char:104
+ Get-SCSMObject -Class (Get-SCSMClass System.WorkItem.Incident$) -Filter "ID -eq IR495" | Set-SCSMObject <<<< -Proper
ty CreatedDate -Value [datetime]"06/08/2011 14:08"
+ CategoryInfo : ObjectNotFound: ([datetime]06/08/2011 14:08:String) [Set-SCSMObject], FormatException
+ FullyQualifiedErrorId : Could not assign date ,SMLets.SetSMObjectCommand
Thank you
Oliver
Hello,
You must temporary change locale in your script.
In begin of script you must change locale in "En-Us":
$OldCulture = [System.Threading.Thread]::CurrentThread.CurrentCulture
$OldUICulture = [System.Threading.Thread]::CurrentThread.CurrentUICulture
$culture = New-Object System.Globalization.CultureInfo("en-US")
[System.Threading.Thread]::CurrentThread.CurrentCulture = $culture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $culture
And return locale after script body:
[System.Threading.Thread]::CurrentThread.CurrentCulture = $OldCulture
[System.Threading.Thread]::CurrentThread.CurrentUICulture = $OldUICulture
This has solved my issue. You have no idea how much this has made my day.
I'm in Australia trying to update/create/close incidents to a canadian server. Nothing else has worked so far, except this. The rest of the support/forums on this issue have been crap to say the least.
It would be nice if MS mainlined the SMLets into SCSM and start actually making their product useful
Similar Messages
-
system Windows2003
database Oracle 9
disk space : C(50G)D(80G)E(40G)
"Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.1.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/bootstrap_keydb.xml to: C:/SAPinst ORACLE SAPINST.
INFO 2014-01-26 16:22:47
Copying file C:/DOCUME1/ADMINI1/LOCALS~1/Temp/SAPinst/CONTROL.DTD to: C:/SAPinst ORACLE SAPINST.
ERROR 2014-01-26 16:22:47
FSL-02010 Unable to set time for file C:/SAPinst ORACLE SAPINST/CONTROL.DTD.
ERROR 2014-01-26 16:22:47
FJS-00012 Error when executing script."
who can help me ..please.....Hello Matthew,
You should also change your temp directory to something woth no spaces, something like C:\temp.
Sapisnt sometimes has problems with the spaces in the temp path, and the Universal Installer nearly always
has a problem with this.
Regards,
David -
Unable to set Labelfield for child element in List
Hi All,
Below is code I am trying to execute
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml" verticalGap="0" xmlns:local="*" height="500" creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{list.dataProvider=arr;
]]>
</mx:Script>
<mx:List variableRowHeight="true" wordWrap="
true" id="list" labelField="
chidren.lastName" /></mx:Application>
I basically want to access the children.lastName on my List. Please let me know how exactly can I do it.
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
labelFunction is the best way to do this. The attached code also shows how to do it with an itemRenderer, though that would not be as efficient.
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="horizontal"
creationComplete="init()" >
<mx:Script>
<![CDATA[
private var arr:Array = [{ firstName: "Alex", children:{lastName: "Abc"}}]
private function init():void{
list1.dataProvider=arr;
list2.dataProvider=arr;
private function createLabels(item:Object):String{
return item.children.lastName;
]]>
</mx:Script>
<mx:List variableRowHeight="true"
wordWrap="true" id="list1">
<mx:itemRenderer>
<mx:Component>
<mx:Label text="{data.children.lastName}"/>
</mx:Component>
</mx:itemRenderer>
</mx:List>
<mx:List variableRowHeight="true"
wordWrap="true" id="list2"
labelFunction="createLabels"/>
</mx:Application>
If this post answers your question or helps, please mark it as such. Thanks!
http://www.stardustsystems.com
Adobe Flex Development and Support Services
EIS error - "Unable to set locale for GlobalC"
Hello all!
I'm working with Oracle Performance Scorecard and Oracle Integration Services to generate an Essbase cube. I'm not able no generate my cube from HPS even it doesn't showing any error in the screen but in the HPS log it shows the error message "Unable to set locale for GlobalC". So, i've noticed that the problem isn't with HPS, but EIS. I decided start the EIS shell (olapicmd.exe) and the same error message was showed in the cmd prompt. Could anyone help with this issue?
Regards,
Rafael
Hello!
I've opened a SR on Oracle support. They said that EIS doesn't work on 64 bits machine
At.
Rafael
Please help: unable to set preferences for planning from workspace.
Hi Experts,
unable to set preferences for planning from workspace.(file--->preferences----->planning), when doing this task prompts " An Error occured" preferences works fine with other components IR, FR, WEB ANALYSIS.problem is only with the planning.
1) i restarted the workspace and planning services but even then the same issue.
Please help me out on this issue.
Thanks.
Hi,
Do you get the same problem if you access planning directly ? http://<planningmachine>:8300/HyperionPlanning/
Just trying to understand if it related directly to planning and maybe you will get a different error message.
Cheers
John
http://john-goodwin.blogspot.com/
Unable to set a top-level property object
Hey guys
I've made a little sequence to fetch data from a XML file. In that XML file, there is some informations (entries) (IP addresses, port numbers, etc) about 4 different types of devices(sections are the devices names). The first section of the XML tells me the NAMES of the devices I have to configure. The type of each device is located in the entries of each device. Each device has its own information and I can have more than one device of a type. In teststand, I've created custom data types (containers with empty fields) for each type of device I need.
I want to dynamically create the devices that the XML file tells me to configure as fileglobal variables and populate them with their own config informations (entries of the XML file). I'm creating new fileglobal of the type I want using PropertyObject step and I'm creating an alias of that fileglobal that I'm passing in parameter to a subsequence who's getting infos from XML. Here, everything is OK.
The problem occurs when I want to configure 2 or more objects of the same type. At the SetProperty step (where i'm creating the fileglobal variable) teststand gives me the error:
"Unable to set a top-level property object to another object. Error accessing item 'Parameters.DeviceToInitStruct'."
Is there any ways to avoid that problem and creating to variable of the same type ?
thanks
Hi
I finally got rid of that problem.
Instead of using a PropertyObject.Clone step, I used a statement who's just copy the "MasterObject" into a "CloneObject" and i'm working with that copy. So the sequence can now create devices of the same type without any conflict with the first device.
i'll post here a short example to show how i did... maybe it'll be useful for someone...
regards
NSInvalidArgumentException : Attempt to set value for immutable property
I get "An unexpected error has occurred. Please quit and reopen Keynote." EVERY time I try to copy a slide and change the master that controls it. Console says "Exception caught by top level: NSInvalidArgumentException : Attempt to set value for immutable property moviePoster." I'm not using any 3rd party themes. Advice from anyone?
You can use the skip property of the train stop. You can have an EL expression for it, some thing like this #{pageFlowScope.isContinueEnabled}.
Once all the mandatory fields are entered, you can set the isContinueEnabled flag and refresh the train button bar.
For more info refer this: http://docs.oracle.com/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#CJHFBFIE
Also, you can try navigating to different train stops programmatically.
Check: 082. How-to programmatically navigate ADF train models
in http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html
How to set value for Dropdown control using Querystring filter wepart
Hi,
I have a dropdown in my customized list form and need to set the value for the dropdown control using query string filter web part.
I am able to set value for textbox control using Query String Filer web part.
But, since the dropdown values are not populated on form load, the value is not set for dropdown control.
How to load the values in dropdown control on form load and set a value using Query String filter webpart?
Thanks,
dhijit
Hi,
According to your post, my understanding is that you want to filter choice field using Query String Filter web part.
To filter using query string filter web part, we can set the default value for the choice field in the query string filter web part panel as below, then connect to the list.
Now it would be filter by the value you have set.
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support
Unable to set parameters for "Act as Prox" in OBI11g
Hi Gurus,
following Mark Rittman's blog I was able to set parameters and I could use this feature in OBI10g.
However, in OBI 11g I was not able.
1. In the init block of Proxyblock I am not able to add SET_RUNAS to Execution Precedence
The Add button is inactive.
2. In the init block of Proxylevel I am not able to add Proxyblock to Execution Precedence .
Only the SET_RUNAS available.
What to do?
Any ideas and help are appreciated!
Thanks
Laszlo
Hi Laszlo,
Check this,
Re: Unable to select Connection pool when creating init block for current_month
Regards,
Dpka
Unable to set count for Select Query for BizTalk SQL receive port
Hi All,
Iam using BizTalk server 2009 classic SLQ adapter (using XML clause)for my integration to pull records from DB in to my application.
As per the DB values iam unable to set the record count as this started giving me error below (first it worked for 820 records with select Query.and then 400 and going down with respect to multiple runs).Kindly help .
Thanks in advance.
Hi Abhishek,
iam still getting the same error for 1000 records.
after turning off PreserveBOM aswell in send pipeline.
There was a failure executing the receive pipeline: "Microsoft.BizTalk.DefaultPipelines.XMLReceive, Microsoft.BizTalk.DefaultPipelines, Version=3.0.1.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" Source: "Pipeline " Receive Port:
"SQLPort" URI: "SQL://XXXXX/OneC_DB/" Reason: An error occurred when parsing the incoming document: "'
', hexadecimal value 0x0B, is an invalid character. Line 188, position 3944.".
Unable to set mailbox forwarder within ECP using Internet Explorer
We seem to have an issue that has developed where using Internet Explorer we are now unable to set a mailbox forwarder within the ECP.
When we use Internet Explorer 11 the following is used to discover the issue:
1. Under mailboxes select any recipient, click "mailbox features" > and under Mail Flow click "View details"
2. Click "Enable forwarding" > "Browse" and then select and recipient you want to forward ail too.
3. Once you click on "Ok" it will be observed that the field in IE is blank account to forward to is not there.
We have tried rebooting the CAS already in case something was cached but this did not help resolve the issue.
We have noticed that if you open the ECP and repeat the steps in Firefox or Chrome the issue is not there. This is happening on all our machines in the domain and says to me it is an IE issue rather than Exchange maybe.. Does anyone know what might be causing
it?
Our environment is Windows Server 2012 R2, Exchange 2013 CU6
Hi,
After installing update 3008923, some web application modal dialog boxes may not work correctly in Internet Explorer 11. Now there is an update to resolve this issue.
For your reference:
Some web application modal dialog boxes don't work correctly in Internet Explorer 11 after you install update 3008923
https://support.microsoft.com/kb/3025390
Hope this can be helpful to you.
Best regards,
If you have feedback for TechNet Subscriber Support, contact
[email protected]
Amy Wang
TechNet Community Support
Unable to update Qty for outbound Delivery using BAPI_OUTB_DELIVERY_CHANGE
Hi Experts,
I am unable to update the Outbound Delivery quantity using FM BAPI_OUTB_DELIVERY_CHANGE. I am getting error in BAPI Return "Error in document &1 item &2 (quantity consistency check)".
Here is my sample program to update Quantity
*& Report ZTEST_BAPI *
REPORT ZTEST_BAPI .
tables : lips.
parameters : v_vbeln like likp-vbeln,
v_posnr like lips-posnr.
data : it_item type BAPIOBDLVITEMCHG occurs 0,
wa_item type BAPIOBDLVITEMCHG,
it_return type BAPIRET2 occurs 0,
i_head type BAPIOBDLVHDRCTRLCHG,
i_hdata type BAPIOBDLVHDRCHG,
wa_conf type BAPIOBDLVITEMCTRLCHG,
it_conf type BAPIOBDLVITEMCTRLCHG occurs 0.
start-of-selection.
select single * from lips into lips where
vbeln = v_vbeln
and posnr = v_posnr.
if sy-subrc eq 0.
move lips-vbeln to I_hdata-DELIV_NUMB.
*append wa_hdata to i_hdata.
move lips-vbeln to wa_item-DELIV_NUMB.
move lips-posnr to wa_item-DELIV_ITEM.
move lips-matnr to wa_item-MATERIAL.
move lips-charg to wa_item-BATCH.
lips-LFIMG = lips-LFIMG + 20.
move lips-LFIMG to wa_item-DLV_QTY.
move lips-LGMNG to wa_item-DLV_QTY_IMUNIT.
move lips-VRKME TO wa_item-SALES_UNIT.
MOVE 'KGM' TO WA_ITEM-SALES_UNIT_ISO.
MOVE LIPS-MEINS TO WA_ITEM-BASE_UOM.
MOVE 'KGM' TO WA_ITEM-BASE_UOM_ISO.
append wa_item to it_item.
move lips-vbeln to wa_conf-DELIV_NUMB.
move lips-posnr to wa_conf-DELIV_ITEM.
move 'X' to wa_conf-CHG_DELQTY.
append wa_conf to it_conf.
endif.
CALL FUNCTION 'BAPI_OUTB_DELIVERY_CHANGE'
EXPORTING
HEADER_DATA = i_hdata
HEADER_CONTROL = i_head
DELIVERY = v_vbeln
TECHN_CONTROL =
TABLES
HEADER_PARTNER =
HEADER_PARTNER_ADDR =
HEADER_DEADLINES =
ITEM_DATA = it_item
ITEM_CONTROL = it_conf
ITEM_SERIAL_NO =
SUPPLIER_CONS_DATA =
EXTENSION1 =
EXTENSION2 =
RETURN = it_return
TOKENREFERENCE =
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
I need to update Qty to the outbound delivery for an given item.
Thanks for your quick response.
With Regards,
Bala Sankar
9900433488
Hi Bala,
make sure you are setting...
itemdata-dlv_qty
itemdata-dlv_qty_imunit
itemdata-fact_unit_nom e.g = 1.
itemdata-fact_unit_denom e.g = 1.
Rgds
Glenn
Setting OOF for other users using EWS
Hello everyone,
I try to set the OOF for other users using EWS in an Exchange 2010 SP2 environment.
I use this code:
ExchangeService service = new ExchangeService(ExchangeVersion.Exchange2010_SP2);
service.Credentials = new NetworkCredential("username", "password", "domain");
service.TraceEnabled = true;
service.TraceFlags = TraceFlags.All;
service.AutodiscoverUrl("[email protected]");
OofSettings OOFSettings = new OofSettings();
OOFSettings.ExternalAudience = OofExternalAudience.All;
OOFSettings.ExternalReply = "Test";
OOFSettings.State = OofState.Enabled;
service.SetUserOofSettings("[email protected]", OOFSettings);
The account I use is a Service Account our Exchange Team set up. I can see all service properties, so I would assume that the connection to the ExchangeService works fine.
However when SetUserOofSettings executes, I receive a ServiceResponseException “Connection did not succeed. Try again later”.
What am I missing? Unfortunately, the error message does not provide any helpful informations.
Thank you and best regards
Julian
>The account I use is a Service Account our Exchange Team set up. I can see all service properties, so I would assume that the connection to the ExchangeService works fine.
What rights have they given the account, giving an Account Exchange Admin permissions won't give you any rights to access the Mailbox content. For this to work the account you using would need to be either have been granted Full Access via Add-MailboxPermission
or been given Application Impersonation rights (if its the later you need to make sure you use impersonation in your code).
I would suggestion you try using the EWSEditor
http://ewseditor.codeplex.com/ to test this out eg try connecting to the users folders and then try the OOF operation via the EWSEditor option to see if this works.
Other things to check is if this is a Brand new mailbox that has never been connected to before then the Mailbox folders won't be initialized (you can check this using Get-Mailboxstatistics) and you would get an error trying to perform any of
the EWS operations. If it works on some users and not others the possibly your getting throttled.
Cheers
Glen
Computer keeps Configuring and setting up for first time use
I have a toshiba A505-S6980 that has been working fine for a couple years. Recently I had performance issues and suspected virus, spyware so I did a recovery with the original discs I made when I first got the computer. Four of the six discs reloaded fine. It did not ask for the last two discs "Environment 64 bit and Applications and Drives. I also have a System Repair disc. After loading the four recovery discs the computer now keeps recycling between preparing for first time use, configuring system, reboot and then back to preparing for first time use,etc. I think I'm close to getting this, but need a last bit of help.
Thanks
It's been a couple days since you posted this problem. Did you get anywhere, or are you still stuck in that loop? If it's still stuck, you may just want to perform the recovery again.
- Peter
Unable to set CLASS_PATH for j2ee.jar
Hello all,
I have a peculiar problem. I have included the j2ee.jar path in my XP Home Edition environment variable, but javac is unable to get packages from there. I have echo-ed the CLASS_PATH in DOS command prompt and it reports the correct path of j2ee.jar. What's amazing is that when I type the full javac command with -classpath option (javac -classpath ____/j2ee.jar *.java) everything compiles well. I am lost here. Does someone here has a solution to this?
Thanks for your help in advance.
With XP, I had the same problem even if I had CLASSPATH. AFter lot of headbreaking I realized my J2EE_HOME and JAVA_HOME were part of user variables in the environment. But CLASSPATH I defined in the System variables and CLASSPATH was set with %J2EE_HOME%\lib\j2ee.jar which was the culprit. Once I moved the J2EE_HOME from user variables to system variables ..lo behold ..it was working and I did not have to substitue the j2ee.jar on the command line.
Maybe you are looking for
-
Unable to download iTunes 10.7 on my Macbook, hence, cannot use my iphone 5. How could I upgrade my OSX?( apart from buying a new Macbook, thx)
-
Itunes 11.1.4.62 now screen resolution problems
downloaded itunes 11.1.4.62 now screen has resolution problems
-
Bapi to create quality notification with inspection lot and defects of char
Hello experts, Can any body tell me how to create notification using inspection lot. regards Narendranath Reddy
-
A virus was put into my laptop last Thursday and I have lost all of the songs I purchase from iTunes. Can you help me recover the nearly 230 songs I purchase from iTunes? <Personal Information Edited by Host>
-
audio plays on .mov files shot on iphone, but vid doesn't play or skips. I'm using XP--uninstalled itunes and QT, reinstalled and have QT set for safe mode. I can play the vids on my ipod, but not the hard drive. MPEG-4 files play fine. ideas? thank