Forum Discussion

robertvanraamsdonk's avatar
robertvanraamsdonk
Copper Contributor
May 26, 2021

FormRecognizer - pre-built invoice model - Operation-Location value in a variable

Dear community,

 

Hope you can help me with an issue I've been struggling with:

 

I'm accessing the FormRecognizer service pre-built invoice model from PowerAutomate using HTTP POST and GET actions. The file input is PDF invoices. I run the POST call, copy and paste the Operation-Location value that is returned in the POST response into the URI field of the GET call, save, run my flow, all is well. 

However, when instead of a literal copy/paste, I construct a text variable containing that very same Operation-Location string and provide that variable reference in the GET action URI field, the GET call still completes without error, but the GET response reports that the FormRecognizer service is either notStarted or running, and does not return any further output.

 

As soon as i revert the text variable in the GET action URI field back to the literal copy and paste Operation-Location string value, things start working normally again. 

 

I need to construct this Operation-Location value dynamically as I understand the service Operation-Location URI links expire after a certain amount of time, and my service calls would not continue to run.  Please advise?

1 Reply

Resources