Logging a custom StepType Property
I followed the "Logging a New Step Property to a Database in TestStand" description but I get this answer back: An exception occurred calling 'LogResults' in 'ITSDBLog' of 'DBLog 1.0 Type Library'
An error occurred while setting a column value.
Schema: Copy of Generic Recordset.
Statement: STEP_RESULT.
Column: String.
Unknown variable or property name 'String'.
Source: TSDBLog
How do I log these custom types?
Hi Clausen,
*Note: The following information only applies to TestStand 2.0.x and later.
This error is being caused by the setup of your database schema not having a valid property name to be logged for the "String" column of the "STEP_RESULT" statement. If you look in your database schema under the STEP_RESULT statement and select the String column under the Columns/Parameters tab the "Expression" box probably contains a lookup string equal to -> String. This is the exact "unknown variable or property name" that is causing the problem. You need to have a property name that begins with "Logging.StepResult.*" in order to specify a valid lookup string for the logging process/schema. For instance if this String property of yours has a lookup string of "Step.String" the lookup string to use in the database schema would be "Logging.StepResult.String". If the property is inside another step property that is a container, like "Step.MyData.String", then you would use "Logging.StepResult.MyData.String". The one exception to this container rule is that if the property is in the "Step.Result" container, as "Step.Result.String", then you would use the lookup string "Logging.StepResult.String" (this is caused by the fact that the Logging property is pulled directly from your sequence execution's "Locals.ResultList" array and properties under Step.Result are extracted from the Result container and placed in ResultList as top level properties. For example, Step.Result.String gets copied into Locals.ResultList[n].String, where "n" represents the array index of the step result you want to modify.
The main thing to also realize, is that this step property has to be copied to your sequence's Locals.ResultList array during execution as well, because only properties within the ResultList will be passed to the logging process. There are basically 3 different ways to do this.
1) Use the Execution.AddExtraResult method (Check the TestStand Programmer's Help for further information. You can see an example of its use within the Sequential ProcessModel's Test UUTs execution entry point as well).
2) Put the property you wish to record into the ResultList in your step's "Step.Result" container, as every property within Step.Result is automatically copied into the ResultList at run-time by the engine. You can place your property in the Result container as the default location for the property within the definition of the custom steptype, or you can use any one of the PropertyObject.SetVal* API methods to programmatically insert a new property into the step's result container at run-time by using the method's "InsertIfMissing" option (note that if you do this it needs to occur before the step executes, or else it won't be copied into the ResultList).
3) You can also use the PropertyObject.SetVal* methods to insert a new property directly into the ResultList using the InsertIfMissing option AFTER the desired step has executed. For instance, you could specify the lookup string "Locals.ResultList[n].String" when using these methods.
Jason F.
Applications Engineer
National Instruments
www.ni.com/ask
Similar Messages
-
How to use search REST api to get custom managed property data for anonymous user?
I am trying build a public portal with anonymous access and i am trying to read some
content from custom managed property using search REST api in sharepoint 2013. I have tried to enable all possible attributes of the managed prop. Like searchable,queryable,safe etc. also i am including queryparametertemplate in my REST api search query. But
still i am not able to retrieve the managed prop. For an anonymous user. The same query returns the value if i am logged in.
Any Help is greatly appreciated.
Thanks,
Rakesh
Thanks, RakeshHi Rakesh,
To enable anonymous Search REST queries, we need to create queryparametertemplate.xml and upload it to the correct library in SharePoint.
From your description I can know that you have created the file, then I recommend to check the things below:
Please use “QueryTemplatePropertiesUrl” instead of “queryparametertemplate” in the Search REST API query as following: &QueryTemplatePropertiesUrl='spfile://webroot/queryparametertemplate.xml'.
Make sure that the Query Properties you need have been added to the QueryProperties element in the queryparametertemplate.xml file.
Make sure that the query parameters you need have been added to the WhiteList element in the
queryparametertemplate.xml file. For example, if you want to use Refiners in the REST API, then the Refiners should be added to the
WhiteList element in the queryparametertemplate.xml file as following:
<a:string>Refiners</a:string>.
You can also debug setting properties in anonymous Search Rest queries following the link below:
http://www.mavention.com/blog/debugging-setting-properties-anonymous-search-rest-queries
More references about anonymous Search REST:
http://blog.mastykarz.nl/configuring-sharepoint-2013-search-rest-api-anonymous-users/
http://msdn.microsoft.com/en-us/library/office/jj163876%28v=office.15%29.aspx#bk_AnonymousREST
Thanks,
Victoria
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Victoria Xia
TechNet Community Support -
Security Exception while using Custom Entity Property Manager
Hi,
I am using Portal 7.0 UUP example (specified in dev2dev.com site) to implement
custom entity property manager.
It all works fine using Portal 7.0 admin tool.
Now I am proving the same concept by writing java code to insert record in UUP_Example
table.
This is the code I am writing in my class
UserManager userManager = getUserManager(); (calling method to get Remote Interface
of UserManager).
ProfileWrapper pw = userManager.createUser(identifier,password,"User");
MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
method to get remote interface of MyEntityPropertyManager)
long num=myEntityPropertyManager.createUniqueId(null,identifier);
pw.setProperty("UUPExample","word1","mike_headen");
Code gets compiled successfully but when I execute these statements, following
run time exception occurs:
EJB Exception: ; nested exception is: java.lang.SecurityException: Users can only
be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
This problem comes while executing last statement i.e
pw.setProperty("UUPExample","word1","ajay_dogra");
I know I am missing something here. Any guidance will be highly appreciated.
Thanks
MikeMike,
You approach is wrong and you have to code your program in a different way to
get rid of this problem.
Here, you are trying to update User property using pw.setProperty() even before
authenticating and logging in the user.
Why you are getting this error becuase user is not logged in and u are trying
to update the user property.
These are the steps you need to perform to update/insert user properties at the
time of login.
1. createUser(using usermanager.createUser).
2. Authenticate user(Authentication.login(identifier, password, req);
3. Initialse the profile in session
ProfileWrapper profile =
ProfileFactory.getProfile(identifier, null);
4. Fire UserRegistrationEvent and Session Login event.
5. Update user property using profilewrapper.setProperty.
Hope this helps,
You can either perform these steps in java or can use the usemanager custom tag
in ur JSP.
Thanks
Sanjay
Thanks
Sanjay
"Mike" <[email protected]> wrote:
>
Hi,
I am using Portal 7.0 UUP example (specified in dev2dev.com site) to
implement
custom entity property manager.
It all works fine using Portal 7.0 admin tool.
Now I am proving the same concept by writing java code to insert record
in UUP_Example
table.
This is the code I am writing in my class
UserManager userManager = getUserManager(); (calling method to get Remote
Interface
of UserManager).
ProfileWrapper pw = userManager.createUser(identifier,password,"User");
MyEntityPropertyManager myEntityPropertyManager=getMyEntityPropertyManager();(calling
method to get remote interface of MyEntityPropertyManager)
long num=myEntityPropertyManager.createUniqueId(null,identifier);
pw.setProperty("UUPExample","word1","mike_headen");
Code gets compiled successfully but when I execute these statements,
following
run time exception occurs:
EJB Exception: ; nested exception is: java.lang.SecurityException: Users
can only
be modified by themselves, or by a member of the role DelegatedAdminRole||SystemAdminRole.
This problem comes while executing last statement i.e
pw.setProperty("UUPExample","word1","ajay_dogra");
I know I am missing something here. Any guidance will be highly appreciated.
Thanks
Mike -
»/var/log/OSInstall.custom« missing in Lion
Hi Community,
in Snow Leopard it was possible to determine the original installation date of the system in the file /var/log/OSInstall.custom but this file isn't there in Lion. Is there another way to determine the installation date in a terminal in Lion and above?
Thanks & bye TomI've made a modification to the query to NOT contain a WHERE clause, and am now trying to specify the full WHERE clause as follows...
public void setILaudit1BindVars(String transordnum, String shipmentnum)
System.out.println("***In setBindVars*****");
String whereclause = "TRANSORD_NUM like '" + transordnum +
"' and SHIPMENT_NUM like '" + shipmentnum + "'";
System.out.println(" " + transordnum + " " + shipmentnum);
System.out.println(" " + whereclause);
ViewObject vo = findViewObject("ILaudt1VbyOrdShp");
vo.setWhereClause(whereclause);
vo.executeQuery();
It appears to me that this formatting is working correctly...
Jan 25, 2005 9:07:15 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
05/01/25 09:07:28 ***In setBindVars*****
05/01/25 09:07:28 CSWP29153A00% 0001365753%
05/01/25 09:07:28 TRANSORD_NUM like 'CSWP29153A00%' and SHIPMENT_NUM like '0001365753%'
Jan 25, 2005 9:07:30 AM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.taglib.html.LocalStrings', returnNull=true
AND I'm actually seeing my queryResults screen being displayed, however, it's starting at the beginning of the table, without the WHERE clause applied.
The method setILaudit1BindVars is referenced as the executeQuery form bean's MethodName property.
Any suggestions as to where my disconnect is? -
Best practice for customizing EJB property after deployment
Hi Gurus,
What is the best practice for customizing EJB property after deployment in NW7.1? I have a stateless session bean and it needs to get some environment information before acting. While the information can only be known at runtime. What should I do to achieve it? I thought I can bind the property with a JNDI context but I did not find out where to declare and change the context value. Please advise. Thanks.
B.R.Hi.
I have a similar problem. But I still can not edit the properties of the ejb-jar.xml.
I tried to stop the web service, but the properties still remain unmodifiable.
Could you advise me how to change them?
We have installed SAP Server 7.0.2 -
How to map a custom enum list to a custom form property in an extended incident class
Hi,
I'm struggeling to understand how to map a custom enum list to a custom form property in an extended incident class.
Here's what i want to have happen:
I am going to publish a request offering on my SMPortal for allowing users to submit basic IT incidents. I want the form to include "Whom does this problem affect" (answers(This is the custom enum list): Me, Multiple Users, Whole department or Whole
company), "What is the problem about", "Description" and "Attachments".
Here's what i've done:
In the authoring tool i created a MP for the custom enum list and put only the list in it. I sealed the MP and imported it.
I created another unsealed MP called TST.Incident.Library for storing incident library customizations and extended the incident class to add an extension class i called ClassExtension_Affected scope with a custom property i called AffectedScope. Then i am trying
to set the datatype of this property to "list". In the "select a list" dialog i cannot chose my previously sealed MP with the custom enum list in it. Why?
- Do i need to scratch the sealed MP and put the custom enum list in the latter TST.Incident.Library MP instead?
- If so, can i do that and keep this MP unsealed, or will i get an error on import saying "Unsealed management packs should not contain type definitions"
- Should i create one sealed MP for both the custom enum list and the extension class + custom property?Hi,
Authoring Tool simply isn't informed about your list. Open the sealed management pack where you define the root of the list in the Authoring Tool and in the same time open TST.Incident.Library. You will have two opened MPs in the Authoring
Tool and be able to add a custom list for your custom field.
Cheers,
Marat
Site: www.scutils.com Twitter:
LinkedIn:
Facebook: -
JMS event generator extract custom jms property
[cross posted from integration.interest - this seems the correct place to post]
Hi, I was looking for a way to enable a workflow/process to extact a custom jms property that is send with a jms message to the jms event generator.
So the client inserts name/value pair inside the jms message, the event generator picks up the message and starts a workflow. How can I extract that custom name/value pair once inside the workflow/process ?
TIAHey can u tell me the solution for this problem.....I am also facing similar problems......Help is appericiated....
-
In Solution Explorer we can set the Custom Tool property for a t4 Template file in the Properties window. But can anybody help me doing the same at run time?
I want to assign the value TextTemplatingFileGenerator programmatically to the Custom Tool Property.
Thanks in advance...Hi suraya,
Since the issue regards MVC and website deployment. I suggestion you post the question in the ASP.NET forums at
http://forums.asp.net/. It is appropriate and more experts will assist you.
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. -
Logging.StepResult.TS.StepType for NUmericLimitTest is NULL
I'm using TestStand's build in logging feature to write results to a database. My problem is that the "name" field of the MEAS_NUMERICLIMIT table is empty for test steps that are of the type "NumericLimitTest". I want this set to the name of the test step in this case but all the variables that should have the name are set to NULL for a NumerLimitTest. These include:
NameOf(Logging.StepResultProperty) (This is the normal value the name field is set to)
Logging.StepResult.TS.StepType
I need two things:
1. The variable containing the name of the step when its a NumericLimitTest type.
2. The variable containing the type of step. Logging.StepResult.TS.StepType can't be used because it's NULL when the test step
is a NumerLimitTest type.
Can someone help?
ThanksMike which database are you logging to? Can you try going into
your statements tab of your database options and selecting
STEP_NUMERICLIMIT and click the down button until it is the last
statement in the schema, and let me know if that makes a difference. If
you're using the default schema, it has two statements that log to the
MEAS_NUMERICLIMIT table. To help TestStand correctly generate automatic
SQL code to create the table in Access, you must list the
Meas_NUMERICLIMIT statement before the STEP_NUMERICLIMIT statement
because the MEAS_NUMERICLIMIT statement has more colums than the
STEP_NUMERICLIMIT statement.
Richard S -- National Instruments --Applications Engineer -- Data Acquisition with TestStand -
hi all,
how to check log of customized reports???
thanks in advance,
Regards,
SiyaAfter reading the 'hints' page, I've decided to re-phrase my question...
I have done my best looking through the threads on the forum, Tim's blog and the Oracle documentation but can not seem to find a decent way to log or audit each report run by a user. Ideally we would like to be able to report or audit a users activity on the system... Information we would like in our audit log is date/time, username, ipaddress/session and a description containing context information such as what report was run and if possible parameters passed in, etc.
We are currently using oracle database 11g, and BI Publisher release 10.1.3.4.
We are not scared of some work, just could really use a good place to start. Could someone please point us in the right direction.
Thanks again for all of your help. Cheers,
Cory -
Standard form :'Customer invoice' and 'customer Invoice : Property Damage'
Hi
Can someone tell me what is the standard form for 'Customer invoice' and 'customer Invoice : Property Damage'.? Is there any config involved.
I'll reward points for any helpful answer.
-NashLB_BIL_INVOICE is the Standard SMARTFORM for Invoice Document
you need to do Output Type/Control configuration(TCode NACE) -
Hi All,
I need the change log for custom fields added in BP transaction codes.
Basically, for tracking the changes of master data in CDHDR and CDPOS tables we will enable the checkbox of dataelement related to custom field.
As for SAP fields in BP transaction code the change history is reflecting in CDHDR/CDPOS tables. i have enabled that for custom fields added to BP transaction code but i could not see the change history for such fields.
Please let us know if iam missing any other thing?Hi Amit Singh,
Apart from clicking the checkbox in dataelement...
There are some settings need to be done by BASIS
and some settings and entries should be made in SCOD t-code
create entriy for change document here..
also hv a look on below links...
http://help.sap.com/saphelp_nw2004s/helpdata/en/2a/fa015b493111d182b70000e829fbfe/frameset.htm
http://help.sap.com/saphelp_erp2004/helpdata/en/db/7a2a40ce93185de10000000a1550b0/content.htm
Custom Table values in CDPOS and CDHDR
scdo
wat do these fields in scdo stand for?
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7 -
Can we pass dynamic cell associated value [of scorecard] as query string parameter in custom hyperlink property of KPI of scorecard in PPS SP2013 , so that we can pass those values to another page
How to get those cell associated values and set these dynamic value as query string parameter in custom hyperlink property of KPI of scorecard in performance point services in sharepoint 2013I could somehow link to the table name, but that can be changed... Any ideas?
Not sure if this will help or not but maybe a little from several areas might point you in the right direction.
If you are concerned about users changing the table name then you can define a name to reference the table and then if the user changes the table name then the Refers to automatically changes to the new table reference but your defined name remains the same.
However, if users want to break a system even when you think you have it bullet proof the users come along with armour piercing bullets.
Example:
Insert a table (say Table1)
Go to Define a name and insert a name of choice (eg. ForMyTab1)
Then click the icon at the right of the Refers to field and select the entire table including the column headers and it will automatically insert something like the following in the Refers to field.
=Table1[#All]
Now if a user changes the table name then Table1 will also automatically change.
Example code to to reference the table in VBA.
Sub Test()
Dim wsSht1 As Worksheet
Dim lstObj1 As ListObject
Set wsSht1 = Worksheets("Sheet1")
Set lstObj1 = wsSht1.ListObjects(Range("ForMyTab1").ListObject.Name)
MsgBox lstObj1.Name
End Sub
Regards, OssieMac -
"Event Viewer cannot open the event Log or Custom view. Verify that the Event log service is running or query is too long. The instance name passed was not recognized as valid by a WMI data provider(4201)"
This error keeps cropping up now and again on most of our domain controllers (OS-2008 AND 2008R2)...Usually a restart fixes the issue however the issue repeats and security logs don't generate.
Any advice on how to fix this issue permanently would be greatly appreciated.Please see this: https://social.technet.microsoft.com/Forums/windows/en-US/95987ca3-a1b2-4da6-95b7-d825d06cdac7/error-code-4201-the-instance-name-passed-was-not-recognized-as-valid-by-a-wmi-data-provider?forum=w7itprosecurity
You can also try rebuilding the WMI repository: http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
This posting is provided AS IS with no warranties or guarantees , and confers no rights.
Ahmed MALEK
My Website Link
My Linkedin Profile
My MVP Profile -
Best practices on how to implement logging in custom application
In the Enterprise Manager it is possible to display/browse the content of different log files generated by the application server modules.
I have some custom web applications which currently use the log4j framework to write to log files. Is it possible to make these log files accesible for the Enterprise Manager ?
Or what is the best practice on how to implement logging in custom applications which can be browsed in the Enterprise Manager (I do not want to use system.out)I thought that this could be done. An ex- colleague did this - but he didn't tell me how to solve this.
But as it just took 10 minutes to solve this I believe it's fairly easy.
cu
Andreas
Maybe you are looking for
-
Iphone 4s is not recognized by my powerbook
I have updated all software, but iphone and powerbook will not sync as phone is not recognized by powerbook. What do I do to correct situition?
-
Trying to download songs on iTunes and it's asking for "my 1st car I owned" and other questions that I never answered. It won't let me download anything til I answer them. Can you help me?
-
Not sure where else I could put this thread. I have a bunch of.avi files that I can't open in Quicktime. I get a error message that says that Quicktime cannot open the movie file. I'm figuring that these files are damaged/corrupted in someway. Any tr
-
Windows 7 will not find my printer that is plugged into my Apple Airport on Bonjour. I have tried the fix of installing it using this method. I just will not show up on bonjour. I can plug a Flash drive into the airport usb and it shows up instantly.
-
HT201317 Missing photos from backup?
I lost my iphone and have just got a replacement. However, when I chose to restore the most recent back up, some of my photos did not download. where can i find the rest of my pictures? I am worried they were not saved!