Skip to Main Content

Cloud Connectivity

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Unable to send batch request to rest API "/fscmRestApi/resources/11.13.18.05/inventoryStagedTransactions" through postman

Hi,

I am getting error as “Invalid operation BATCH for the specified resource” in postman while trying to send batch request by following the oracle documentation. Can someone suggest on how to send the batch request to the api.

Providing the Content-Type as ‘application/vnd.oracle.adf.batch+json’

Oracle link: https://docs.oracle.com/en/cloud/saas/supply-chain-and-manufacturing/24a/fasrp/op-inventorystagedtransactions-post.html

Request payload:

{"parts":[
{
"id":"part1",
"path":"/inventoryStagedTransactions",
"operation":"create",
"payload":{
"TransactionTypeName": "Subinventory Transfer",
"AccountAliasCombination": "Inventory Adjustment",
"ItemNumber": "2290",
"SubinventoryCode": "7000",
"LocatorId": null,
"TransactionQuantity": 1,
"TransactionUnitOfMeasure": "EA",
"TransferSubinventory": "2000",
"TransferLocator": null,
"TransactionReference": "Kanban Number99",
"ChartOfAccountsId": null,
"TransactionDate": "2024-02-12T11:19:00",
"SourceCode": "KANBAN",
"SourceHeaderId": 1,
"SourceLineId": "1",
"UseCurrentCostFlag": "true",
"TransactionMode": "1"
}
},
{
"id":"part2",
"path":"/inventoryStagedTransactions",
"operation":"create",
"payload":{
"TransactionTypeName": "Subinventory Transfer",
"AccountAliasCombination": "Inventory Adjustment",
"ItemNumber": "2290-19",
"SubinventoryCode": "7000",
"LocatorId": null,
"TransactionQuantity": 1,
"TransactionUnitOfMeasure": "EA",
"TransferSubinventory": "2000",
"TransferLocator": null,
"TransactionReference": "Kanban Number99",
"ChartOfAccountsId": null,
"TransactionDate": "2024-02-12T11:19:00",
"SourceCode": "KANBAN",
"SourceHeaderId": 1,
"SourceLineId": "2",
"UseCurrentCostFlag": "true",
"TransactionMode": "1"
}
}
]
}

Comments

InoL Apr 29 2024

How doc gen treats nulls values?

You have to be more specific. Are your referring to the pre-built Document Generator function?

If so:

When my query return null in some columns

What is the JSON that is generated?

You should always include the element in the JSON, with an empty value. Don't leave it out.

Francois Robert-Oracle Jan 8 2025 — edited on Jan 8 2025

Since September 2024, when a tag has no corresponding value in the JSON data or the value is null, the tag is replaced by an empty string.

See the September Release Notes

1 - 2

Post Details

Added on Feb 15 2024
4 comments
599 views