Azure / LogicAppsUX

https://learn.microsoft.com/azure/logic-apps
MIT License
77 stars 84 forks source link

FTP 'Create File' connector throws error code 'ServiceOperationRequiredParameterMissing' only on 2 out of 8 loops and Parameter is defined in the JSON #6030

Closed onyx-lemur closed 2 weeks ago

onyx-lemur commented 2 weeks ago

Describe the Bug with repro steps

  1. Set up the workflow to read in data from Azure blob storage and then use the in-app FTP connector to use that data to create a file on an FTP server.
  2. Workflow will save correctly with file content from Azure blob storage defined in parameters
  3. Run workflow
  4. Workflow will fail on first 2 runs but succeed on runs 3-8.

Full error is:

{

"code": "ServiceProviderActionFailed",

"message": "The service provider action failed with error code 'ServiceOperationRequiredParameterMissing' and error message 'The required value for parameter 'fileContent' is missing from operation 'createFile' for the service provider-based connector named '/serviceProviders/Ftp'.'."

}

What type of Logic App Is this happening in?

Standard (Portal)

Which operating system are you using?

Windows

Are you using new designer or old designer

New Designer

Did you refer to the TSG before filing this issue? https://aka.ms/lauxtsg

Yes

Workflow JSON

{

"type": "ServiceProvider",

"inputs": {

"parameters": {

"filePath": "@{variables('varDestPath')}@{variables('varFileName')}",

"fileContent": "@body('Get_blob_content_(V2)')"

},

"serviceProviderConfiguration": {

"connectionName": "Ftp-1",

"operationId": "createFile",

"serviceProviderId": "/serviceProviders/Ftp"

}

},

"runAfter": {

"Get_blob_content_(V2)": [

"Succeeded"

]

}

}

Screenshots or Videos

Image

Image

Image

Browser

Chrome

Additional context

Workflows were running fine two weeks ago - however, since Monday last week, we have experienced a huge amount of development issues when using the Portal, particularly around connections and using Blob storage (leases not releasing for two Blob actions next to each other, for example). Restarting the WF hasn't solved any of these issues - and we periodically have hours where no WFs will load inside the Logic App.

I'm not sure what's changed since last week, but we have seen lots of disruption (not only within LAs but elsewhere too).

onyx-lemur commented 2 weeks ago

Solved it myself - for anyone else having the same issue and using the same pattern, files of 0KB size will throw this error (which may be common if you are using test files). Adding any content to bring it up to 1KB or higher will solve your issue.