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 :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Business events - Freetext invoice approval failed

(0) ShareShare
ReportReport
Posted on by 30

Hello Experts,

I'm setting up Freetext invoice approval via BE following this tutorial:

https://www.youtube.com/watch?v=yGEObxOAsk4

I'm currently facing 2 issue in the "condition" action.

1st :

if the "Assigned to" parameter is set  to WorkflowUserEmail. When the flow is triggered, i got an error like below even the approve user is available in D365 and same tenant with submitter.

Setting:

pastedimage1584269746213v2.png

Error:

pastedimage1584269726948v1.png

2nd: 

if i change "Assigned to" to Approver's email then i passed the error and can see the approval item in Action items.

After hit approve, the second error comes out:

Setting:

pastedimage1584270021587v3.png

pastedimage1584270472165v6.png

Error:

pastedimage1584270335993v4.png

pastedimage1584270372532v5.png

{
"status": 400,
"message": "An error has occurred. InvokeAction - Model state is invalid. parameters: Cannot convert the literal '' to the expected type 'Edm.Guid'.\r\nclientRequestId: 46af1226-f002-4d70-bcc8-a1a37e57da88",
"error": {
"message": "An error has occurred. InvokeAction - Model state is invalid. parameters: Cannot convert the literal '' to the expected type 'Edm.Guid'."
Can you please let me know if anything is missing?
I have the same question (0)
  • Suggested answer
    Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Hi,

    For No 1:

    Does the user for which you see the error message have the company (for which you want to run the tasks) the same company setup as default company in the user options? Please check and possibly change that.

    For No 2:

    Can you share details of the D365FO connector and what you setup there?

    Yet, in general, also check there what user and connection has been used for D365FO. I suspect that also the default company of your user might be an issue here.

    Best regards,

    Ludwig

  • RossDo Profile Picture
    30 on at

    Hi Ludwig,

    Thanks for your quick response

    I followed steps, and that's right the 1st issue is about the default company.

    I have changed company and generated freetext invoice again.

    However, the 2nd issue seem still persists.

    After approved:

    {

     "status": 400,

     "message": "An error has occurred.  InvokeAction - Model state is invalid. parameters: Cannot convert the literal '' to the expected type 'Edm.Guid'.\r\nclientRequestId: 58ac31c0-a55f-4139-9501-2be0d12e0f13",

     "error": {

       "message": "An error has occurred.  InvokeAction - Model state is invalid. parameters: Cannot convert the literal '' to the expected type 'Edm.Guid'."

     },

  • Annagreen199x Profile Picture
    5 on at

    Issue still persist. Can you please help.

  • Ludwig Reinhard Profile Picture
    Microsoft Employee on at

    Good Morning Ross Ross / Annagreen 199x,

    In your screenprint further above there is nothing entered in lower section of the execute action 2 step. Is this still the case or did you enter some fields/results/texts there?

    Can you share a more recent screenprint of this action?

    Many thanks,

    Ludwig

  • Suggested answer
    Anup Shah MSFT Profile Picture
    on at

    If your issue persists, please raise a support ticket for further analysis

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 659 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 533 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 289 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans