Hi Everyone,
I had written a arsxml program to add the application into cmod and I gave a property to override the expiration date in application.
But when I am running the program, getting the following error.
"The expirationDate attribute of the 2000 object is not valid when the dataType attribute has a value of 'Load'"
I am able to manually edit the application to change the expiration date via ondemand administrator.
Arsxml code :
<?xml version="1.0" encoding="UTF-8" ?>
<onDemand xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="ondemand.xsd">
<application name="TESTAPP" description="TEST APP" appGroup="TESTAG" identifier="TEST" dataType="Line" indexer="OS/390" dataCompression="OD77" largeObject="false"
size="100" pageIdentifiers="false" printAmount="All Pages"
defaultPrinter="*NONE" expirationDate="2000" usePreview="false">
.
.
</application>
</onDemand>
Could anyone please help me to resolve this issue.
Your Application Group needs to be configured for an Expiration Type of "Document" if you're going to set the expiration date on individual documents in a load.
I think there's a section on Expiration Type in the "OnDemand Guide" Redbook: http://CMOD.co/guide
-JD.
Hi JD,
I tried by changing the expiration type to Document. But, still unable to ingest. Please refer the error below :
"The expirationDate attribute of the 120 object is not valid when the dataType attribute has a value of 'Document'."
Could you please help here.
Someone can correct me if I'm wrong but I don't think expirationDate is valid under the application object. That's defined in the applicationGroup object.
Hi Greg,
Kindly refer the below URL for the data model to create application objects using ARSXML. Here, I could see the attribute expirationDate and its values.
http://www.ibm.com/support/knowledgecenter/SSQHWE_8.5.0/com.ibm.ondemand.administeringzos.doc/dodob003.htm
Please correct me if it requires any other parameters to be added.
Also, to add, I can able to see the expirationDate attribute in the exported application object.
Thanks
Ahh, I see that. I was looking at the 9.5 manual. Is your OnDemand kept up to date? I do see a very old 8.5 APAR pointing to a similar issue:
http://www-01.ibm.com/support/docview.wss?uid=swg1PM69840 (http://www-01.ibm.com/support/docview.wss?uid=swg1PM69840)
Which CMOD version are you using (full version number, with all the fix pack please)?
Hi Alessandro,
I am using CMOD version 8.5.0.6
Siva,
Greg gave you the correct answer, please check again the following link: http://www-01.ibm.com/support/docview.wss?uid=swg1PM69840 (http://www-01.ibm.com/support/docview.wss?uid=swg1PM69840)
This is a known issue with CMOD 8.5 on Z. Either upgrade to CMOD V9.X or install the APAR.
The ARSXML utility which I've used is of version 8.5.0.0 and the CMOD server version is 9.0. Have updated the utility version into 8.5.0.7 and able to ingest the application successfully with expiration date.
Thank you everyone for your suggestions :)
QuoteThe ARSXML utility which I've used is of version 8.5.0.0 and the CMOD server version is 9.0.
Siva - danger. Try to avoid mixing versions of CMOD.
Ed
Quote from: Ed_Arnold on August 26, 2016, 02:00:24 PM
QuoteThe ARSXML utility which I've used is of version 8.5.0.0 and the CMOD server version is 9.0.
Siva - danger. Try to avoid mixing versions of CMOD.
Ed
Siva, I agree 1000000% with Ed... with ARSXML you must NOT mix version AT ALL.
you are going into the wall with that. At least keep with the same major release... so if you are using CMOD V8.5.X then use arsxml V8.5.Y and not V9 or V8.4.X.
And in addition to that, you must be aware, that arsxml with V8.5 is full of bugs.... and you need to go at least with the latest fix pack of V8.5 or latest FP V9 or V9.5.
if not, you will have problem without end.