web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Custom API on exist entity fail because the auto generated No. field I am working on Transfer Order

(1) ShareShare
ReportReport
Posted on by 45

Since there is no exist API for Transfer Order until now, I created my custom API to Save and Retrieve Transfer Orders, While retrieve/Get is working fine, I can not Post a new record as a Transfer header, The error I am getting is:

{
    "error": {
        "code""Internal_RecordNotFound",
        "message""The Transfer Header does not exist. Identification fields and values: No.=''  CorrelationId:  13c5d54d-61da-4667-a6b3-fd79b9ef6d58."
    }
}
I do not provide the 'No.' field, because If I did I will receive this:

 "
You may not enter numbers manually. If you want to enter numbers manually, please activate Manual Nos. in No. Series T-ORD.
"
(And I should not do activate the manual No. process.)

I am not able to insert any new Transfer Header record.

Any idea or help much appreciated 


I have the same question (0)
  • Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at
    [quote user="Nadeer"]And I should not to activate the manual No. process. But I still not able to insert any new Transfer Header record.[/quote]

    You mean, you activated manual no. and still facing same error?

  • Nadeer Profile Picture
    45 on at

    No, I did not activate it, I should not do that.

  • Mohana Yadav Profile Picture
    61,248 Super User 2026 Season 2 on at

    what fields are included in your Body?

  • Nadeer Profile Picture
    45 on at

    I attempt post this json:

    {

               "assignedUserID": "",

               "completelyReceived": false,

               "completelyShipped": false,

               "dateFilter": "",

               "dimensionSetID": 0,

               "directTransfer": true,

               "entryExitPoint": "",

               "externalDocumentNo": "",

               "hasShippedLines": false,

               "inboundWhseHandlingTime": "",

               "inTransitCode": "",

               "lastReceiptNo": "",

               "lastShipmentNo": "",

               "locationFilter": "",

               "noSeries": "T-ORD",

               "outboundWhseHandlingTime": "",

               "postingDate": "2021-02-19",

               "postingfromWhseRef": 0,

               "receiptDate": "2021-02-19",

               "shipmentDate": "2021-02-19",

               "shipmentMethodCode": "",

               "shippingAdvice": "Partial",

               "shippingAgentCode": "",

               "shippingAgentServiceCode": "",

               "shippingTime": "",

               "shortcutDimension1Code": "",

               "shortcutDimension2Code": "",

               "transactionSpecification": "",

               "transactionType": "",

               "transferfromAddress2": "adr2",

               "transferfromAddress": "133 Street",

               "transferfromCity": "ACity",

               "transferfromCode": "000",

               "transferfromContact": "",

               "transferfromCounty": "US",

               "transferfromName2": "",

               "transferfromName": "my Custom WAREHOUSE",

               "transferfromPostCode": "47901",

               "transfertoAddress2": "",

               "transfertoAddress": "123 customer St",

               "transfertoCity": "City2",

               "transfertoCode": "DD88",

               "transfertoContact": "",

               "transfertoCounty": "US ",

               "transfertoName2": "",

               "transfertoName": "To 123",

               "transfertoPostCode": "564",

               "transportMethod": "",

               "trsffromCountryRegionCode": "US",

               "trsftoCountryRegionCode": "US",

               "comment": false,

               "status": "Open"

               }

    Or simple one on another custom API:

    {

     "directTransfer": true,

     "noSeries": "T-ORD",

     "status": "Open",

     "transferfromCode": "LocCode1",

     "transfertoCode": "LocCode2"

    }

    Both are give same error (values in transferfromCode and transfertoCode are valid values, but I changed them due to privacy)

  • Nadeer Profile Picture
    45 on at

    Is there a way to allow enter numbers manually temporary if that can help fix the issue?

  • Suggested answer
    Nadeer Profile Picture
    45 on at

    Debugging, The error is because In-Transit Code not filled, BC not accept insert “directTransfer” equal to true without 'In-Transit Code' has a valid value, directTransfer should be false to be inserted for first time!

    This is still strange, I think it should be the opposite!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 518 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 362 Super User 2026 Season 2

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 327 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans