I am new to working with webjects and am trying to use the Create-Objects webject to create a Customer Experience object in Windchill. I am using Windchill version 11.1 M020.
I created a simple webject to start with and am executing it as a task from the browser. The code for the task is below:
Solved! Go to Solution.
Hi @cmhaka
The point is if the Customer Experience object is supported to be created by the ie:webject
the error "A persistence error occurred." mean that the object can not be saved in the database.
There are many reasons for that error.
wrong type, wrong attributes, wrong user, wrong syntax of values, wrong access in the system, internal error and many more.
I would start with debugging the log files in the Windchill .
PetrH
Hi @cmhaka
The point is if the Customer Experience object is supported to be created by the ie:webject
the error "A persistence error occurred." mean that the object can not be saved in the database.
There are many reasons for that error.
wrong type, wrong attributes, wrong user, wrong syntax of values, wrong access in the system, internal error and many more.
I would start with debugging the log files in the Windchill .
PetrH
Thank you for your feedback @HelesicPetr. I will check the logs to see if I can find additional information there.
Hello @HelesicPetr ,
I did find in the log files that the Name and Number attributes were coming in as null values and that was preventing the object from being created. I modified my webject to include those and was able to successfully create the Customer Experience object. I did find that the object created did not show the full structure in the Windchill interface. Only the attributes that I populated in the webject showed in the interface at all. I am currently researching how to create the object using the Windchill REST services to see if that would be a better path to go.