Troubleshooting
Problem
manageSourcingRule API not working for Create-Modify YFC0009 Update failed error
Symptom
PART: API-OM 5.5 Platform
PRODUCT: Distributed Order
Management
COMPONENT: manageSourcingRule
OS: HP-UX - 11i
DATABASE:
Oracle - 9.2.0.4
WEB SERVER: WebLogic - 8.1 SP1
WEB BROWSER: Internet
Explorer - 6.0 sp1
Using the following input XML to manageSourcingRule
throws the error as shown below:
<SourcingRuleHeader
FulfillmentType="PRODUCT_SOURCING" ItemGroupCode="PROD" Purpose="SOURCING"
OrganizationCode="DEFAULT" SellerOrganizationCode="DEFAULT"
ToNodeKey="SRG-Cal">
<SourcingRuleDetails Reset="Y">
<SourcingRuleDetail DistributionRuleId= "" FromNodeKey="SRG-Min"
Operation="Create-Modify" ProcureToShipAllowed="Y" SeqNo="1">
</SourcingRuleDetail>
</SourcingRuleDetails>
</SourcingRuleHeader>
- <Errors>
- <Error ErrorCode="YFC0009"
ErrorDescription="Update failed. The record to be updated could either not be
found or it was already deleted or updated by another transaction."
ErrorRelatedMoreInfo="">
<Attribute Name="ErrorCode" Value="YFC0009" />
<Attribute Name="ErrorDescription" Value="Update failed. The record to be
updated could either not be found or it was already deleted or updated by
another transaction." />
<Attribute Name="ErrorRelatedMoreInfo" Value=""
/>
<Attribute Name="Operation" Value="Create-Modify" />
<Attribute
Name="Entity" Value="SourcingRuleHeader" />
<Stack>com.yantra.yfc.util.YFCException at
com.yantra.yfc.dblayer.YFCEntity.setDBAction(YFCEntity.java:312) at
com.yantra.shared.dbclasses.YFS_Sourcing_Rule_DetailBase.setAttributes(YFS_Sourc
ing_Rule_DetailBase.java:529) at
com.yantra.shared.dbclasses.YFS_Sourcing_Rule_DetailBase.equals(YFS_Sourcing_Rul
e_DetailBase.java:601) at
Cause
Resolving The Problem
Defect.
Workaround. use Operation="" instead of "Create-Modify"
Historical Number
PRI49400
Product Synonym
[<p><b>]Fact[</b><p>];
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21531037