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

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

power automate flow error due date is before ending date

(3) ShareShare
ReportReport
Posted on by 30
I wanted to create an assembly order from a purchase order using power automate flow. I got error, due date is before  ending date.
There was no error when I manually created an assembly order with the same item for the  testing purchase.
 
When executing the flow, I got due  date is before ending date error.
Input .
{
    "host": {
        "connectionReferenceName": "shared_dynamicssmbsaas",
        "operationId": "PostItemV3"
    },
    "parameters": {
        "bcenvironment": "SANDBOX-1",
        "company": "xxxxxxx",
        "dataset": "xxxxx",
        "table": "assembly_Headers",
        "item/itemno_": "1005",
        "item/startingdate": "2025-01-12T04:37:56.1596442Z",
        "item/endingdate": "2025-01-12T04:37:56.1596580Z",
        "item/quantity": 1
    }
}
output
"body": {
        "status": 400,
        "message": "ErrorCode: Application_DialogException  Due Date  is before Ending Date 01/14/25.  CorrelationId:  xxxxx.\r\nclientRequestId: xxxx",
        "error": {
            "message": "ErrorCode: Application_DialogException  Due Date  is before Ending Date 01/14/25.  CorrelationId:  xxx"
        },
        "source": "api.businesscentral.dynamics.com",
        "errors": []
    }
 
Is there anyway to turn off the date validation ? Or other solutions ?
Capture.JPG
I have the same question (0)
  • KasparsSemjonovs Profile Picture
    4,782 Super User 2025 Season 2 on at
    I would assume the error is because You are not providing any value for the Due Date. 
    When doing it manually, it gets filled in, but if You are just pushing values, then You cannot process the Confirmation dialogs.

     
  • Verified answer
    Inkey Solutions Profile Picture
    2,100 on at
    I think this error is not from the Power Automate flow; this error is from Business Central.
    you should check the purchase order. The error could be related to the dates in the purchase order, particularly if the due date is set before the ending date. Business Central enforces date validation, so verifying and correcting the dates in the purchase order may resolve the issue.
    When manually creating the assembly order, it might automatically adjust these dates, but in Power Automate, those validations might not be applied the same way
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    20,838 Super User 2025 Season 2 on at
  • CU15010506-0 Profile Picture
    30 on at
    I created a blank assesmbly_header with no dates, then created an update to the assembly_header with due date, ending date and item. It worked.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,092

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans