Discussion

Error while trying to save property type from date to datetime, "Definition required to conform"

Exception occurred when trying to save property type  from date to datetime.

Exception : "Definition required to conform to CREATE_DATE instance created 20150825T085155.710 GMT."

Does anyone come across this error ?

Please let me know, how to solve this. any suggestion is valuable to me.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Comments

Keep up to date on this post and subscribe to comments

Pega
May 9, 2016 - 10:29am

Generally you cannot change the property type once you created and saved a property.

Delete the property and create a new with the correct type.

 

regards

dimis

August 19, 2016 - 3:14pm
Response to dimis

Dimis,

We have a property with date type in PROD. Due to BIX extraction issue, we are planning to chaneg the property type from "Date" to "DateTime".

As you mentioned above, do we need to create new property with "DateTime" instead of updating existing property. if yes, do we need to delete the existing proeprty in PROD and deploy the RAP file? Please let us know. We are using Pega 7.1.8 version.

Thank you for your support.

Keerthi

 

May 16, 2016 - 6:55am

 

Pega 7 does not allow change of the property types . While it does support a few property type changes(check out article around this) - the above thing can be solved by making changes to availability.

Assume you are trying to save the same property to higher version with change in property type. Follow below steps

1) Save to higher version.

2) Make availability withdrawn & click on save.

3) Change the property to datetime & click on save.(will throw no error)

4) Check-in

5) Checkout & change the availability to yes.

6) Checkin the rule & you are good to go.

Please note that it is not a best practice to change property types. It might severely impact your application if done without due caution.

January 22, 2017 - 7:55pm

Hi,

I'm facing a similar issue related to a data table property while changing the property type from Integer to Text for some business requirement.

The above approach is not working in Pega 6. Do we have any other approach in Pega 6 ?

January 23, 2017 - 7:29am

Do a save as of property in one version and mark it withdrawn

Create the same property with same name in +1 version and make it available

Make sure you are deploying both versions in one go.

Thanks,

Vishal