cancel
Showing results for 
Search instead for 
Did you mean: 

Export Application V9 ($2)

Former Member
0 Kudos


Hello,

we have two servers, one with SAP CPS M33.104 and one with SAP BPA 9.0.13.

If I export the application ABC from server with SAP BPA V9 and try to import this file to SAP CPS I get an error message that application ABC.$2 is not existing.

What means "$2" ? The application is named ABC on both servers.

Best regards

Dana

Accepted Solutions (1)

Accepted Solutions (1)

nanda_kumar21
Active Contributor
0 Kudos

Can you please provide the complete error trace?

thanks

Nanda

Former Member
0 Kudos

Hello,

error trace for importing the job TEST from application ABC at server SAP BPA V9 to application ABC at server with SAP CPS:

ERROR 2015-07-09 13:06:45,396 Europe/Berlin [Redwood Job Thread Pool: GLOBAL.System.System worker 0] job.System_Import_Archive.473385732 - Import failed, no objects have been imported. -- JOB RUN STACK TRACE -- JCS-113018: Exception while parsing source jar:file:/usr/sap/X0P/J09/j2ee/cluster/server0/scheduler/473380000-473389999/473385732/JOB_473385732carin.car.car!/JobDefinition/GLOBAL.TEST.xml at line 8: 63. See cause for further information at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:293) at com.redwood.scheduler.model.imprt.ImportScanner.importObject(ImportScanner.java:52) at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:185) at com.redwood.scheduler.model.imprt.CronacleArchiveReader.scanArchive(CronacleArchiveReader.java:153) at com.redwood.scheduler.model.imprt.CronacleArchiveReader.importAll(CronacleArchiveReader.java:89) at com.redwood.scheduler.system.jobs.CronacleArchiveImport.runInternal(CronacleArchiveImport.java:397) at com.redwood.scheduler.system.jobs.CronacleArchiveImport.run(CronacleArchiveImport.java:193) at com.redwood.scheduler.system.jobs.CommonSystemJob.execute(CommonSystemJob.java:53) at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:253) at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:76) at java.lang.Thread.run(Thread.java:763) Caused by: JCS-113007: Cannot set field Application on Job Definition TEST (Latest Version) to Application:GLOBAL.ABC.$2 at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplicationRaw(ApplicationObjectWriter.java:91) at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setField(ApplicationObjectWriter.java:60) at com.redwood.scheduler.model.writer.JobDefinitionWriter.setField(JobDefinitionWriter.java:812) at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46) at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46) at com.redwood.scheduler.model.writer.ModelEventProxy.setField(ModelEventProxy.java:46) at com.redwood.scheduler.model.imprt.ModelEventXmlReader.leafElement(ModelEventXmlReader.java:121) at com.redwood.scheduler.infrastructure.xml.BasicLeafTextXmlContentHandler.endElement(BasicLeafTextXmlContentHandler.java:87) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:604) at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:180) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:379) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2775) at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:647) at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:140) at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:513) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:744) at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:128) at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208) at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:543) at javax.xml.parsers.SAXParser.parse(SAXParser.java:395) at com.redwood.scheduler.model.imprt.BaseImporter.importObject(BaseImporter.java:263) ... 10 more Caused by: JCS-113012: Missing object for business key: Application:GLOBAL.ABC.$2 at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplication(ApplicationObjectWriter.java:121) at com.redwood.scheduler.model.writer.ApplicationObjectWriter.setParentApplicationRaw(ApplicationObjectWriter.java:87) ... 31 more

Best regards

Dana

abhishek_singh29
Active Participant
0 Kudos

Hello Dana,

While you are importing few object are missing in target system and your export list does not contain that object.

There were 2 logs, Std*.log and sterr*.log. Can you paste the another logs?

Also, you are exporting from SAP BPA 9 version, have you check the column using Export the related object too?

I suggest, try to do export into 2 or 3 parts to find out the missing object.

Regards,

Abhishek

nanda_kumar21
Active Contributor
0 Kudos

Here you are exporting a job definition instead of the application.

  1. Have you tried exporting the complete Application tree?
  2. How many applications you have named ABC? is it possible, there are more than one?
  3. Is the name of the application exactly same in both systems?
  4. What is the build version of your CPS?

thanks

Nanda

gmblom
Active Contributor
0 Kudos

Hello,

Not all objects can be exported from BPA to CPS. This is also not guaranteed between CPS or BPA versions. You are ALWAYS able to import from older versions to newer versions, but not the other way around.

Since the application names appeared to be ambiguous defined in CPS a new (internal) naming scheme has been adopted in BPA, hence the .$2 (indicating a 'version 2' application name).

Regards Gerben

abhishek_singh29
Active Participant
0 Kudos

Hi Gerben,

I am using the RunMyjobs (Redwood which almost similar to BPA) version - 9.0.13.12. I am trying to import my from DEV TO TEST  FROM XYZ_SIT application (Sub application X1_SIT OF DEV) to XYZ_E2E (Sub application: X1_E2E OF TEST) With below code import action:

{

Application app =

jcsSession.getApplicationByName("XYZ_E2E");

for (final Iterator it = jcsImportRuleSet.getObjects().iterator();

it.hasNext();)

{

Object o = it.next();

if (o instanceof ApplicationObject)

{

((ApplicationObject) o).setParentApplication(app);

}

}

}

-------------------xxx----------

a) if i am trying to import the object in XYZ_E2E {WITH jcsSession.getApplicationByName("XYZ_E2E")}

Its working perfect and objects are successfuly imported in XYZ_E2E

b) but when i am trying to import under sub application of XYZ_E2E i.e.X1_E2E (jcsSession.getApplicationByName("X1_E2E");

Its getting failed with same error ..

ERROR 2015-07-13 11:50:58,533 Etc/UTC [Redwood Job Thread Pool: GLOBAL.System.System worker 0] job.System_Import_Archive.99685025 - Import failed, no objects have been imported.

-- JOB RUN STACK TRACE --

JCS-112016: Import from file:/opt/runmyjobs/j2ee/cluster/shard25/log/scheduler/99680000000-99689999000/99685025/JOB_99685025carin.car.car has unresolved references:

[Application:XYZ_SIT.X1_SIT.$2]

  at com.redwood.scheduler.system.jobs.CronacleArchiveImport.assertAllObjectsResolved(CronacleArchiveImport.java:1103)

  at com.redwood.scheduler.system.jobs.CronacleArchiveImport.executeImport(CronacleArchiveImport.java:745)

  at com.redwood.scheduler.system.jobs.CronacleArchiveImport.executeImportRetry(CronacleArchiveImport.java:703)

  at com.redwood.scheduler.system.jobs.CronacleArchiveImport.runInternal(CronacleArchiveImport.java:678)

  at com.redwood.scheduler.system.jobs.CronacleArchiveImport.run(CronacleArchiveImport.java:287)

  at com.redwood.scheduler.system.jobs.CommonSystemJob.execute(CommonSystemJob.java:52)

  at com.redwood.scheduler.systemjobservice.impl.JobWorker.doWork(JobWorker.java:269)

  at com.redwood.scheduler.infrastructure.workqueue.Worker.run(Worker.java:81)

  at java.lang.Thread.run(Thread.java:745)

-----------------------------------------------

Could you please advise the what need to be done to import the object to sub applications?  Is the code will be different for it ?

Many thanks,

Regards,

Abhishek

Former Member
0 Kudos

That's a pitty!

So I will try to use an ImportRuleSet for removing the ".$2" and new jobparameter-sections.

Thanks!

Best regards

Dana

Answers (0)