cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
maschewel82
Regular Visitor

Problem with creating file on File System

Hello,

 

I have a flow that takes in form information from Formstack and then creates a CSV file on an Azure server using the File System/Gateway connector. I have a software program called Planet Press running on that Azure machine that picks up the file as soon as Power Automate drops it there, and then sends it into my legacy system. It deletes the file from folder location (C:\power\apps) where Power Automate sent it to. 

 

The flow has been working fine, but occasionally I get an error saying that the flow failed because the file was not created. However, when I go back and look I find that the file was indeed created successfully on my machine and that the Planet Press program picked it up successfully. 

 

Any ideas on what is going on here? I am wondering if maybe the Planet Press program picks up and deletes the file so quickly that when Power Automate checks to see if the file was created, it is no longer there.

 

Here is a screenshot of the file create step:

 

maschewel82_0-1648477708713.png

 

Here is the documentation for the "Create file on Azure server" step in an instance where it failed:

 

"{
""statusCode"": 404,
""headers"": {
""Pragma"": ""no-cache"",
""x-ms-request-id"": ""80501965-a0e4-4a6f-a5bd-9915fd39cd8f"",
""Strict-Transport-Security"": ""max-age=31536000; includeSubDomains"",
""X-Content-Type-Options"": ""nosniff"",
""X-Frame-Options"": ""DENY"",
""Cache-Control"": ""no-store, no-cache"",
""Set-Cookie"": ""ARRAffinity=23a207a325cefe4d6899a2c70a1923112e0754fee759f0fb1e28c8e77f4cc3d5;Path=/;HttpOnly;Secure;Domain=filesystem-eus2.azconn-eus2-01.p.azurewebsites.net,ARRAffinitySameSite=23a207a325cefe4d6899a2c70a1923112e0754fee759f0fb1e28c8e77f4cc3d5;Path=/;HttpOnly;SameSite=None;Secure;Domain=filesystem-eus2.azconn-eus2-01.p.azurewebsites.net"",
""x-ms-connection-gateway-object-id"": ""d8f92a72-f579-4b4c-811c-af1dee2dadfd"",
""Timing-Allow-Origin"": ""*"",
""x-ms-apihub-cached-response"": ""false"",
""x-ms-apihub-obo"": ""true"",
""Date"": ""Sat, 26 Mar 2022 05:41:49 GMT"",
""Content-Length"": ""514"",
""Content-Type"": ""application/json"",
""Expires"": ""-1""
},
""body"": {
""status"": 404,
""message"": ""There is no file with name 'Jennifer-Funk' located in 'C:\\power\\apps' on your file system. Verify the file exists or create it before trying to access it.\r\nclientRequestId: 80501965-a0e4-4a6f-a5bd-9915fd39cd8f"",
""error"": {
""message"": ""There is no file with name 'Jennifer-Funk' located in 'C:\\power\\apps' on your file system. Verify the file exists or create it before trying to access it.""
},
""source"": ""filesystem-eus2.azconn-eus2-01.p.azurewebsites.net""
}
}"

 

Here is the documentation for the "Create file on Azure server" step in an instance where it succeeded:

 

"{
""statusCode"": 200,
""headers"": {
""Pragma"": ""no-cache"",
""Vary"": ""Accept-Encoding"",
""x-ms-request-id"": ""616cc231-9a56-460e-a63a-5b4c07cb1bee"",
""Strict-Transport-Security"": ""max-age=31536000; includeSubDomains"",
""X-Content-Type-Options"": ""nosniff"",
""X-Frame-Options"": ""DENY"",
""Cache-Control"": ""no-store, no-cache"",
""Set-Cookie"": ""ARRAffinity=074fdd32eea883e954f8ec8b4146efc72d5253f72cee7d8c0b464a23abd6400e;Path=/;HttpOnly;Secure;Domain=filesystem-eus2.azconn-eus2-01.p.azurewebsites.net,ARRAffinitySameSite=074fdd32eea883e954f8ec8b4146efc72d5253f72cee7d8c0b464a23abd6400e;Path=/;HttpOnly;SameSite=None;Secure;Domain=filesystem-eus2.azconn-eus2-01.p.azurewebsites.net"",
""x-ms-connection-gateway-object-id"": ""d8f92a72-f579-4b4c-811c-af1dee2dadfd"",
""Timing-Allow-Origin"": ""*"",
""x-ms-apihub-cached-response"": ""false"",
""x-ms-apihub-obo"": ""true"",
""Date"": ""Mon, 28 Mar 2022 13:56:35 GMT"",
""Content-Type"": ""application/json; charset=utf-8"",
""Expires"": ""-1"",
""Content-Length"": ""364""
},
""body"": {
""Id"": ""QzpccG93ZXJcYXBwc1xDYXJsYS1TaGVuaw=="",
""Name"": ""Carla-Shenk"",
""DisplayName"": ""Carla-Shenk"",
""Path"": ""C:\\power\\apps\\Carla-Shenk"",
""LastModified"": ""2022-03-28T13:56:35Z"",
""Size"": 12784,
""MediaType"": ""application/octet-stream"",
""IsFolder"": false,
""ETag"": ""\""MDMvMjgvMjAyMiAxMzo1NjozNXwxMjc4NA==\"""",
""FileLocator"": ""QzpccG93ZXJcYXBwc1xDYXJsYS1TaGVuaw==""
}
}"

0 REPLIES 0

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,955)