Closed smacharacek closed 3 months ago
Hello! Apologies for the delay in responding, I will look at this when I start work again tomorrow.
I think the issue here is caused by the project you're writing not having an explicit value for its Unique ID (i.e. projectProperties.getUniqueID()
). This is handled everywhere else when writing an XER file by supplying a default value, but this wasn't handled when writing UDF value assignments. I've refactored the code to address this, the changes will be in the next release. I think you can work around this for now by manually setting the default value for the project Unique ID (e.g. projectProperties.setUniqueID(1)
).
Thanks Jon, the provided fix solved the issue.
We get NPE when exporting project to P6 XER format. Stacktrace:
(stacktrace is from v 12.10.2. but I run into the issue for fk_id being null also in 13.1.0)
The UDF value for project does not have "fk_id" since this method
passes entityId value
null
(It's called fromwriteProjectUdfValues()
) method.Project UDF is created in our code as follows: