Not able to convert .ics file to PST format using aspose lib getting below error.
C:\Users\Tejas>python calendarissue.py
Traceback (most recent call last):
File “mailissue.py”, line 57, in
run()
File “mailissue.py”, line 49, in run
appointment = Appointment.load(f.file_directory)
RuntimeError: Proxy error: Unexpected value is discovered: {0}
Wrong parameter: WORKINGELSEWHERE
Attaching zip file containing the code and .ics file
It seems you are encountering a RuntimeError related to an unexpected value while trying to convert an ICS file to PST format using the Aspose library. The error message indicates that there is a problem with the parameter WORKINGELSEWHERE.
To troubleshoot this issue, consider the following steps:
Check the ICS File: Ensure that the ICS file you are trying to convert is correctly formatted and does not contain any unsupported or unexpected values. You can open the ICS file in a text editor to inspect its contents.
Review the Code: Make sure that your code is correctly handling the appointment loading process. Here is a basic example of how to load an ICS file and convert it to PST format:
from aspose.email import Appointment, PersonalStorage
# Load the ICS file
appointment = Appointment.load("path_to_your_file.ics")
# Create a PST file
pst = PersonalStorage.create("output.pst", "pst")
# Add the appointment to the PST
pst.root_folder.add_appointment(appointment)
# Save the PST file
pst.dispose()
Update Aspose Library: Ensure that you are using the latest version of the Aspose.Email library, as updates may include bug fixes and improvements that could resolve your issue.
Consult Documentation: For more detailed guidance on converting ICS files to PST format, refer to the official Aspose documentation, which provides examples and best practices for handling various file formats.
If the problem persists after checking these aspects, consider sharing the specific ICS file and the relevant code snippet in the forum for further assistance from the community.
Unfortunately, we cannot specify the exact version where this issue was resolved, as a significant amount of time has passed since the release of version 20.2.1.
We recommend testing with newer versions of Aspose.Email for Python via .NET to identify a version where the issue is fixed.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.
Sets consent for personalized advertising.
Cookie Notice
To provide you with the best experience, we use cookies for personalization, analytics, and ads. By using our site, you agree to our cookie policy.
More info
Enables storage, such as cookies, related to analytics.
Enables storage, such as cookies, related to advertising.
Sets consent for sending user data to Google for online advertising purposes.