IBM Support

Order Archival agent fails with error code OSI10_001.

Troubleshooting


Problem

Error OSI10_0011(Failure Code 'OSA-DV-005') is encountered while running the Order Archival agent.

Symptom

Error Snippet from the Order Archive(OSI_ORDER_ARCHIVE) agent:
 
2023-02-27 23:18:47,836:ERROR :Thread-23_OSI_ORDER_ARCHIVE: [1677539927836]Error_description_not_available []: []: []: s.s.s.s.s.s.OSIOrderArchiveAgent
2023-02-27 23:18:47,844:ERRORDTL:Thread-23_OSI_ORDER_ARCHIVE: [1677539927836]<?xml version=“1.0” encoding=“UTF-8"?>
<Errors>
<Error ErrorCode=“OSI10_0011”
ErrorDescription=“Error_description_not_available” ErrorRelatedMoreInfo=“com.ibm.cmus.api.FailureResponse$BadRequest: OrderPart ‘name’ is invalid. Valid values are order, orderLine, orderAudit and the OrderPart names configured on Order Archival Service.“>
<Attribute Name=“ErrorCode” Value=“OSI10_0011"/>
<Attribute Name=“ErrorDescription” Value=“Error_description_not_available”/>
<Attribute Name=“ErrorRelatedMoreInfo” Value=“com.ibm.cmus.api.FailureResponse$BadRequest: OrderPart ‘name’ is invalid. Valid values are order, orderLine, orderAudit and the OrderPart names configured on Order Archival Service.“/>
<Attribute Name=“DocumentType” Value=“0001"/>
<Attribute Name=“FailureCode” Value=“OSA-DV-005"/>
<Attribute Name=“OrderNo” Value=“Y224264338"/>
<Attribute Name=“StartSeq” Value=“1"/>
<Attribute Name=“TransactionId” Value=“OSI_ORDER_ARCHIVE”/>
<Attribute Name=“noOfFailures” Value=“3"/>
<Attribute Name=“PartName” Value=“orderRelease”/>
<Attribute Name=“Id” Value=“20220225125148424888206"/>
<Attribute Name=“OrderHeaderKey” Value=“20220225125148424888206"/>
<Attribute Name=“EnterpriseCode” Value=“RETAIL”/>
<Attribute Name=“FailureStatus” Value=“400"/>
<Attribute Name=“EndSeq” Value=“2"/>
<Stack>com.yantra.yfc.util.YFCException
at com.ibm.sterling.osi.archive.order.handler.OrderArchiveHandler.processBulkOutput(OrderArchiveHandler.java:846)
at com.ibm.sterling.osi.archive.order.handler.OrderArchiveHandler.bulkArchive(OrderArchiveHandler.java:531)
at com.ibm.sterling.osi.archive.order.handler.OrderArchiveHandler.archiveJsonOrder(OrderArchiveHandler.java:309)
at com.ibm.sterling.osi.archive.agent.OSIOrderArchiveAgent.archiveOrder(OSIOrderArchiveAgent.java:519)
at com.ibm.sterling.osi.archive.agent.OSIOrderArchiveAgent.bulkArchiveOrder(OSIOrderArchiveAgent.java:433)
at com.ibm.sterling.osi.archive.agent.OSIOrderArchiveAgent.executeJob(OSIOrderArchiveAgent.java:322)
...
at com.yantra.interop.services.jms.JMSConsumer.run(JMSConsumer.java:385)
at java.lang.Thread.run(Thread.java:825)
</Stack>
</Error>
</Errors>
 
Corresponding error snippet from the Order Service logs:
 
ERROR [2023-02-27T23:18:45,597] c.i.c.e.OrderStorageException (vert.x-worker-thread-20: 54) {} Exception. Full stacktrace follows:
com.ibm.cmus.api.FailureResponse$BadRequest: OrderPart ‘name’ is invalid. Valid values are order, orderLine, orderAudit and the OrderPart names configured on Order Archival Service.
at com.ibm.sterling.order.archive.handlers.OrderArchiveResolvers.validateOrderPart(OrderArchiveResolvers.java:102) [order-service-1.0-full.jar:?]
...
at java.lang.Thread.run(Unknown Source) [?:?]
ERROR [2023-02-27T23:18:45,598] c.i.c.e.OrderStorageException (vert.x-worker-thread-21: 55) {} Exception. Full stacktrace follows:
com.ibm.cmus.api.FailureResponse$BadRequest: OrderPart ‘name’ is invalid. Valid values are order, orderLine, orderAudit and the OrderPart names configured on Order Archival Service.
at com.ibm.sterling.order.archive.handlers.OrderArchiveResolvers.validateOrderPart(OrderArchiveResolvers.java:102) [order-service-1.0-full.jar:?]
at com.ibm.sterling.order.archive.handlers.OrderArchiveResolvers.archiveOrders(OrderArchiveResolvers.java:189) [order-service-1.0-full.jar:?]
at java.lang.Thread.run(Unknown Source) [?:?]

Cause

Failure Code OSA-DV-005 occurs if there is a mismatch between order part configuration.

Resolving The Problem

Configure the following in IBM Sterling Order Management(OMS) and Order Service:

1. Configure the additional parts in OMS: 

  • osi.archive.order.additional.parts=<TableName>
  • osi.archive.order.part.<TableName>.name=<partName>

Note: If you are adding the properties in customer_overrides.properties file, ensure to prefix yfs.

For example:

  • yfs.osi.archive.order.additional.parts=<TableName>
  • yfs.osi.archive.order.part.<TableName>.name=<partName>

For more information, refer to Configuring Order Archival integration

2. Configure the additional parts in Order Service by setting following property with list of part names: 

  • order_archive_additional_part_name=<partName>

For more information, refer to Configuring Order Archival properties

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB59","label":"Sustainability Software"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SS6PEW","label":"IBM Sterling Order Management"},"ARM Category":[{"code":"a8m0z000000cy00AAA","label":"Orders"}],"ARM Case Number":"","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Product Synonym

Sterling Order Management; OMS; Order Service; Order Archival

Document Information

Modified date:
03 March 2023

UID

ibm16958753