_Category I cannot change manually

_Category I cannot change manually

Anonymous
Not applicable
847 Views
2 Replies
Message 1 of 3

_Category I cannot change manually

Anonymous
Not applicable

Hello,

 

I have made some changes in the method "GetNewFileName" and I want to change the _Category of a new file manually. I assign the prop _category manually but Vault always put the "Base" Category for the new file...

 

$Prop["_Category"].Value = "Software_pasarela"

The file is created with all the properties correctly excepts the _category. 

 

I am using Vault 2019 with DataStandard (customized)

 

Any idea of how to solve this?

 

Thank you,

0 Likes
848 Views
2 Replies
Replies (2)
Message 2 of 3

wangdu
Collaborator
Collaborator

Hi,

Give a look at the Vault rules.

Otherwise check the log file in the C:Temp folder. 

Wangdu

 

coolOrange

www.coolorange.com

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Hello,

 

I forgot to say that I have removed the default combobox "Categories" because I will assign the category manually. I have opened the log 

 

2019-08-14 09:02:58,601 [1] ERROR CreateObject.DsXmlLoader - System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
   en CreateObject.DsXmlLoader.<>c__DisplayClass7_0.<GetOrCreateDynamicPropertiesXElement>b__0(XElement x)
   en System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source, Func`2 predicate)
   en CreateObject.DsXmlLoader.GetOrCreateDynamicPropertiesXElement(XElement rootElement, String categoryName, String entityType)
2019-08-14 09:02:58,606 [1] WARN  CreateObject.DsXmlLoader - SaveCategoryPropertiesToXmlFile(): Failed to write properties for category '' in VaultDynamicProperties.xml: Referencia a objeto no establecida como instancia de un objeto.

I think the problem is the line "Failed to write properties for category ' '  ".

 

I assign manually the prop _Category but for some reason if the combobox "Categories" doesn't exist the property cannot be assign...

 

Thank you,

 

0 Likes