# Problems with FileIO since AS6 Upgrade,

**URL:** <https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833>\
**Category:** Programming\
**Tags:** fileio, automation-studio-6\
**Created:** [May 5, 2025, 1:45pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833 "2025-05-05T13:45:39Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 5, 2025, 1:45pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/1 "2025-05-05T13:45:39Z")

</div>

Hi,

since I upgraded from AS4.12 to AS6 and Runtime 6.2.1, the FileIO FB FileInfo can not find my files on C: and returns error 20708 - fiERR\_FILE\_NOT\_FOUND.

If i run the same project on AS4.12, everything works just fine.

I have to mention that i run the project on ARSim and only use C: during simulation.

Can someone tell me what changed? I can not find anything in the RevFiles of B&R…

Best regards,  
Philip

---

<div class="post-metadata">

**Author:** ![corne.geerts](https://avatars.discourse-cdn.com/v4/letter/c/FF8800/32.png) [@corne.geerts](https://community.br-automation.com/u/corne.geerts)\
**Post date:** [May 5, 2025, 2:46pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/2 "2025-05-05T14:46:14Z")

</div>

You cannot use C: in ARSim any more in AS V6.  
See following post from community:  
[USER\_PATH and DevLink - Ask Questions - B&R Community](https://community.br-automation.com/t/user-path-and-devlink/3047)

You should use USER as file device.

---

<div class="post-metadata">

**Author:** ![MartinM](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/martinm/32/1014_2.png) [@MartinM](https://community.br-automation.com/u/MartinM)\
**Post date:** [May 6, 2025, 7:50am UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/3 "2025-05-06T07:50:37Z")

</div>

Hello,

i am just encountering a very similar problem with a fresh updated project (AS4.11 → AS4.12 → AS6.2).  
So i’am sorry for hijacking your thread Philip, but the title is absolutely fitting.

Configuration for all versions used:

 ![config_fileDevice](https://europe1.discourse-cdn.com/brcommunity/original/2X/f/f354da678559f1465ea876d5910e3b58851a2588.png)

Most of the mapp Tasks creating their folder this way: (within AS6 with error 20709)

 ![dirCreate](https://europe1.discourse-cdn.com/brcommunity/original/2X/a/ada898e2b2727a47622a19e676e09eb4c7aa0a3f.png)

Within 4.x Versions the Simulation folder populated properly: (AS4.11 and AS4.12 working)

 ![412_SIM_Folder](https://europe1.discourse-cdn.com/brcommunity/original/2X/e/e7ad8f8e629aedf4407040d3ce8e9577acf889c6.png)

Now with AS6 the folder stays empty, and DirCreate error 20709:

 ![AS6_SIM_Folder](https://europe1.discourse-cdn.com/brcommunity/original/2X/f/fca443a7da18a33889569b446f73ec273233c124.png)

Anyone has an idea what is happening here with AS6?  
Greetings and Thanks  
M.

---

<div class="post-metadata">

**Author:** ![corne.geerts](https://avatars.discourse-cdn.com/v4/letter/c/FF8800/32.png) [@corne.geerts](https://community.br-automation.com/u/corne.geerts)\
**Post date:** [May 6, 2025, 9:14am UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/4 "2025-05-06T09:14:36Z")

</div>

Your code is strange.  
The DirCreate should be done with pDevice := ADR(‘UserPartition’);

The AlarmXFiles is not pointing to a valid path yet, because folder AlarmX is not existing.

---

<div class="post-metadata">

**Author:** ![MartinM](https://dub1.discourse-cdn.com/brcommunity/user_avatar/community.br-automation.com/martinm/32/1014_2.png) [@MartinM](https://community.br-automation.com/u/MartinM)\
**Post date:** [May 6, 2025, 9:42am UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/5 "2025-05-06T09:42:37Z")

</div>

Hi Corne,

that worked.  
DirCreate\_0(enable := TRUE, pDevice := ADR(‘UserPartition’), pName := ADR(‘/AlarmX’)); ✅  
Thank you!

The code was shipped with mappFramework from B&R Github, and worked until AS6, i thought thats common practice then.

greetings  
M.

---

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 8, 2025, 11:45am UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/6 "2025-05-08T11:45:19Z")

</div>

Thanks for the Help but i am still unable to read the FileInfo.

Now i understand, that if ARSim is active, the Temp\Simulation Path is used for the F:/ partition but i can copy the file directly into this folder and he still returns the same error when i want to read the file info.  
I checked the file name many times… i am lost… 😃

I dont think it is a code error because with AR4.xx it works but wrong configuration of my file devices or because of ARSim…

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/e/e265b4dc134b372bae57795cda68e72ccc59e48e.png)

![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/b/bee6ed5e9c1ec5fb08b0bbe60edc02a98fbb575f.png)

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/9/9eca3bde13e60a091841f78c3d0d8900de90130a.png)

---

<div class="post-metadata">

**Author:** ![corne.geerts](https://avatars.discourse-cdn.com/v4/letter/c/FF8800/32.png) [@corne.geerts](https://community.br-automation.com/u/corne.geerts)\
**Post date:** [May 8, 2025, 11:57am UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/7 "2025-05-08T11:57:00Z")

</div>

The folder which USER\_PATH is pointing to with ArSim is :  
 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/a/a76f5ca819e635685caada365b362ea936f75191.png)  
For instance :  
 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/3/38bb30b95dd7a2ea81fc0054cd68d0b368e903e8.png)  
If you want other folders in this USER\_PATH, you have to create these folders with DirCreate.

---

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 8, 2025, 12:00pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/8 "2025-05-08T12:00:40Z")

</div>

Thank you very much, i will try that immediately.

---

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 8, 2025, 12:15pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/9 "2025-05-08T12:15:32Z")

</div>

It works 🎉  
Thanks!

The only thing someone can do to find this information is to search in the b&r help for USER\_PATH. Thats the only thing i did not 😃

Do you know by any chance how to read out the USER\_PATH?  
I am asking because the project will not run always with the same config or wokring path…

---

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 8, 2025, 12:20pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/10 "2025-05-08T12:20:45Z")

</div>

But I could define a general Destination Directory for the ARSim without the Config folder right?  
then it would be always the same…

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/c/c84d4c421c867e948396f94d521b20ba675dd324.png)

---

<div class="post-metadata">

**Author:** ![corne.geerts](https://avatars.discourse-cdn.com/v4/letter/c/FF8800/32.png) [@corne.geerts](https://community.br-automation.com/u/corne.geerts)\
**Post date:** [May 8, 2025, 12:52pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/11 "2025-05-08T12:52:45Z")

</div>

Why would you need this?  
If you want to add folders and/or files to this folder you should use other options:

 ![image](https://europe1.discourse-cdn.com/brcommunity/original/2X/7/76e23b7281608add57026d4151fc01c8ca06017d.png)

---

<div class="post-metadata">

**Author:** ![Philip\_Pucher](https://avatars.discourse-cdn.com/v4/letter/p/FF8800/32.png) [@Philip\_Pucher](https://community.br-automation.com/u/Philip_Pucher)\
**Post date:** [May 8, 2025, 1:12pm UTC](https://community.br-automation.com/t/problems-with-fileio-since-as6-upgrade/6833/12 "2025-05-08T13:12:47Z")

</div>

We have a HMI, with a backend wich has to save a files into the F:/ partition by using the FTP Server of the PLC. But we test many things with the ARSim. In case of the simulation we have to tell the HMI on wich Path it has to copy the file.

Now i know since AR4.xx I have to use the USER\_PATH.  
Right know the path depends on the PLC config. So I would have to tell the HMI over OPC UA the file path. If I would be able to have always the same USER\_PATH during simulation the HMI could have an constant path setting.

So i have three options.

- use the offline installation dialog every time with the custom path
- somehow automatically a constant path independent from the config
- or i have to read the USER\_PATH out and tell it the HMI
