Hi Peter,
Good to hear from you again. Hope all is well with you.
We read a VARA to obtain the file names to be exported. Then we export each individual file.
:SET &OBJECT_HANDLE# = PREP_PROCESS_VAR(&EXPORT_UNIQUE_LISTVARA#)
:PROCESS &OBJECT_HANDLE#
: SET &FULL_OBJECT_NAME# = GET_PROCESS_LINE(&OBJECT_HANDLE#,1)
: P "Full line name &FULL_OBJECT_NAME#"
: SET &OBJECT_NAME# = STR_RTRIM(&FULL_OBJECT_NAME#)
: SET &FULL_PATH_AND_NAME# = '&UC4_EXPORT_PATH#&OBJECT_NAME#.XML'
: P "Full path and name &FULL_PATH_AND_NAME#"
: SET &EXPORT_RETURN# = EXPORT(&OBJECT_NAME#,&FULL_PATH_AND_NAME#)
: PUT_VAR &EXPORT_UNIQUE_LISTVARA#,&OBJECT_NAME#,&EXPORT_RETURN#
!: PUT_VAR &EXPORT_UNIQUE_LISTVARA#,&OBJECT_NAME#,&EXPORT_RETURN#
: PRINT Object &OBJECT_NAME# exported. Return Code &EXPORT_RETURN#
:ENDPROCESS
This is a sample of the error:
2025-04-07 16:36:04 - U00020408 Full line name DEDHPYRGCPC005
2025-04-07 16:36:04 - U00020408 Full path and name /applic/uc4/BLOB/EXPORT/AZD_USER_EXPORT_20250407163556_CHG00393382_EDH_1441388/DEDHPYRGCPC005.XML
2025-04-07 16:36:04 - U00021721 EXPORT, counter '0000000001': Object: 'DEDHPYRGCPC005' exported.
2025-04-07 16:36:04 - U00021723 Error writing file: '/applic/uc4/BLOB/EXPORT/AZD_USER_EXPORT_20250407163556_CHG00393382_EDH_1441388/DEDHPYRGCPC005.XML'. Error message: '0000000002 No such file or directory'.
2025-04-07 16:36:04 - U00020408 Object DEDHPYRGCPC005 exported. Return Code 0000000000021723
I know this will be tricky to replicate.
Note that the vara contains a list of files to be exported.
SOme of the files can be exported without any issue.
A few of these files fail to be exported until you export the object manually, then import them back in.
------------------------------
Peter Wong
AWA Administrator
------------------------------
Original Message:
Sent: Apr 08, 2025 03:52 AM
From: Peter Grundler
Subject: No such file or directory when exporting
Hi Peter,
I haven't seen this error. Do you use the ON_ERROR method to retrieve the detailed error message? If not, can you please insert the statements to display the message.
regards,
Peter
------------------------------
Automic Certified Professional/Expert & Broadcom Knight
For AUTOMIC trainings please check https://www.qskills.de/qs/workshops/automic/
Original Message:
Sent: Apr 07, 2025 02:54 AM
From: Peter Wong
Subject: No such file or directory when exporting
Greetings all
We have a script that runs the following function:
: SET &EXPORT_RETURN# = EXPORT(&OBJECT_NAME#,&FULL_PATH_AND_NAME#)
where a number of objects will be exported.
The export works for some of the objects, but experiencing the following error for a few of the objects:
'/applic/uc4/BLOB/EXPORT/AZD_USER_EXPORT_20250407163556_CHG00393382_EDH_1441388/DEDHPYRGCPJI26.XML'. Error message: '0000000002 No such file or directory'.
The object DEDHPYRGCPJI26 does exist, and our workaround now is to manually export the object, delete it, then import it back in again.
We are on 24.3.
Anyone facing the same issue?
------------------------------
Peter Wong
AWA Administrator
------------------------------