cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
michealeseecc
Level 3

SetLineItemState From DEPLOYED to DRAFT - All input data in the request failed. Please check the specific reasons in returned data.

Jump to solution

Hi All,

Good days.
I tried to change state of line item to draft but I'm getting error as below using POSTMAN/C# Code to test:-
https://ibb.co/jZ3N2J2

POST  https://xxxxxxxxx.flexnetoperations.com/flexnet/services/v5/EntitlementOrderService?wsdl
Authorization Type Basic Auth    UserName: xxxxx Password: xxxxxx
BODY:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:v5.webservices.operations.flexnet.com">

   <soapenv:Header/>
   <soapenv:Body>
      <urn:setLineItemStateRequest>
         <urn:lineItem>
            <urn:lineItemIdentifier>
            <urn:uniqueId>HID-141464</urn:uniqueId>
               <urn:primaryKeys>
                        <urn:activationId>ENVI-RLVQ-D2H7-NQ86</urn:activationId>
                    </urn:primaryKeys>
                </urn:lineItemIdentifier>
                <urn:stateToSet>DRAFT</urn:stateToSet>
                <urn:includeChildItems>false</urn:includeChildItems>
            </urn:lineItem>
        </urn:setLineItemStateRequest>
   </soapenv:Body>
</soapenv:Envelope>
 
RESULT:
<?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Body>
        <setLineItemStateResponse xmlns="urn:v5.webservices.operations.flexnet.com">
            <statusInfo>
                <status>FAILURE</status>
                <reason>All input data in the request failed. Please check the specific reasons in returned data.</reason>
            </statusInfo>
            <failedData>
                <failedLineItem>
                    <lineItem>
                        <lineItemIdentifier>
                            <uniqueId>HID-141464</uniqueId>
                            <primaryKeys>
                                <activationId>ENVI-RLVQ-D2H7-NQ86</activationId>
                            </primaryKeys>
                        </lineItemIdentifier>
                        <stateToSet>DRAFT</stateToSet>
                        <includeChildItems>false</includeChildItems>
                    </lineItem>
                    <reason>9000:No data records were found. [Incident# 1909-643576786]</reason>
                </failedLineItem>
            </failedData>
        </setLineItemStateResponse>
    </soapenv:Body>
</soapenv:Envelope>
 
C# Code

using (var eos = new EntitlementOrderClient())
{
eos.Open(ConfigurationManager.AppSettings["FNOODlogin"], ConfigurationManager.AppSettings["FNOODpassword"], ConfigurationManager.AppSettings["FNOCBaseURL"]);
try
{
var reqtype = new searchActivatableItemRequestType()
{
activatableItemSearchCriteria = new searchActivatableItemDataType()
{
activationId = new Flexnet.Entitlement.SimpleQueryType()
{
value = serialNumber,
searchType = Flexnet.Entitlement.simpleSearchType.EQUALS
},
partNumber = new Flexnet.Entitlement.SimpleQueryType()
{
value = LicenseProductCode,
searchType = Flexnet.Entitlement.simpleSearchType.EQUALS
},
}
};
reqtype.batchSize = "50";
reqtype.pageNumber = "1";

searchActivatableItemResponseType SearchResponse3 = eos.SearchActivatableItemRequest(reqtype);
if (SearchResponse3.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS)
{
//SUCCESS
setLineItemStateResponseType SearchResponse2 = new setLineItemStateResponseType();
lineItemStateDataType[] request = new lineItemStateDataType[]
{
new lineItemStateDataType()
{
lineItemIdentifier = new entitlementLineItemIdentifierType {
primaryKeys = new entitlementLineItemPKType {
activationId = serialNumber,
},
uniqueId = SearchResponse3.activatableItem[0].activatableItemData.partNumber.uniqueId
},
includeChildItemsSpecified = false,
includeChildItems = false,
stateToSet = Status,
}
};

SearchResponse2 = eos.SetLineItemState(request);
if (SearchResponse2.statusInfo.status == Flexnet.Entitlement.StatusType.SUCCESS)
{
//SUCCESS
:
:

I even try using Google Wizdler, also getting same error.
https://docs.revenera.com/fno2020r2/soapapi/Default_frame.htm?Default.htm

I even try replaced the Unique ID with Entitlement ID, getting same error too.

Please advise.

Regards,
Micheale
0 Kudos
1 Solution
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @michealeseecc ,

You only need to specify the activation ID for the entitlement line you wish to set to Draft.  Example:

 SetLineItemState.jpg

 

Thx,

- Jim

View solution in original post

1 Reply
jberthold
Revenera Moderator Revenera Moderator
Revenera Moderator

Hi @michealeseecc ,

You only need to specify the activation ID for the entitlement line you wish to set to Draft.  Example:

 SetLineItemState.jpg

 

Thx,

- Jim