# Help with shipment report picking

**URL:** <https://forum.novacura.com/t/help-with-shipment-report-picking/984>\
**Category:** Flow Classic\
**Tags:** studio-or-server\
**Created:** [July 15, 2025, 3:42pm UTC](https://forum.novacura.com/t/help-with-shipment-report-picking/984 "2025-07-15T15:42:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcummins](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mcummins](https://forum.novacura.com/u/mcummins)\
**Post date:** [July 15, 2025, 3:42pm UTC](https://forum.novacura.com/t/help-with-shipment-report-picking/984/1 "2025-07-15T15:42:13Z")

</div>

Hi,

I am trying to create a Flow to do report picking, but i cannot get it to work.  
I am creating a new FndTempLob, then doing an FndTempLobs update ClobData (from string) to add the details by passing this in the Text data:

_{“0”: “CONTRACT=01^PICK\_LIST\_NO=29040^PICK\_LIST\_TYPE=CUST\_ORDER\_PICK\_LIST^LOCATION\_NO=FGS01^HANDLING\_UNIT\_ID=132^”}_

However, when i trigger the ReportPickAggregated, i get the following error:  
_An error occurred while processing this request._  
_{“error”:{“code”:“DATABASE\_ERROR”,“message”:“Database error occurred. Contact administrator.”,“details”:[{“code”:40587,“message”:“ORA-40587: invalid JSON type”}]}}_

Could anyone please provide any help/guidance, as I am tearing my hair out.

Thanks

Mark

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/daniel/32/708_2.png) [@daniel](https://forum.novacura.com/u/daniel)\
**Post date:** [July 15, 2025, 10:18pm UTC](https://forum.novacura.com/t/help-with-shipment-report-picking/984/2 "2025-07-15T22:18:16Z")

</div>

When working with Clob’s, try to create it in a flow script step first. I do not have an example for Report Picking, but I have one for Register Arrivals. The flowscript for it looks like this:

```auto
Return '["SOURCE_REF1=' & SourceRef1 &
       '^SOURCE_REF2=' & SourceRef2 &
       '^SOURCE_REF3=' & SourceRef3 &
       '^SOURCE_REF4=' & ReceiptInfoRec.SourceRef4 &
       '^SOURCE_REF_TYPE_DB=' & ReceiptInfoRec.SourceRefTypeDb &
       '^SOURCE_QTY_TO_RECEIVE=' & SourceQtyToReceive & 
       '^INV_QTY_TO_RECEIVE=' & (SourceQtyToReceive * ReceiptInfoRec.ConvFactor) & 
       '^CATCH_QTY_TO_RECEIVE=' &
       '^LOCATION_NO=' & ToLocationNo &
       '^LOCATION_TYPE_DB=' & FIRST(ToLocationTbl WHERE LocationNo = ToLocationNo).LocationTypeDb &
       '^LOT_BATCH_NO=' & CASE WHEN LotBatchNo = '' THEN '*' ELSE LotBatchNo END &
       '^SERIAL_NO=' & CASE WHEN SerialNo = '' THEN '*' ELSE SerialNo END &
       '^ENG_CHG_LEVEL=' & ReceiptInfoRec.EngChgLevel & 
       '^WAIV_DEV_REJ_NO=' & CASE WHEN WDRNo = '' THEN '*' ELSE WDRNo END &
       '^CONDITION_CODE=' & ConditionCode &
       '^RECEIVE_CASE=' & 
            CASE 
               WHEN ReceiveCaseDb = 'INVDIR' THEN 'ReceiveIntoInventory'
               WHEN ReceiveCaseDb = 'ARRPUT' THEN 'RcvIntoArrPerfPutaway'
               WHEN ReceiveCaseDb = 'ARRINV' THEN 'ReceiveIntoArrival'
               WHEN ReceiveCaseDb = 'ARRINSP' THEN 'RcvIntoArrInspectAtArr'
               WHEN ReceiveCaseDb = 'ARRQA' THEN 'RcvIntoArrInspectAtQa'
               WHEN ReceiveCaseDb = 'QAINV' THEN 'RcvIntoQaInspectAtQa'
            ELSE 'ReceiveIntoArrival' END &
       '^SOURCE_QTY_TO_INSPECT=' & (Case When InspectionAtLocation = 'True' Then SourceQtyToReceive Else ReceiptInfoRec.SourceQtyToInspect End) &
       '^QC_CODE=' & 
       '^NOTE_TEXT=' & 
       '^ORDER_CODE=' & ReceiptInfoRec.OrderCode &
       '^INPUT_QTY=' & 
       '^INPUT_CONV_FACTOR=' & 
       '^INPUT_VARIABLE_VALUES=' & 
       '^PART_COST_LEVEL_DB=' & ReceiptInfoRec.InventoryPartCostLevelDb &
       '^PACKING_INSTRUCTION_ID=' & 
       '^RENTAL_DB=' & LOWER(ReceiptInfoRec.RentalDb) &
       '^MANUFACTURER_ID=' & 
       '^MANUFACTURER_PART_NO=' & 
       '^;"]'
;

```

If this variable is called `ClobData`, you then pass this into the body like such:

```auto
let Response = HTTP.patchText(
                              "/main/ifsapplications/projection/v1/CreateReceipt.svc/FndTempLobs('"&TempLobId&"')/ClobData",
                             {
                               "Accept" :"application/json; odata.metadata=minimal",
                               "Content-Type":"application/json; odata.metadata=minimal",
                               "If-Match" :"*"
                             },
                             ClobData
                           );

```

---

<div class="post-metadata">

**Author:** ![mcummins](https://avatars.discourse-cdn.com/v4/letter/m/7C9FD7/32.png) [@mcummins](https://forum.novacura.com/u/mcummins)\
**Post date:** [July 16, 2025, 10:42am UTC](https://forum.novacura.com/t/help-with-shipment-report-picking/984/3 "2025-07-16T10:42:33Z")

</div>

Hi Daniel,

Thank you so much.  
It looks like it was just my formatting of the ClobData.  
I wasn’t using square brackets.

---

<div class="post-metadata">

**Author:** ![daniel](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.novacura.com/daniel/32/708_2.png) [@daniel](https://forum.novacura.com/u/daniel)\
**Post date:** [July 16, 2025, 3:50pm UTC](https://forum.novacura.com/t/help-with-shipment-report-picking/984/4 "2025-07-16T15:50:44Z")

</div>

Yes, the thing with structured languages i.e. json is that it has to be exactly correct. Make sure to mark this as resolved to help others!
