Author Topic: ARSXML - Override expiration date in application  (Read 5004 times)

Siva

  • Guest
ARSXML - Override expiration date in application
« on: August 10, 2016, 06:25:44 PM »
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.


Justin Derrick

  • IBM Content Manager OnDemand Consultant
  • Administrator
  • Hero Member
  • *****
  • Posts: 2231
  • CMOD Guru for hire...
    • Tenacious Consulting
Re: ARSXML - Override expiration date in application
« Reply #1 on: August 11, 2016, 03:30:13 AM »
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.
« Last Edit: December 14, 2017, 10:54:45 AM by Justin Derrick »
IBM CMOD Professional Services: http://TenaciousConsulting.com
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Education & Webinars:  https://CMOD.Training/

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

Siva

  • Guest
Re: ARSXML - Override expiration date in application
« Reply #2 on: August 11, 2016, 04:13:10 AM »
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.

Greg Ira

  • Full Member
  • ***
  • Posts: 240
Re: ARSXML - Override expiration date in application
« Reply #3 on: August 11, 2016, 05:49:31 AM »
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.

Siva

  • Guest
Re: ARSXML - Override expiration date in application
« Reply #4 on: August 11, 2016, 06:29:43 AM »
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

Greg Ira

  • Full Member
  • ***
  • Posts: 240
Re: ARSXML - Override expiration date in application
« Reply #5 on: August 11, 2016, 10:09:35 AM »
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

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
Re: ARSXML - Override expiration date in application
« Reply #6 on: August 15, 2016, 03:29:06 AM »
Which CMOD version are you using (full version number, with all the fix pack please)?
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Siva

  • Guest
Re: ARSXML - Override expiration date in application
« Reply #7 on: August 16, 2016, 12:09:59 AM »
Hi Alessandro,

I am using CMOD version 8.5.0.6

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
Re: ARSXML - Override expiration date in application
« Reply #8 on: August 21, 2016, 08:42:52 AM »
Siva,

Greg gave you the correct answer, please check again the following link: 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.
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML

Siva

  • Guest
Re: ARSXML - Override expiration date in application
« Reply #9 on: August 26, 2016, 02:26:17 AM »
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 :)

Ed_Arnold

  • Hero Member
  • *****
  • Posts: 1206
Re: ARSXML - Override expiration date in application
« Reply #10 on: August 26, 2016, 07:00:24 AM »
Quote
The 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
#zOS #ODF

Alessandro Perucchi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1002
Re: ARSXML - Override expiration date in application
« Reply #11 on: September 08, 2016, 07:09:16 AM »
Quote
The 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. 
Alessandro Perucchi

#Install #Migrations #Conversion #Educate #Repair #Upgrade #Migrate #Enhance #Optimize #AIX #Linux #Multiplatforms #DB2 #Windows #Oracle #TSM #Tivoli #Performance #Audits #Customizing #Availability #HA #DR #JavaApi #ContentNavigator #ICN #WEBi #ODWEK #Services #PDF #AFP #XML